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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
push ebx
push esi
mov dword [ebp - 0x4c], ecx
push 0xffffffffffffffff
push 1
mov ecx, dword [ebp - 0x4c]
call fcn.00406f10
push 1
call fcn.00415330
mov ecx, eax
call fcn.004152f0
mov ecx, eax
call fcn.00415350
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x50]
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [ebp - 0x4c]
movzx edx, byte [ecx + 0x88]
neg edx
sbb edx, edx
add edx, 1
mov byte [eax], dl
push 1
call fcn.00415330
mov ecx, eax
call fcn.004152f0
mov ecx, eax
call fcn.00415350
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x54]
mov eax, dword [edx + 0x14]
call eax
mov esi, eax
push 0x578
mov ecx, dword [ebp - 0x4c]
call fcn.004077c0
mov dword [esi], eax
push 1
call fcn.00415330
mov ecx, eax
call fcn.004152f0
mov ecx, eax
call fcn.00415350
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x58]
mov eax, dword [edx + 0x20]
call eax
mov ecx, dword [ebp - 0x4c]
movzx edx, byte [ecx + 0x89]
neg edx
sbb edx, edx
add edx, 1
mov byte [eax], dl
push 1
call fcn.00415330
mov ecx, eax
call fcn.004152f0
mov ecx, eax
call fcn.00415350
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x5c]
mov eax, dword [edx + 0x24]
call eax
mov esi, eax
push 0x579
mov ecx, dword [ebp - 0x4c]
call fcn.004077c0
mov dword [esi], eax
push 1
call fcn.00415330
mov ecx, eax
call fcn.004152f0
mov ecx, eax
call fcn.00415350
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x60]
mov eax, dword [edx + 0x68]
call eax
mov ecx, dword [ebp - 0x4c]
movzx edx, byte [ecx + 0x8a]
neg edx
sbb edx, edx
add edx, 1
mov byte [eax], dl
push 1
call fcn.00415330
mov ecx, eax
call fcn.004152f0
mov ecx, eax
call fcn.00415350
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x64]
mov eax, dword [edx + 0x6c]
call eax
mov esi, eax
push 0x57a
mov ecx, dword [ebp - 0x4c]
call fcn.004077c0
mov dword [esi], eax
mov ecx, dword [ebp - 0x4c]
movzx ebx, byte [ecx + 0x8c]
neg ebx
sbb ebx, ebx
neg ebx
push 1
call fcn.00415330
mov ecx, eax
call fcn.004152f0
mov byte [eax + 0x8d], bl
mov edx, dword [ebp - 0x4c]
movzx ebx, byte [edx + 0x8b]
neg ebx
sbb ebx, ebx
add ebx, 1
push 1
call fcn.00415330
mov ecx, eax
call fcn.004152f0
mov byte [eax + 0x91], bl
push 0x57b
mov ecx, dword [ebp - 0x4c]
call fcn.004077c0
mov esi, eax
push 1
call fcn.00415330
mov ecx, eax
call fcn.004152f0
mov dword [eax + 0x94], esi
mov eax, dword [ebp - 0x4c]
movzx ebx, byte [eax + 0x8d]
neg ebx
sbb ebx, ebx
add ebx, 1
push 1
call fcn.00415330
mov ecx, eax
call fcn.004152f0
mov byte [eax + 0x90], bl
push 1
call fcn.00415330
mov ecx, eax
call fcn.004152f0
mov ecx, eax
call fcn.00415350
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x68]
mov eax, dword [edx + 0x34]
call eax
movzx ecx, al
test ecx, ecx
je 0x40e449
mov dword [ebp - 4], 0
jmp 0x40e397
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
push 1
call fcn.00415330
mov ecx, eax
call fcn.004152f0
mov ecx, eax
call fcn.00415350
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x6c]
mov eax, dword [edx + 0x3c]
call eax
cmp dword [ebp - 4], eax
jge 0x40e449
push 1
call fcn.00415330
mov ecx, eax
call fcn.004152f0
mov ecx, eax
call fcn.00415350
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x70]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x70]
mov edx, dword [eax + 0x48]
call edx
mov esi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x4c]
add ecx, 0x94
call fcn.004278c0
neg eax
sbb eax, eax
add eax, 1
mov byte [esi], al
push 1
call fcn.00415330
mov ecx, eax
call fcn.004152f0
mov ecx, eax
call fcn.00415350
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x74]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x74]
mov edx, dword [eax + 0x4c]
call edx
mov esi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x4c]
call fcn.004078f0
mov dword [esi], eax
jmp 0x40e38e
push 1
call fcn.00415330
mov ecx, eax
call fcn.004152f0
mov ecx, eax
call fcn.00415350
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x78]
mov eax, dword [edx + 0x70]
call eax
movzx ecx, al
test ecx, ecx
je 0x40e75b
lea edx, [ebp - 0x28]
push edx
mov ecx, dword [ebp - 0x4c]
add ecx, 0xb4
call fcn.0040c310
mov ecx, eax
call fcn.0042e470
mov dword [ebp - 8], eax
push 1
call fcn.00415330
mov ecx, eax
call fcn.004152f0
mov ecx, eax
call fcn.00415350
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x7c]
mov eax, dword [edx + 0x74]
call eax
mov esi, eax
push 0xf000
mov ecx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp - 0x4c]
add ecx, 0xb4
call fcn.0040c400
shr eax, 0xc
xor edx, edx
cmp eax, 2
sete dl
mov byte [esi], dl
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x4c]
add ecx, 0xb4
call fcn.0040c250
mov ecx, eax
call fcn.0042e470
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
jmp 0x40e512
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
push 1
call fcn.00415330
mov ecx, eax
call fcn.004152f0
mov ecx, eax
call fcn.00415350
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x80]
mov eax, dword [edx + 0x78]
call eax
cmp dword [ebp - 0x10], eax
jge 0x40e75b
cmp dword [ebp - 0xc], 0
jne 0x40e54b
jmp 0x40e75b
push 0xf000
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 0x4c]
add ecx, 0xb4
call fcn.0040c400
shr eax, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 2
jle 0x40e577
mov edx, dword [ebp - 0x18]
sub edx, 2
mov dword [ebp - 0x18], edx
push 1
call fcn.00415330
mov ecx, eax
call fcn.004152f0
mov ecx, eax
call fcn.00415350
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x84]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x84]
mov eax, dword [edx + 0x7c]
call eax
xor ecx, ecx
cmp dword [ebp - 0x18], 2
sete cl
mov byte [eax], cl
mov edx, dword [ebp - 0xc]
push edx
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x4c]
add ecx, 0xb4
call fcn.0040c250
mov ecx, eax
call fcn.0042e470
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40e736
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x4c]
add ecx, 0xb4
call fcn.0040c460
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x40e711
mov ecx, dword [ebp - 0x4c]
add ecx, 0x58
call fcn.004baeb0
cmp dword [ebp - 0x1c], eax
jae 0x40e711
push 0xf000
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x4c]
add ecx, 0xb4
call fcn.0040c400
shr eax, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 2
jle 0x40e63d
mov eax, dword [ebp - 0x20]
sub eax, 2
mov dword [ebp - 0x20], eax
push 1
call fcn.00415330
mov ecx, eax
call fcn.004152f0
mov ecx, eax
call fcn.00415350
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x4c]
add ecx, 0x58
call fcn.004bab10
mov ecx, eax
call fcn.0041da00
add eax, 8
mov ecx, eax
call fcn.0042e470
push eax
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x88]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x88]
mov eax, dword [edx + 0x90]
call eax
xor ecx, ecx
cmp dword [ebp - 0x20], 1
sete cl
mov byte [eax], cl
push 1
call fcn.00415330
mov ecx, eax
call fcn.004152f0
mov ecx, eax
call fcn.00415350
mov dword [ebp - 0x8c], eax
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x4c]
add ecx, 0x58
call fcn.004bab10
mov ecx, eax
call fcn.0041da00
add eax, 8
mov ecx, eax
call fcn.0042e470
push eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x8c]
mov eax, dword [edx + 0x8c]
call eax
mov esi, eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x4c]
add ecx, 0x58
call fcn.004bab10
mov ecx, eax
call fcn.0041da00
mov edx, dword [eax + 0xc]
mov dword [esi], edx
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x40]
push ecx
mov ecx, dword [ebp - 0x4c]
add ecx, 0xb4
call fcn.0040c290
mov ecx, eax
call fcn.0042e470
mov dword [ebp - 0x14], eax
jmp 0x40e5d4
mov edx, dword [ebp - 0xc]
push edx
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x4c]
add ecx, 0xb4
call fcn.0040c290
mov ecx, eax
call fcn.0042e470
mov dword [ebp - 0xc], eax
jmp 0x40e509
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret