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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x2c]
cmp eax, dword [ecx + 8]
jbe 0x4a7bff
sub esp, 0xac
mov eax, dword [esp + 0xb0]
test byte [eax], al
mov dword [esp], eax
call fcn.00450000
mov eax, dword [esp + 0xb0]
mov dword [esp + 8], eax
mov dword [esp], 4
lea ecx, [0x50ee2c]
mov dword [esp + 4], ecx
call fcn.00424eb0
test eax, eax
jne 0x4a7bf2
call fcn.004855b0
lea edi, [esp + 0x44]
mov esi, esp
call fcn.0044b0be
mov edi, esp
lea esi, [esp + 0x44]
call fcn.0044b0be
mov dword [esp + 0x14], 0x7b8a800
mov dword [esp + 0x18], 0xfffffff2
call fcn.00484c90
lea esi, [esp + 0x1c]
lea edi, [esp + 0x58]
call fcn.0044b0be
mov eax, dword [esp + 0xb0]
lea esi, [eax + 0x18]
mov dword [esp + 0x40], esi
mov edi, esp
call fcn.0044b0be
lea edi, [esp + 0x14]
lea esi, [esp + 0x58]
call fcn.0044b0be
call fcn.00483b30
movzx eax, byte [esp + 0x28]
test al, al
jne 0x4a7be5
mov eax, dword [0x5ac790]
test eax, eax
jne 0x4a7bc2
mov edi, dword [esp + 0x40]
lea esi, [esp + 0x44]
call fcn.0044b0be
mov eax, dword [esp + 0xb8]
test eax, eax
je 0x4a7b90
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0xb8], eax
mov dword [esp + 0x3c], ecx
lea edx, [0x4e8240]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0
call fcn.00405d70
mov eax, dword [0x5ac790]
mov ecx, dword [esp + 0xb0]
lea edx, [ecx + 0x2c]
mov ebx, dword [esp + 0xc]
test eax, eax
jne 0x4a7b7f
mov dword [ecx + 0x2c], ebx
lea eax, [0x4e8080]
mov dword [esp], eax
mov ecx, dword [esp + 0xb8]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
call fcn.00405d70
mov eax, dword [0x5ac790]
mov ecx, dword [esp + 0xb0]
lea edx, [ecx + 0x30]
mov ebx, dword [esp + 0xc]
test eax, eax
jne 0x4a7b67
mov dword [ecx + 0x30], ebx
xor eax, eax
mov edx, dword [esp + 0x3c]
jmp 0x4a7a4d
mov ebx, dword [esp + 0x38]
lea edx, [ebx + 0x20]
mov ebx, dword [esp + 0x34]
lea eax, [ebx + 1]
mov ecx, dword [esp + 0xb0]
mov ebx, dword [esp + 0xb8]
cmp eax, ebx
jge 0x4a7b5a
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edx
lea edi, [esp + 0x8c]
mov esi, edx
call fcn.0044b0a0
lea edi, [esp + 0x6c]
lea esi, [esp + 0x8c]
call fcn.0044b0a0
mov eax, dword [esp + 0xb0]
mov ecx, dword [eax + 0x2c]
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x30], ebx
mov dword [esp + 4], ecx
lea ecx, [0x4e8240]
mov dword [esp], ecx
mov ebp, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebp
call fcn.00408e00
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
mov dword [eax], ecx
mov eax, dword [esp + 0xb0]
mov ecx, dword [eax + 0x30]
mov dword [esp + 4], ecx
lea ecx, [0x4e8080]
mov dword [esp], ecx
mov edx, dword [esp + 0x6c]
mov dword [esp + 8], edx
call fcn.00407f70
movzx eax, byte [esp + 0x10]
test al, al
jne 0x4a7a38
mov eax, dword [esp + 0xb0]
mov ecx, dword [eax + 0x30]
mov edx, dword [esp + 0x74]
mov dword [esp + 0x3c], edx
mov ebx, dword [esp + 0x78]
mov dword [esp + 0x30], ebx
mov dword [esp + 4], ecx
lea ecx, [0x4e8080]
mov dword [esp], ecx
mov ebp, dword [esp + 0x6c]
mov dword [esp + 8], ebp
call fcn.004087e0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], ecx
mov ecx, dword [0x5ac790]
test ecx, ecx
jne 0x4a7b45
mov ecx, dword [esp + 0x3c]
mov dword [eax], ecx
jmp 0x4a7a38
mov dword [esp], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
call fcn.0040da50
jmp 0x4a7a38
nop
call fcn.004256d0
add esp, 0xac
ret
mov dword [esp], edx
mov dword [esp + 4], ebx
call fcn.0040da50
mov ecx, dword [esp + 0xb0]
jmp 0x4a7a30
mov dword [esp], edx
mov dword [esp + 4], ebx
call fcn.0040da50
jmp 0x4a79f0
mov dword [esp], 0
call fcn.004a81f0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
test eax, eax
jne 0x4a7bb5
mov eax, ecx
mov ecx, edx
jmp 0x4a79ac
nop
call fcn.004256d0
add esp, 0xac
ret
lea eax, [0x503b20]
mov dword [esp], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 4], eax
lea eax, [esp + 0x44]
mov dword [esp + 8], eax
call fcn.0040db60
jmp 0x4a7996
nop
call fcn.004256d0
add esp, 0xac
ret
nop
call fcn.004256d0
add esp, 0xac
ret
call fcn.004491a0
jmp fcn.004a78b0