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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4d020d
sub esp, 0x5c
mov eax, dword [esp + 0x60]
cmp eax, 2
jne 0x4cfecb
mov eax, dword [esp + 0x68]
test eax, eax
jne 0x4cfebc
mov eax, dword [0x81c068]
mov ecx, dword [0x81c06c]
mov edx, dword [0x81c070]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x64], eax
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.004cb2e0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
test eax, eax
je 0x4cfe1a
mov dword [esp + 0x54], eax
mov dword [esp + 0x2c], ecx
lea eax, [0x64e720]
mov dword [esp], eax
call fcn.0040b4f0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x70]
mov dword [eax], ecx
mov ecx, dword [esp + 0x2c]
cmp ecx, 4
jge 0x4cfe13
mov dword [esp + 0x4c], eax
lea edx, [eax + 4]
mov ebx, dword [esp + 0x54]
cmp edx, ebx
je 0x4cfde4
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
call fcn.0045b690
lea eax, [0x6c85f0]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
add esp, 0x5c
ret
mov ecx, 4
jmp 0x4cfdc5
mov eax, dword [esp + 0x64]
mov dword [esp], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 8], eax
call fcn.004cb630
mov eax, dword [esp + 0xc]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x30], ecx
lea edx, [0x6455c0]
mov dword [esp], edx
call fcn.0040b4f0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x10
lea ecx, [0x6731c4]
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x8326a0]
test ecx, ecx
jne 0x4cfeaa
mov ecx, dword [esp + 0x58]
mov dword [eax + 8], ecx
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
lea ecx, [0x6c8290]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], eax
add esp, 0x5c
ret
lea edi, [eax + 8]
mov ecx, eax
mov eax, dword [esp + 0x58]
call fcn.0045ace0
mov eax, ecx
jmp 0x4cfe7f
mov edx, dword [esp + 0x6c]
mov ecx, eax
mov eax, dword [esp + 0x64]
jmp 0x4cfd74
cmp eax, 0x17
jne 0x4d016b
mov eax, dword [esp + 0x68]
test eax, eax
jne 0x4d0117
mov eax, dword [0x816180]
mov ecx, dword [0x816184]
mov edx, dword [0x816188]
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x44], eax
cmp ecx, 4
jne 0x4d0105
movzx ebx, byte [eax]
movzx ebp, byte [eax + 1]
movzx esi, byte [eax + 2]
movzx edi, byte [eax + 3]
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov edx, dword [0x8161a0]
mov ecx, dword [0x8161a4]
cmp ecx, 0x10
jge 0x4d00fb
xchg ebp, eax
mov byte [esp + 0x1e], al
xchg ebp, eax
xchg esi, eax
mov byte [esp + 0x1d], al
xchg esi, eax
xchg edi, eax
mov byte [esp + 0x1c], al
xchg edi, eax
mov byte [esp + 0x1f], bl
lea eax, [esp + 0x34]
cmp eax, edx
je 0x4cff79
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.0045b690
movzx eax, byte [esp + 0x1f]
mov byte [esp + 0x40], al
movzx eax, byte [esp + 0x1e]
mov byte [esp + 0x41], al
movzx eax, byte [esp + 0x1d]
mov byte [esp + 0x42], al
movzx eax, byte [esp + 0x1c]
mov byte [esp + 0x43], al
lea eax, [esp + 0x34]
mov ecx, 0x10
test eax, eax
je 0x4d0059
mov dword [esp + 0x50], eax
mov dword [esp + 0x28], ecx
lea eax, [0x81c540]
mov dword [esp], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 8], eax
call fcn.004ca720
mov eax, dword [esp + 0xc]
mov dword [esp + 0x30], eax
lea ecx, [0x651ca0]
mov dword [esp], ecx
call fcn.0040b4f0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x70]
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x28]
cmp ecx, 0x10
jge 0x4d0052
mov dword [esp + 0x48], eax
lea edx, [eax + 8]
mov ebx, dword [esp + 0x50]
cmp ebx, edx
je 0x4d0023
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
call fcn.0045b690
lea eax, [0x6c8610]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
add esp, 0x5c
ret
mov ecx, 0x10
jmp 0x4d0004
mov eax, dword [esp + 0x44]
mov dword [esp], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 8], eax
call fcn.004cb630
mov eax, dword [esp + 0xc]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x30], ecx
lea edx, [0x6455c0]
mov dword [esp], edx
call fcn.0040b4f0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x10
lea ecx, [0x6731d4]
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x8326a0]
test ecx, ecx
jne 0x4d00e9
mov ecx, dword [esp + 0x58]
mov dword [eax + 8], ecx
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
lea ecx, [0x6c8290]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], eax
add esp, 0x5c
ret
lea edi, [eax + 8]
mov ecx, eax
mov eax, dword [esp + 0x58]
call fcn.0045ace0
mov eax, ecx
jmp 0x4d00be
mov ecx, 0x10
jmp 0x4cff4b
cmp ecx, 0x10
je 0x4cffa6
xor eax, eax
xor ecx, ecx
jmp 0x4cffa6
mov ecx, dword [esp + 0x64]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov edx, dword [esp + 0x6c]
mov dword [esp + 8], edx
mov ebx, dword [0x81c068]
mov ebp, dword [0x81c06c]
mov esi, dword [0x81c070]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], esi
call fcn.004cc2f0
movzx eax, byte [esp + 0x18]
test al, al
jne 0x4cfee0
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
jmp 0x4cfef2
mov eax, dword [esp + 0x64]
mov dword [esp], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 8], eax
call fcn.004cb630
mov eax, dword [esp + 0xc]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x30], ecx
lea edx, [0x6455c0]
mov dword [esp], edx
call fcn.0040b4f0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x16
lea ecx, [0x6761a6]
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x8326a0]
test ecx, ecx
jne 0x4d01fb
mov ecx, dword [esp + 0x58]
mov dword [eax + 8], ecx
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
lea ecx, [0x6c8290]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], eax
add esp, 0x5c
ret
lea edi, [eax + 8]
mov ecx, eax
mov eax, dword [esp + 0x58]
call fcn.0045ace0
mov eax, ecx
jmp 0x4d01d0
call fcn.00459790
jmp fcn.004cfd30