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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x494
mov eax, dword [0x46c3ac]
mov dword [esp + 0x490], eax
xor eax, eax
push ebx
mov dword [esp + 0x14], eax
push esi
mov dword [esp + 0x1c], eax
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
push eax
push eax
push 1
push eax
push eax
push eax
push 0x457c5c
mov dword [esp + 0x30], ecx
mov dword [esp + 0x4c], eax
call dword [0x4563a4]
mov esi, eax
test esi, esi
mov dword [esp + 0x18], esi
je 0x40d214
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x18
lea edx, [esp + 0x28]
push edx
push 0
push 0
push 0x74080
push esi
call dword [0x45633c]
test eax, eax
je 0x40d20d
test byte [esp + 0x20], 1
je 0x40d20d
xor dl, dl
mov byte [esp + 0xf], dl
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov ecx, 0x84
lea edi, [esp + 0x80]
rep stosd dword es:[edi], eax
mov cl, dl
and cl, 1
or cl, 0xfa
shl cl, 4
movzx ebx, dl
mov dword [esp + 0x50], eax
mov byte [esp + 0x3d], cl
mov ecx, ebx
mov eax, 0x10
sar eax, cl
mov ecx, dword [esp + 0x20]
test ecx, eax
jne 0x40d1df
push 0
mov byte [esp + 0x44], dl
lea edx, [esp + 0x14]
push edx
push 0x210
lea eax, [esp + 0x8c]
push eax
push 0x20
lea ecx, [esp + 0x48]
push ecx
push 0x7c088
push esi
mov byte [esp + 0x5e], 0xec
mov byte [esp + 0x59], 1
mov byte [esp + 0x5a], 1
mov dword [esp + 0x54], 0x200
call dword [0x45633c]
test eax, eax
je 0x40d20d
mov ecx, 0xa
lea esi, [esp + 0xc6]
lea edi, [esp + 0x54]
rep movsd dword es:[edi], dword [esi]
mov byte [esp + 0x7c], 0
lea eax, [esp + 0x55]
mov esi, 0x14
mov cl, byte [eax - 1]
mov dl, byte [eax]
mov byte [eax - 1], dl
mov byte [eax], cl
add eax, 2
dec esi
jne 0x40d0a1
push 0x104
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x298]
push ecx
call fcn.00432e60
mov eax, dword [esp + 0x20]
lea edx, [ebx + ebx*4]
shl edx, 5
lea ecx, [esp + 0x29c]
push ecx
lea esi, [edx + eax]
lea edx, [esi + 4]
push 0x456f48
push edx
call fcn.004322a4
mov eax, dword [esp + 0xd6]
mov ecx, dword [esp + 0xda]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], ecx
add esp, 0x18
mov byte [esp + 0x5c], 0
lea eax, [esp + 0x55]
mov ecx, 4
mov dl, byte [eax - 1]
mov bl, byte [eax]
mov byte [eax - 1], bl
mov byte [eax], dl
add eax, 2
dec ecx
jne 0x40d112
push 0x104
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x298]
push eax
call fcn.00432e60
lea ecx, [esp + 0x29c]
push ecx
lea edx, [esi + 0x2c]
push 0x456f48
push edx
call fcn.004322a4
mov eax, dword [esp + 0xbc]
mov ecx, dword [esp + 0xc0]
mov edx, dword [esp + 0xc4]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0xcc]
mov dword [esp + 0x78], eax
add esp, 0x18
mov dword [esp + 0x5c], edx
mov dword [esp + 0x64], ecx
mov byte [esp + 0x68], 0
lea eax, [esp + 0x55]
mov edi, 0xa
mov cl, byte [eax - 1]
mov dl, byte [eax]
mov byte [eax - 1], dl
mov byte [eax], cl
add eax, 2
dec edi
jne 0x40d197
push 0x104
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x298]
push ecx
call fcn.00432e60
lea edx, [esp + 0x29c]
push edx
push 0x456f48
add esi, 0x54
push esi
call fcn.004322a4
mov dl, byte [esp + 0x27]
mov esi, dword [esp + 0x30]
add esp, 0x18
inc dl
cmp dl, 4
mov byte [esp + 0xf], dl
jb 0x40cfe0
push esi
call dword [0x4563b4]
mov eax, 1
mov ecx, dword [esp + 0x49c]
call fcn.00431d98
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [0x4563b4]
mov ecx, dword [esp + 0x49c]
xor eax, eax
call fcn.00431d98
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret