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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4c1528
sub esp, 0x58
mov eax, 0
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov byte [esp + 0x23], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
mov ecx, dword [esp + 0x60]
mov dword [esp + 4], ecx
call fcn.004b0270
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
test eax, eax
jne 0x4c1393
mov eax, dword [ecx + 0x10]
mov dword [esp], edx
call eax
movzx eax, byte [esp + 4]
test al, al
je 0x4c138f
nop
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
mov ecx, dword [esp + 0x60]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.004addd0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
test eax, eax
jne 0x4c138b
lea eax, [0x656478]
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], ecx
mov byte [esp + 0x23], 1
mov dword [esp], ecx
mov dword [esp + 4], 0xffffffff
call fcn.004ab3a0
nop
mov eax, dword [esp + 8]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0x10]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
call fcn.00408f30
mov eax, dword [esp + 0xc]
lea ecx, [0x6a32a8]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00481190
xor eax, eax
jmp 0x4c139e
add esp, 0x58
ret
add esp, 0x58
ret
add esp, 0x58
ret
mov ecx, dword [esp + 0x30]
lea eax, [ecx + 1]
mov ecx, dword [esp + 0x28]
cmp eax, ecx
jge 0x4c150a
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x38]
lea edx, [ecx + eax*8]
mov ebx, dword [edx]
mov dword [esp + 0x3c], ebx
mov edx, dword [edx + 4]
mov dword [esp + 0x2c], edx
mov ebp, dword [esp + 0x64]
mov dword [esp], ebp
mov esi, dword [esp + 0x68]
mov dword [esp + 4], esi
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
call fcn.004c05a0
movzx eax, byte [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test ecx, ecx
jne 0x4c14e7
test al, al
je 0x4c1397
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x44], ecx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x4c], edx
lea edx, [esp + 0x40]
mov dword [esp], edx
mov dword [esp + 4], 2
mov dword [esp + 8], 2
call fcn.004c2680
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x80]
mov ebx, dword [esp + 0xc]
mov ebp, dword [esp + 0x10]
lea esi, [eax + 1]
cmp edx, esi
jae 0x4c14ba
mov dword [esp + 0x24], ebp
mov dword [esp + 0x34], ebx
lea ebx, [0x60d840]
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], esi
call fcn.004476d0
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x80], edx
mov dword [esp + 0x78], ecx
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x24]
lea edx, [eax + 1]
mov dword [esp + 0x7c], edx
lea edx, [ecx + eax*8 + 4]
mov dword [edx], ebp
mov edx, dword [0x816df0]
lea edi, [ecx + eax*8]
test edx, edx
jne 0x4c14db
mov dword [edi], ebx
jmp 0x4c1397
mov eax, ebx
call fcn.0045e5d0
jmp 0x4c1397
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], ebx
mov byte [esp + 0x23], 0
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call fcn.004adf20
add esp, 0x58
ret
mov byte [esp + 0x23], 0
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call fcn.004adf20
add esp, 0x58
ret
call fcn.0045d190
jmp fcn.004c1240