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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xac
mov eax, dword [0x42fd40]
mov ebx, dword [esp + 0xc8]
mov ebp, dword [esp + 0xc0]
mov dword [esp + 0x20], eax
mov eax, dword [0x42fd44]
cmp ebx, 0xfffffff8
mov dword [esp + 0x24], eax
mov eax, dword [0x42fd48]
mov dword [esp + 0x28], eax
mov eax, dword [0x42fd4c]
mov dword [esp + 0x2c], eax
mov eax, dword [0x42fd50]
mov dword [esp + 0x30], eax
mov eax, dword [0x42fd54]
mov dword [esp + 0x34], eax
mov eax, dword [0x42fd58]
mov dword [esp + 0x38], eax
mov eax, dword [0x42fd5c]
mov dword [esp + 0x3c], eax
jl 0x40d4e1
lea eax, [ebx*8]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xc4]
lea esi, [esp + 0x20]
mov dword [esp + 0x18], esi
lea esi, [esp + 0x60]
mov dword [esp + 0xc0], ebp
mov ebp, eax
cmp ebx, 0x3f
jle 0x40d4f4
cmp ebx, 0x40
je 0x40d4ff
mov eax, 0x40
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
mov dword [esp], esi
call fcn.0042ae30
cmp ebx, 0x3f
ja 0x40d2f0
mov byte [esi + ebx], pe_nt_image_headers32
mov eax, esi
lea ecx, [esp + 0xa0]
lea esi, [esi]
movzx edi, byte [eax + 2]
add eax, 4
movzx edx, byte [eax - 3]
shl edi, 8
shl edx, 0x10
add edx, edi
movzx edi, byte [eax - 1]
add edi, edx
movzx edx, byte [eax - 4]
shl edx, 0x18
add edx, edi
mov dword [eax - 4], edx
cmp eax, ecx
jne 0x40d300
cmp ebx, 0x37
jle 0x40d50e
mov eax, dword [esp + 0x18]
mov edx, esi
sub ebx, 0x40
add ebp, 0x40
call fcn.004096c0
cmp ebx, 0xfffffff8
jge 0x40d2c0
mov ebp, dword [esp + 0xc0]
mov edx, dword [esp + 0x18]
mov eax, dword [0x42fd20]
mov dword [esp + 0x40], eax
mov eax, dword [0x42fd24]
mov dword [esp + 0x44], eax
mov eax, dword [0x42fd28]
mov dword [esp + 0x48], eax
mov eax, dword [0x42fd2c]
mov dword [esp + 0x4c], eax
mov eax, dword [0x42fd30]
mov dword [esp + 0x50], eax
mov eax, dword [0x42fd34]
mov dword [esp + 0x54], eax
mov eax, dword [0x42fd38]
mov dword [esp + 0x58], eax
mov eax, dword [0x42fd3c]
mov dword [esp + 0x5c], eax
mov eax, dword [0x42fd40]
mov dword [esp + 0x60], eax
mov eax, dword [0x42fd44]
mov dword [esp + 0x64], eax
mov eax, dword [0x42fd48]
mov dword [esp + 0x68], eax
mov eax, dword [0x42fd4c]
mov dword [esp + 0x6c], eax
mov eax, dword [0x42fd50]
mov dword [esp + 0x70], eax
mov eax, dword [0x42fd54]
mov dword [esp + 0x74], eax
mov eax, dword [0x42fd58]
mov dword [esp + 0x78], eax
mov eax, dword [0x42fd5c]
mov dword [esp + 0x7c], eax
mov eax, esi
call fcn.004096c0
mov eax, dword [esp + 0x60]
mov edx, eax
shr edx, 8
mov byte [ebp + 3], al
mov byte [ebp + 2], dl
mov edx, eax
shr eax, 0x18
mov byte [ebp], al
mov eax, dword [esp + 0x64]
shr edx, 0x10
mov byte [ebp + 1], dl
mov edx, eax
shr edx, 8
mov byte [ebp + 7], al
mov byte [ebp + 6], dl
mov edx, eax
shr eax, 0x18
mov byte [ebp + 4], al
mov eax, dword [esp + 0x68]
shr edx, 0x10
mov byte [ebp + 5], dl
mov edx, eax
shr edx, 8
mov byte [ebp + 0xb], al
mov byte [ebp + 0xa], dl
mov edx, eax
shr eax, 0x18
mov byte [ebp + 8], al
mov eax, dword [esp + 0x6c]
shr edx, 0x10
mov byte [ebp + 9], dl
mov edx, eax
shr edx, 8
mov byte [ebp + 0xf], al
mov byte [ebp + 0xe], dl
mov edx, eax
shr eax, 0x18
mov byte [ebp + 0xc], al
mov eax, dword [esp + 0x70]
shr edx, 0x10
mov byte [ebp + 0xd], dl
mov edx, eax
shr edx, 8
mov byte [ebp + 0x13], al
mov byte [ebp + 0x12], dl
mov edx, eax
shr eax, 0x18
mov byte [ebp + 0x10], al
mov eax, dword [esp + 0x74]
shr edx, 0x10
mov byte [ebp + 0x11], dl
mov edx, eax
shr edx, 8
mov byte [ebp + 0x17], al
mov byte [ebp + 0x16], dl
mov edx, eax
shr eax, 0x18
mov byte [ebp + 0x14], al
mov eax, dword [esp + 0x78]
shr edx, 0x10
mov byte [ebp + 0x15], dl
mov edx, eax
shr edx, 8
mov byte [ebp + 0x1a], dl
mov edx, eax
mov byte [ebp + 0x1b], al
shr edx, 0x10
shr eax, 0x18
mov byte [ebp + 0x19], dl
mov byte [ebp + 0x18], al
mov eax, dword [esp + 0x7c]
mov edx, eax
shr edx, 8
mov byte [ebp + 0x1e], dl
mov edx, eax
mov byte [ebp + 0x1f], al
shr edx, 0x10
shr eax, 0x18
mov byte [ebp + 0x1d], dl
mov byte [ebp + 0x1c], al
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x20]
mov dword [esp + 0x18], eax
lea esi, [esp + 0x60]
mov edx, eax
jmp 0x40d357
mov edi, esi
mov ecx, 0x10
xor eax, eax
rep stosd dword es:[edi], eax
test ebx, ebx
mov eax, 0
cmovns eax, ebx
jmp 0x40d2d7
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x9c], eax
jmp 0x40d332