Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int __cdecl sub_AE9DE0(int a1)
- {
- int result; // eax@1
- signed int v2; // esi@2
- int v3; // edi@2
- int v4; // ebx@2
- int v5; // eax@6
- const char *v6; // edi@6
- signed int v7; // esi@7
- const char *v8; // eax@8
- int v9; // eax@9
- int v10; // esi@13
- int v11; // eax@16
- char v12; // [sp+4h] [bp-134h]@4
- int v13; // [sp+1Ch] [bp-11Ch]@6
- int v14; // [sp+12Ch] [bp-Ch]@2
- int v15; // [sp+130h] [bp-8h]@6
- const char *v16; // [sp+134h] [bp-4h]@1
- result = sub_7685F0(a1, 2, 0); -> Tolstring
- v16 = (const char *)result;
- if ( result )
- {
- sub_7661E0(a1, 1);-> Getmetatable
- v2 = sub_766410(a1);-> Gettop
- sub_767360(a1, "env");-> PushString
- sub_767640(a1, v2);
- v14 = sub_766410(a1);-> Gettop
- sub_767360(a1, "function");-> PushString
- sub_767640(a1, v2);
- sub_767360(a1, "frame");-> PushString
- sub_767640(a1, v2);
- v3 = sub_768560(a1, -1, 0);-> Tointeger
- sub_767360(a1, "thread");-> PushString
- sub_767640(a1, v2);
- v4 = sub_768840(a1, -1);
- if ( v4 == a1 )
- v3 += 2;
- sub_12A5A00(&v12, 0, 296);
- if ( sub_7662B0(v4, v3, &v12) == 1 && sub_765E30(v4, "uf", &v12) )
- {
- v5 = sub_766410(v4); -> Gettop
- v6 = v16;
- v15 = v5;
- if ( v13 <= 0 || (v7 = 1, v13 < 1) )
- {
- LABEL_13:
- v10 = 0;
- if ( sub_766060(v4, &v12, 1) )
- {
- do
- {
- ++v10;
- sub_7683B0(v4, -2); -> Settop
- }
- while ( sub_766060(v4, &v12, v10 + 1) );
- }
- if ( v10 <= 0 )
- {
- LABEL_20:
- sub_767A50(v4, v15);
- sub_7674D0(a1, 2);-> PushValue
- sub_766390(a1, v14);
- return 1;
- }
- while ( 1 )
- {
- v11 = strcmp((const char *)sub_766060(v4, &v12, v10), v6);
- if ( v11 )
- v11 = -(v11 < 0) | 1;
- if ( !v11 )
- break;
- sub_7683B0(v4, -2);-> Settop
- if ( --v10 <= 0 )
- goto LABEL_20;
- }
- }
- else
- {
- while ( 1 )
- {
- v8 = (const char *)sub_766430(v4, v5, v7);
- if ( v8 )
- {
- v9 = strcmp(v8, v6);
- if ( v9 )
- v9 = -(v9 < 0) | 1;
- if ( !v9 )
- break;
- }
- sub_7683B0(v4, -2);-> Settop
- v5 = v15;
- if ( ++v7 > v13 )
- goto LABEL_13;
- }
- }
- sub_768910(v4, a1, 1);
- sub_767A50(v4, v15);
- result = 1;
- }
- else
- {
- sub_765D40(a1, -10002, v16);-> GetField 3Arg
- result = 1;
- }
- }
- return result;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement