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

Disassembly:
push 0xffffffffffffffff
push 0x4e0170
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov eax, dword [esp + 0x74]
xor edi, edi
mov dword [esp + 0x6c], edi
cmp dword [eax - 8], edi
jne 0x40c285
lea ecx, [esp + 0x74]
mov dword [esp + 0x6c], 0xffffffff
call fcn.004d387d
xor eax, eax
jmp 0x40c4ab
lea ecx, [esp + 0x50]
call fcn.004d2eb2
push ecx
mov byte [esp + 0x70], 1
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x5088f8
call fcn.004d38eb
lea ecx, [esp + 0x54]
lea edx, [esp + 0x78]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov byte [esp + 0x7c], 2
call fcn.004d35f2
mov byte [esp + 0x78], 1
call fcn.00419320
add esp, 0xc
cmp eax, edi
ja 0x40c2f6
lea ecx, [esp + 0x50]
mov byte [esp + 0x6c], 0
call fcn.004d2ee5
lea ecx, [esp + 0x74]
mov dword [esp + 0x6c], 0xffffffff
call fcn.004d387d
xor eax, eax
jmp 0x40c4ab
mov eax, dword [esp + 0x58]
mov esi, eax
cmp eax, edi
mov dword [esp + 0x20], esi
jle 0x40c48a
mov bl, 4
mov eax, dword [esp + 0x54]
lea ecx, [eax + edi*4]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004d35f2
lea ecx, [esp + 0x3c]
mov byte [esp + 0x6c], 3
call fcn.004d2eb2
push ecx
mov byte [esp + 0x70], bl
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x5088f4
call fcn.004d38eb
lea edx, [esp + 0x40]
lea eax, [esp + 0x1c]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
mov byte [esp + 0x7c], 5
call fcn.004d35f2
mov byte [esp + 0x78], bl
call fcn.00419320
add esp, 0xc
test eax, eax
jbe 0x40c465
cmp dword [esp + 0x44], 2
jne 0x40c465
mov ecx, dword [esp + 0x40]
push ecx
lea ecx, [esp + 0x18]
call fcn.004d35f2
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x10]
add edx, 4
mov byte [esp + 0x6c], 6
push edx
call fcn.004d35f2
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], 7
call fcn.004d2a6f
lea ecx, [esp + 0x10]
call fcn.004d2a6f
lea ecx, [esp + 0x14]
call fcn.004d2978
lea ecx, [esp + 0x10]
call fcn.004d2978
mov eax, dword [0x511ed0]
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], 8
push ecx
lea ecx, [esp + 0x30]
call fcn.004d35f2
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x30]
push edx
mov byte [esp + 0x70], 9
call fcn.004d35f2
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x34]
push eax
push ecx
lea ecx, [ebp + 0x24]
mov byte [esp + 0x74], 0xa
call fcn.0040fa70
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x6c], 0xb
call fcn.004d387d
lea ecx, [esp + 0x2c]
mov byte [esp + 0x6c], 8
call fcn.004d387d
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6c], 7
call fcn.004d387d
lea edx, [esp + 0x10]
lea ecx, [esi + 0x10]
push edx
call fcn.004d39b6
lea ecx, [esp + 0x10]
mov byte [esp + 0x6c], 6
call fcn.004d387d
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], bl
call fcn.004d387d
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x6c], 3
call fcn.004d2ee5
lea ecx, [esp + 0x18]
mov byte [esp + 0x6c], 1
call fcn.004d387d
inc edi
cmp edi, esi
jl 0x40c30a
lea ecx, [esp + 0x50]
mov byte [esp + 0x6c], 0
call fcn.004d2ee5
lea ecx, [esp + 0x74]
mov dword [esp + 0x6c], 0xffffffff
call fcn.004d387d
mov eax, esi
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x60
ret 4