Function at 0x49a090
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4dbd58
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
lea ebx, [esi + 4]
push str.____________________Entrance____________________
lea ecx, [esp + 0x30]
mov eax, ebx
push ecx
push eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], str.ExecFormatFileId
call fcn.00471a00
add esp, 0xc
mov dword [esp + 0x40], 0
mov edx, dword [0x51856c]
mov eax, dword [edx + 0xc]
mov ecx, 0x51856c
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov byte [esp + 0x40], 1
mov edx, dword [0x51856c]
mov eax, dword [edx + 0xc]
mov ecx, 0x51856c
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x14]
push edx
mov edx, 0x4e7868
mov byte [esp + 0x48], 2
call fcn.00494820
test al, al
jne 0x49a1d8
push str.Wrong_FORMATFILEID_statement
lea eax, [esp + 0x30]
push eax
push ebx
call fcn.00471980
add esp, 0xc
mov byte [esp + 0x40], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49a17d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x40], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49a1a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.______________________Exit______________________
lea ecx, [esp + 0x30]
mov dword [esp + 0x44], 0xffffffff
mov edx, dword [esp + 0x34]
push ecx
push edx
call fcn.00471a00
add esp, 0xc
xor al, al
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [esp + 0x10]
mov esi, dword [ebp + 0xc]
call fcn.0042b600
lea edi, [esp + 0x10]
call fcn.004082a0
mov edi, dword [esp + 0x14]
call fcn.0042b600
mov eax, dword [eax]
push eax
call fcn.004a5cb2
add esp, 4
push eax
push str._02X
lea edi, [esp + 0x1c]
call fcn.0040e4a0
add esp, 8
mov eax, 8
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x10]
call fcn.004452d0
mov byte [esp + 0x40], 3
mov esi, dword [esp + 0x1c]
cmp dword [esi - 0xc], 0
jne 0x49a271
push str.Wrong_var_name__check_script_syntax
lea eax, [esp + 0x30]
push eax
push ebx
call fcn.00471980
add esp, 0xc
lea eax, [esi - 0x10]
mov byte [esp + 0x40], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49a158
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x49a158
mov eax, dword [esp + 0x10]
mov eax, dword [eax - 0xc]
lea ecx, [esp + 0x10]
push ecx
add eax, 0xfffffff6
lea ecx, [esp + 0x1c]
call fcn.00489bd0
mov byte [esp + 0x40], 4
mov edi, dword [esp + 0x18]
cmp dword [edi - 0xc], 0
jne 0x49a2d1
push str.Wrong_var_name__check_script_syntax
lea edx, [esp + 0x30]
push edx
push ebx
call fcn.00471980
lea eax, [edi - 0x10]
add esp, 0xc
mov byte [esp + 0x40], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49a247
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x49a247
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
lea ebx, [esp + 0x24]
call fcn.00439ad0
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x2c]
push ecx
mov ebx, eax
mov byte [esp + 0x50], 5
call fcn.00439ad0
add esp, 0x10
mov ebx, eax
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov byte [esp + 0x40], 6
mov edi, dword [edx]
call fcn.0042b600
mov edi, eax
mov eax, ebx
call fcn.004082a0
mov byte [esp + 0x40], 5
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49a33f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x40], 4
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49a364
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 0x10]
mov edi, dword [ecx]
call fcn.0042b600
mov edx, dword [eax]
mov ecx, dword [esp + 0x28]
push edx
push str.FORMATFILEID___s
lea eax, [esp + 0x34]
push eax
push ecx
call fcn.004719c0
mov byte [esp + 0x50], 3
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x49a3ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x40], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49a3d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x40], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49a3f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x40], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49a41c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.______________________Exit______________________
lea ecx, [esp + 0x30]
mov dword [esp + 0x44], 0xffffffff
mov edx, dword [esp + 0x34]
push ecx
push edx
call fcn.00471a00
add esp, 0xc
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc