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

Disassembly:
push 0xffffffffffffffff
push 0x4e12f0
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 0x40c945
lea ecx, [esp + 0x74]
mov dword [esp + 0x6c], 0xffffffff
call fcn.004d498d
xor eax, eax
jmp 0x40cb6b
lea ecx, [esp + 0x50]
call fcn.004d3fc2
push ecx
mov byte [esp + 0x70], 1
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x509acc
call fcn.004d49fb
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.004d4702
mov byte [esp + 0x78], 1
call fcn.00418780
add esp, 0xc
cmp eax, edi
ja 0x40c9b6
lea ecx, [esp + 0x50]
mov byte [esp + 0x6c], 0
call fcn.004d3ff5
lea ecx, [esp + 0x74]
mov dword [esp + 0x6c], 0xffffffff
call fcn.004d498d
xor eax, eax
jmp 0x40cb6b
mov eax, dword [esp + 0x58]
mov esi, eax
cmp eax, edi
mov dword [esp + 0x20], esi
jle 0x40cb4a
mov bl, 4
mov eax, dword [esp + 0x54]
lea ecx, [eax + edi*4]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004d4702
lea ecx, [esp + 0x3c]
mov byte [esp + 0x6c], 3
call fcn.004d3fc2
push ecx
mov byte [esp + 0x70], bl
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x509ac8
call fcn.004d49fb
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.004d4702
mov byte [esp + 0x78], bl
call fcn.00418780
add esp, 0xc
test eax, eax
jbe 0x40cb25
cmp dword [esp + 0x44], 2
jne 0x40cb25
mov ecx, dword [esp + 0x40]
push ecx
lea ecx, [esp + 0x18]
call fcn.004d4702
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x10]
add edx, 4
mov byte [esp + 0x6c], 6
push edx
call fcn.004d4702
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], 7
call fcn.004d3b7f
lea ecx, [esp + 0x10]
call fcn.004d3b7f
lea ecx, [esp + 0x14]
call fcn.004d3a88
lea ecx, [esp + 0x10]
call fcn.004d3a88
mov eax, dword [0x51347c]
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], 8
push ecx
lea ecx, [esp + 0x30]
call fcn.004d4702
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x30]
push edx
mov byte [esp + 0x70], 9
call fcn.004d4702
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x34]
push eax
push ecx
lea ecx, [ebp + 0x14]
mov byte [esp + 0x74], 0xa
call fcn.004103b0
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x6c], 0xb
call fcn.004d498d
lea ecx, [esp + 0x2c]
mov byte [esp + 0x6c], 8
call fcn.004d498d
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6c], 7
call fcn.004d498d
lea edx, [esp + 0x10]
lea ecx, [esi + 0x10]
push edx
call fcn.004d4ac6
lea ecx, [esp + 0x10]
mov byte [esp + 0x6c], 6
call fcn.004d498d
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], bl
call fcn.004d498d
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x6c], 3
call fcn.004d3ff5
lea ecx, [esp + 0x18]
mov byte [esp + 0x6c], 1
call fcn.004d498d
inc edi
cmp edi, esi
jl 0x40c9ca
lea ecx, [esp + 0x50]
mov byte [esp + 0x6c], 0
call fcn.004d3ff5
lea ecx, [esp + 0x74]
mov dword [esp + 0x6c], 0xffffffff
call fcn.004d498d
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