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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x4c]
cmp eax, dword [ecx + 8]
jbe 0x4a7c52
sub esp, 0xcc
mov ecx, dword [esp + 0xd0]
mov edx, dword [ecx + 8]
test edx, edx
jne 0x4a77d8
mov dword [ecx + 8], 7
mov edx, dword [0x59fca0]
test edx, edx
jne 0x4a77ca
lea eax, [0x4c9157]
mov dword [ecx + 4], eax
jmp 0x4a77d8
lea edi, [ecx + 4]
lea eax, [0x4c9157]
call fcn.00460bc0
nop
mov byte [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
lea eax, [esp + 0xbc]
mov dword [esp], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call fcn.004958f0
mov eax, dword [esp + 0xd0]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x34], ebx
cmp edx, 7
jne 0x4a786b
cmp dword [ecx], 0x63696e75
jne 0x4a786b
cmp word [ecx + 4], 0x646f
jne 0x4a786b
cmp byte [ecx + 6], 0x65
jne 0x4a786b
mov dword [esp], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x10
call fcn.004958f0
jmp 0x4a78a2
cmp edx, 5
jne 0x4a7bc5
cmp dword [ecx], 0x69637361
jne 0x4a7bc5
cmp byte [ecx + 4], 0x69
jne 0x4a7bc5
mov dword [esp], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 8
call fcn.004958f0
mov byte [esp + 0xac], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov byte [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
lea eax, [esp + 0x9c]
mov dword [esp], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 2
call fcn.004958f0
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0xac]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
call fcn.004965b0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x40], eax
nop
mov byte [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
lea ecx, [esp + 0x8c]
mov dword [esp], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x64
call fcn.004958f0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x30], eax
mov byte [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov ecx, dword [esp + 0xd4]
mov ecx, dword [ecx]
lea edx, [esp + 0x7c]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0xd8]
mov dword [esp + 8], ecx
call fcn.00495be0
mov eax, dword [esp + 0xc]
mov byte [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
lea ecx, [esp + 0x6c]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 8], eax
call fcn.004960e0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x38], eax
nop
mov byte [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
lea ecx, [esp + 0x5c]
mov dword [esp], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call fcn.004958f0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x2c], eax
xor ecx, ecx
xor edx, edx
lea ebx, [esp + 0x20]
jmp 0x4a7aa2
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ebx
mov dword [ebp + ecx*4], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x40]
mov dword [esp + 8], ecx
call fcn.004960e0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x3c], ebx
mov ebp, dword [esp + 0x38]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.004963a0
mov eax, dword [esp + 8]
test eax, eax
je 0x4a7b84
mov byte [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
lea eax, [esp + 0x4c]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x40]
mov dword [esp + 8], ecx
call fcn.004961a0
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
test ecx, ecx
jne 0x4a7b15
xor ecx, ecx
jmp 0x4a7b17
mov ecx, dword [edx]
movzx eax, byte [eax]
test al, al
je 0x4a7b24
xor eax, eax
sub eax, ecx
jmp 0x4a7b26
mov eax, ecx
mov ecx, dword [esp + 0x24]
lea edx, [ecx + 1]
mov ebx, dword [esp + 0x28]
cmp ebx, edx
jb 0x4a7b3e
mov ebp, dword [esp + 0x3c]
jmp 0x4a7a6a
mov dword [esp + 0x20], eax
lea eax, [0x4ba960]
mov dword [esp], eax
mov ebp, dword [esp + 0x3c]
mov dword [esp + 4], ebp
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
call fcn.00448c70
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
lea edx, [eax + 1]
mov eax, dword [esp + 0x20]
mov ebp, ebx
mov ebx, ecx
mov ecx, dword [esp + 0x24]
jmp 0x4a7a6a
mov dword [esp], 0
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], eax
call fcn.0044ec50
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xdc], eax
mov dword [esp + 0xe0], ecx
add esp, 0xcc
ret
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00408c80
mov eax, dword [esp + 8]
lea ecx, [0x4bb060]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], eax
lea eax, [0x4ced83]
mov dword [esp], eax
mov dword [esp + 4], 0x1d
lea eax, [esp + 0x44]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.0048d430
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00408c80
mov eax, dword [esp + 8]
lea ecx, [0x4bb060]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00435b30
nop
call fcn.0045f7f0
jmp fcn.004a7780