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

Disassembly:
push 0xffffffffffffffff
push 0x4e1200
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 0x40cb75
lea ecx, [esp + 0x74]
mov dword [esp + 0x6c], 0xffffffff
call fcn.004d482d
xor eax, eax
jmp 0x40cd9b
lea ecx, [esp + 0x50]
call fcn.004d3e62
push ecx
mov byte [esp + 0x70], 1
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x509abc
call fcn.004d489b
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.004d45a2
mov byte [esp + 0x78], 1
call fcn.00418830
add esp, 0xc
cmp eax, edi
ja 0x40cbe6
lea ecx, [esp + 0x50]
mov byte [esp + 0x6c], 0
call fcn.004d3e95
lea ecx, [esp + 0x74]
mov dword [esp + 0x6c], 0xffffffff
call fcn.004d482d
xor eax, eax
jmp 0x40cd9b
mov eax, dword [esp + 0x58]
mov esi, eax
cmp eax, edi
mov dword [esp + 0x20], esi
jle 0x40cd7a
mov bl, 4
mov eax, dword [esp + 0x54]
lea ecx, [eax + edi*4]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004d45a2
lea ecx, [esp + 0x3c]
mov byte [esp + 0x6c], 3
call fcn.004d3e62
push ecx
mov byte [esp + 0x70], bl
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x509ab8
call fcn.004d489b
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.004d45a2
mov byte [esp + 0x78], bl
call fcn.00418830
add esp, 0xc
test eax, eax
jbe 0x40cd55
cmp dword [esp + 0x44], 2
jne 0x40cd55
mov ecx, dword [esp + 0x40]
push ecx
lea ecx, [esp + 0x18]
call fcn.004d45a2
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x10]
add edx, 4
mov byte [esp + 0x6c], 6
push edx
call fcn.004d45a2
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], 7
call fcn.004d3a1f
lea ecx, [esp + 0x10]
call fcn.004d3a1f
lea ecx, [esp + 0x14]
call fcn.004d3928
lea ecx, [esp + 0x10]
call fcn.004d3928
mov eax, dword [0x513458]
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], 8
push ecx
lea ecx, [esp + 0x30]
call fcn.004d45a2
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x30]
push edx
mov byte [esp + 0x70], 9
call fcn.004d45a2
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x34]
push eax
push ecx
lea ecx, [ebp + 0x24]
mov byte [esp + 0x74], 0xa
call fcn.00410360
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x6c], 0xb
call fcn.004d482d
lea ecx, [esp + 0x2c]
mov byte [esp + 0x6c], 8
call fcn.004d482d
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6c], 7
call fcn.004d482d
lea edx, [esp + 0x10]
lea ecx, [esi + 0x10]
push edx
call fcn.004d4966
lea ecx, [esp + 0x10]
mov byte [esp + 0x6c], 6
call fcn.004d482d
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], bl
call fcn.004d482d
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x6c], 3
call fcn.004d3e95
lea ecx, [esp + 0x18]
mov byte [esp + 0x6c], 1
call fcn.004d482d
inc edi
cmp edi, esi
jl 0x40cbfa
lea ecx, [esp + 0x50]
mov byte [esp + 0x6c], 0
call fcn.004d3e95
lea ecx, [esp + 0x74]
mov dword [esp + 0x6c], 0xffffffff
call fcn.004d482d
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