Function at 0x40e100
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x433040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
test esi, esi
je 0x40e3b4
xor ecx, ecx
mov edx, 0x4cca44
xor eax, eax
nop word [eax + eax]
cmp dword [eax + edx], ebx
jne 0x40e141
cmp dword [eax + 0x4cca40], esi
je 0x40e1cd
add eax, 0xc
inc ecx
cmp eax, 0x3c
jb 0x40e130
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x40e3b4
mov eax, dword [esi + 0x3c]
add eax, esi
mov dword [ebp - 0x114], eax
cmp dword [eax], 0x4550
jne 0x40e3b4
mov eax, dword [eax + 0x78]
xor edx, edx
add eax, esi
mov dword [ebp - 0x11c], edx
push edi
xor edi, edi
mov dword [ebp - 0x10c], eax
mov ecx, dword [eax + 0x20]
add ecx, esi
mov dword [ebp - 0x110], ecx
xor ecx, ecx
cmp dword [eax + 0x18], ecx
jbe 0x40e369
nop dword [eax + eax]
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax + edi*4]
add ecx, esi
call fcn.004048e0
mov dword [ebp - 0x120], eax
cmp eax, ebx
je 0x40e1e7
mov eax, dword [ebp - 0x10c]
inc edi
cmp edi, dword [eax + 0x18]
jb 0x40e1a0
xor edx, edx
jmp 0x40e363
lea eax, [ecx + ecx*2]
mov eax, dword [eax*4 + 0x4cca48]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004107a0
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x10c]
mov eax, dword [edx + 0x24]
lea eax, [eax + edi*2]
movzx ecx, word [eax + esi]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, dword [eax + esi]
mov eax, dword [ebp - 0x114]
lea edx, [esi + ecx]
mov dword [ebp - 0x11c], edx
mov edx, dword [eax + 0x78]
cmp ecx, edx
mov dword [ebp - 0x114], edx
lea edx, [esi + ecx]
jbe 0x40e363
mov eax, dword [eax + 0x7c]
add eax, dword [ebp - 0x114]
cmp ecx, eax
jae 0x40e363
mov eax, dword [ebp - 0x110]
push 0x103
push edx
push 0x104
mov edi, dword [eax + edi*4]
lea eax, [ebp - 0x108]
add edi, esi
push eax
mov dword [ebp - 0x10c], edi
call fcn.0041732d
lea eax, [ebp - 0x110]
mov dword [ebp - 0x110], 0
push eax
lea eax, [ebp - 0x108]
push 0x430d1c
push eax
call fcn.00417234
add esp, 0x1c
test eax, eax
je 0x40e2e4
cmp dword [ebp - 0x110], 0
je 0x40e2e4
mov ecx, eax
call fcn.0040dcc0
mov edi, eax
test edi, edi
je 0x40e2de
cmp edi, esi
je 0x40e2de
mov edx, dword [ebp - 0x110]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x114], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e2b0
sub ecx, dword [ebp - 0x114]
dec ecx
call fcn.004047d0
not eax
mov ecx, edi
mov edx, eax
call fcn.0040e100
mov edx, eax
mov dword [ebp - 0x11c], edx
test edx, edx
jne 0x40e363
mov edi, dword [ebp - 0x10c]
cmp dword [0x4cca30], 0
jne 0x40e309
mov edx, 0xc0d5b5d8
mov ecx, 0x84c05e40
call fcn.0040e3d0
mov dword [0x4cca30], eax
test eax, eax
jne 0x40e309
xor edx, edx
jmp 0x40e35d
push 0x104
push edi
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x114], edi
call fcn.00416770
movzx eax, ax
add esp, 8
mov word [ebp - 0x118], ax
inc eax
mov word [ebp - 0x116], ax
lea eax, [ebp - 0x10c]
push eax
push 0
lea eax, [ebp - 0x118]
push eax
push esi
call dword [0x4cca30]
mov edx, dword [ebp - 0x10c]
xor eax, eax
cmp edx, esi
cmove edx, eax
mov dword [ebp - 0x11c], edx
mov ecx, dword [ebp - 0x120]
pop edi
cmp ebx, ecx
jne 0x40e3b4
movzx eax, word [0x4cca38]
lea ecx, [eax + eax*2]
inc eax
mov dword [ecx*4 + 0x4cca40], esi
mov dword [ecx*4 + 0x4cca44], ebx
mov dword [ecx*4 + 0x4cca48], edx
xor edx, edx
mov ecx, 5
div ecx
mov eax, dword [ebp - 0x11c]
pop esi
mov word [0x4cca38], dx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004107a0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.004107a0
mov esp, ebp
pop ebp
ret