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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4a794d
sub esp, 0x70
lea eax, [0x4cbc60]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.00404370
mov eax, dword [esp + 8]
mov dword [esp + 0x44], eax
mov dword [esp], 0x14
lea ecx, [0x4eaca0]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x80]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x14], ebx
mov ebp, dword [esp + 0x78]
mov dword [esp + 0x18], ebp
call fcn.0043cbd0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 0x14]
mov edx, dword [esp + 0x78]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 4]
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x68], ecx
lea ecx, [esp + 0x54]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x60], eax
lea eax, [esp + 0x60]
mov dword [esp], eax
lea eax, [esp + 0x30]
mov dword [esp + 4], eax
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 2
mov byte [esp + 0x14], 1
call fcn.00442930
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4a787d
cmp eax, 1
jne 0x4a794c
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x54]
test eax, eax
je 0x4a7843
mov dword [esp + 0x2c], edx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x7c]
mov dword [esp], eax
mov ecx, dword [esp + 0x80]
mov dword [esp + 4], ecx
call fcn.004a62a0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x4a785c
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x10]
mov edx, dword [esp + 0x50]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 4]
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x24], ecx
lea edx, [0x4d7ea0]
mov dword [esp], edx
call fcn.0040b170
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x24]
mov dword [edi + 4], eax
mov eax, dword [0x5bb250]
test eax, eax
jne 0x4a77bc
mov ecx, dword [esp + 0x4c]
mov dword [edi], ecx
jmp 0x4a77c5
mov eax, dword [esp + 0x4c]
call fcn.0045bfa0
mov ecx, dword [esp + 0x80]
mov dword [edi + 0xc], ecx
mov ecx, dword [0x5bb250]
test ecx, ecx
jne 0x4a77e2
mov eax, dword [esp + 0x7c]
mov dword [edi + 8], eax
jmp 0x4a77f4
lea ecx, [edi + 8]
mov eax, dword [esp + 0x7c]
mov edx, edi
mov edi, ecx
call fcn.0045bfa0
mov edi, edx
mov eax, dword [0x595234]
mov ecx, dword [esp + 0x28]
cmp dword [0x595230], ecx
jne 0x4a7837
mov dword [esp + 0x40], edi
mov dword [esp], ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.00403360
movzx eax, byte [esp + 0xc]
test al, al
je 0x4a7833
mov eax, dword [esp + 0x40]
mov byte [eax + 0x1a], 1
mov edi, eax
jmp 0x4a7837
mov edi, dword [esp + 0x40]
mov edx, dword [esp + 0x2c]
lea eax, [0x5073d0]
mov ecx, edi
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], ecx
add esp, 0x70
ret
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
add esp, 0x70
ret
mov eax, dword [esp + 0x74]
mov eax, dword [eax + 0x18]
mov ecx, dword [esp + 0x78]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 4]
mov ebx, dword [0x595114]
mov ebp, dword [esp + 8]
cmp dword [0x595110], edx
jne 0x4a78f2
mov dword [esp + 0x48], edx
mov dword [esp + 0x38], ebp
mov dword [esp], edx
mov dword [esp + 4], ebp
mov dword [esp + 8], ebx
call fcn.00403360
movzx eax, byte [esp + 0xc]
test al, al
je 0x4a78e2
mov eax, dword [0x595208]
mov ecx, dword [0x59520c]
jmp 0x4a792f
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x48]
mov ebp, dword [esp + 0x38]
mov ebx, dword [0x59156c]
cmp dword [0x591568], edx
jne 0x4a792f
mov dword [esp], edx
mov dword [esp + 4], ebp
mov dword [esp + 8], ebx
call fcn.00403360
movzx eax, byte [esp + 0xc]
test al, al
je 0x4a7927
mov eax, dword [0x5915a0]
mov ecx, dword [0x5915a4]
jmp 0x4a792f
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], ecx
add esp, 0x70
ret
nop
call fcn.0045ab60
jmp fcn.004a7610