Function at 0x4a1f70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x278
mov ecx, 3
mov eax, 6
mov dword [esp + 0x90], ecx
mov dword [esp + 0xb0], ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0xb8], ecx
lea ecx, [esp + 0x8c]
push ebx
mov dword [esp + 0x98], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0xdc], eax
push ebp
mov eax, 0xa
mov dword [esp + 0x28], ecx
push esi
lea ecx, [esp + 0xf4]
push edi
mov ebp, 2
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], eax
mov edi, 1
lea edx, [esp + 0x7c]
lea eax, [esp + 0xc4]
push ecx
push ebp
mov dword [esp + 0xa4], edi
mov dword [esp + 0xb0], edi
mov dword [esp + 0xb4], ebp
mov dword [esp + 0xb8], edi
mov dword [esp + 0xbc], ebp
mov dword [esp + 0xc0], ebp
mov dword [esp + 0xc4], edi
mov dword [esp + 0x84], edi
mov dword [esp + 0x90], edi
mov dword [esp + 0x94], ebp
mov dword [esp + 0x98], edi
mov dword [esp + 0x9c], ebp
mov dword [esp + 0xa0], edi
mov dword [esp + 0xcc], edi
mov dword [esp + 0xd8], edi
mov dword [esp + 0xdc], ebp
mov dword [esp + 0xe0], edi
mov dword [esp + 0xe4], ebp
mov dword [esp + 0xe8], ebp
mov dword [esp + 0xec], edi
mov dword [esp + 0x4c], 8
mov dword [esp + 0x50], edx
mov dword [esp + 0x30], eax
call fcn.004b7766
test eax, eax
jne 0x4a22c2
push 0x4856b8
call dword [fcn.00489024]
mov ebx, eax
cmp ebx, 0x20
mov dword [esp + 0x18], ebx
jb 0x4a22c2
mov esi, dword [fcn.0048917c]
push 0x4856a4
push ebx
call esi
push 0x485690
push ebx
mov dword [esp + 0x3c], eax
call esi
push 0x48567c
push ebx
call esi
push 0x485668
push ebx
mov dword [esp + 0x48], eax
call esi
push 0x48565c
call dword [fcn.00489024]
cmp eax, 0x20
mov dword [esp + 0x10], eax
jae 0x4a2106
push ebx
call dword [fcn.004890ec]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x278
ret
push 0x48564c
push eax
call esi
mov edx, dword [esp + 0x10]
push 0x48563c
push edx
mov ebx, eax
call esi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
push 0x485628
push eax
call esi
lea ecx, [esp + 0xf0]
lea edx, [esp + 0xec]
push ecx
push edx
mov esi, eax
call dword [fcn.0048903c]
push eax
call dword [esp + 0x40]
xor ecx, ecx
lea eax, [esp + 0x4c]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x68], ecx
lea ecx, [esp + 0x44]
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x4c]
xor eax, eax
push ecx
push edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x28], edi
call ebx
mov edi, dword [esp + 0x40]
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x38]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
push 0xa1
call edi
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x4c]
push eax
push ecx
mov dword [esp + 0x28], ebp
call ebx
lea edx, [esp + 0x24]
lea eax, [esp + 0x64]
push edx
push eax
call ebx
mov bl, 0x54
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x38]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
push 0xa1
call edi
test eax, eax
je 0x4a22a0
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x50]
push edx
push eax
call dword [esp + 0x20]
test eax, eax
jne 0x4a22a0
cmp dword [esp + 0x58], 6
jne 0x4a21ad
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0x68]
push edx
push eax
call dword [esp + 0x20]
test eax, eax
jne 0x4a22a0
mov eax, dword [esp + 0x70]
test eax, eax
je 0x4a21ad
mov cl, byte [eax]
cmp cl, 0x44
jne 0x4a2233
cmp byte [eax + 1], 0x45
jne 0x4a2233
cmp byte [eax + 2], 0x53
jne 0x4a2233
cmp byte [eax + 3], bl
jne 0x4a2233
mov dl, byte [eax + 4]
test dl, dl
je 0x4a21ad
test cl, cl
jne 0x4a225e
mov cl, byte [eax + 1]
test cl, cl
jne 0x4a225e
mov cl, byte [eax + 2]
test cl, cl
jne 0x4a225e
mov cl, byte [eax + 3]
test cl, cl
jne 0x4a225e
mov cl, byte [eax + 4]
test cl, cl
jne 0x4a225e
mov cl, byte [eax + 5]
test cl, cl
je 0x4a21ad
mov ecx, dword [esp + 0x28c]
mov edx, dword [eax]
mov dword [ecx], edx
mov ax, word [eax + 4]
mov word [ecx + 4], ax
lea ecx, [esp + 0x4c]
push ecx
call esi
lea edx, [esp + 0x64]
push edx
call esi
mov eax, dword [esp + 0x18]
mov esi, dword [fcn.004890ec]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x278
ret
lea edx, [esp + 0x4c]
push edx
call esi
lea eax, [esp + 0x64]
push eax
call esi
mov ecx, dword [esp + 0x18]
mov esi, dword [fcn.004890ec]
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x278
ret