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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x534
mov eax, dword [0x46c3ac]
mov dword [esp + 0x530], eax
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
push ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
push esi
push edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x30], eax
mov byte [esp + 0xf], al
lea ecx, [ecx]
movzx ebx, byte [esp + 0xf]
push ebx
lea ecx, [esp + 0x294]
push 0x457c78
push ecx
call fcn.004322a4
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea edx, [esp + 0x2a8]
push edx
call dword [0x4563a4]
mov esi, eax
test esi, esi
mov dword [esp + 0x18], esi
je 0x40d4f1
push 0
lea eax, [esp + 0x14]
push eax
push 0x18
lea ecx, [esp + 0x28]
push ecx
push 0
push 0
push 0x74080
push esi
call dword [0x45633c]
test eax, eax
jne 0x40d2de
push esi
jmp 0x40d4eb
mov edx, dword [esp + 0x20]
test dl, 1
je 0x40d51b
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 dword [esp + 0x50], eax
mov al, byte [esp + 0xf]
mov cl, al
and cl, 1
or cl, 0xfa
shl cl, 4
mov byte [esp + 0x3d], cl
mov edi, 0x10
mov ecx, ebx
sar edi, cl
test edx, edi
jne 0x40d4f1
push 0
lea edx, [esp + 0x14]
push edx
push 0x210
mov byte [esp + 0x4c], al
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 0x40d51b
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
lea esp, [esp]
mov cl, byte [eax - 1]
mov dl, byte [eax]
mov byte [eax - 1], dl
mov byte [eax], cl
add eax, 2
dec esi
jne 0x40d3b0
push 0x104
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x338]
push ecx
call fcn.00432e60
mov eax, dword [esp + 0x20]
lea edx, [ebx + ebx*4]
shl edx, 5
lea ecx, [esp + 0x33c]
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 0x40d421
push 0x104
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x338]
push eax
call fcn.00432e60
lea ecx, [esp + 0x33c]
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 0x40d4a6
push 0x104
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x338]
push ecx
call fcn.00432e60
lea edx, [esp + 0x33c]
push edx
push 0x456f48
add esi, 0x54
push esi
call fcn.004322a4
mov eax, dword [esp + 0x30]
add esp, 0x18
push eax
call dword [0x4563b4]
mov al, byte [esp + 0xf]
inc al
cmp al, 4
mov byte [esp + 0xf], al
jb 0x40d270
mov eax, 1
mov ecx, dword [esp + 0x53c]
call fcn.00431d98
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [0x4563b4]
mov ecx, dword [esp + 0x53c]
xor eax, eax
call fcn.00431d98
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret