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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4a815e
sub esp, 0x50
mov eax, dword [esp + 0x5c]
test eax, 0x200
jne 0x4a7ef0
mov edx, eax
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
jmp 0x4a7f24
mov ecx, dword [esp + 0x60]
mov dword [esp], ecx
mov edx, dword [esp + 0x64]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x54]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0x58]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
call fcn.004a1180
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x34], edx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], eax
mov ebx, dword [esp + 0x68]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.004a34f0
movzx eax, byte [esp + 8]
test al, al
je 0x4a7f85
mov eax, dword [esp + 0x34]
test eax, 0x60
je 0x4a7f5b
mov ecx, 0x20
jmp 0x4a7f5d
xor ecx, ecx
mov edx, dword [esp + 0x68]
movzx ebx, byte [edx + 0xf]
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x74], edx
and eax, 0x180
or ecx, eax
and ebx, 0x1f
or ebx, ecx
mov dword [esp + 0x78], ebx
add esp, 0x50
ret
mov eax, dword [esp + 0x68]
mov dword [esp], eax
mov ecx, dword [esp + 0x40]
mov dword [esp + 4], ecx
call fcn.004a2f10
movzx eax, byte [esp + 8]
test al, al
je 0x4a80ab
mov eax, dword [esp + 0x6c]
test eax, eax
jne 0x4a7fbe
mov eax, dword [esp + 0x68]
mov dword [esp], eax
call fcn.0045b460
mov eax, dword [esp + 4]
mov dword [esp + 0x4c], eax
nop
mov ecx, dword [esp + 0x34]
mov edx, ecx
and ecx, 0x1f
cmp ecx, 0x14
jne 0x4a7fff
mov ecx, dword [esp + 0x44]
mov ebx, dword [ecx]
test ebx, ebx
setne bl
xor ebx, 1
test bl, bl
je 0x4a8003
mov eax, dword [esp + 0x68]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0x14
add esp, 0x50
ret
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov byte [esp + 0xc], 0
call fcn.004a6520
mov eax, dword [esp + 0x10]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x68]
mov dword [esp], edx
call fcn.004a1dc0
mov eax, dword [esp + 4]
test eax, eax
jne 0x4a806b
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov dword [edx], ecx
mov ecx, dword [0x6573b0]
test ecx, ecx
jne 0x4a805d
mov eax, dword [esp + 0x3c]
mov dword [edx + 4], eax
jmp 0x4a8093
lea edi, [edx + 4]
mov eax, dword [esp + 0x3c]
call fcn.0045f3d0
jmp 0x4a8093
mov eax, dword [esp + 0x68]
mov dword [esp], eax
mov ecx, dword [esp + 0x48]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0xc], ecx
call fcn.0045b3f0
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x68]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], 0x94
add esp, 0x50
ret
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.004a1c10
mov eax, dword [esp + 4]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x38], ecx
mov edx, dword [esp + 0x68]
mov dword [esp], edx
call fcn.004a1c10
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp], 0
mov edx, dword [esp + 0x60]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x64]
mov dword [esp + 8], edx
lea edx, [0x54a84a]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], 0x10
mov edx, dword [esp + 0x48]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x18], edx
lea edx, [0x54e197]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], 0x1b
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
call fcn.0044d010
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00408c10
mov eax, dword [esp + 8]
lea ecx, [0x535040]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004332d0
nop
call fcn.0045e000
jmp fcn.004a7ec0