Function at 0x4038f8
Capabilities:
Enumerate pe sections
Inspect section memory permissions
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
and dword [ebp - 0x20], 0
push ebx
mov ebx, ecx
cmp dword [ebx + 0x70], 0
mov dword [ebp - 0x1c], ebx
je 0x403918
xor eax, eax
jmp 0x403f11
mov eax, dword [ebx + 0x50]
mov ecx, 0x5a4d
mov dword [ebp - 0xc], eax
cmp word [eax], cx
jne 0x403ef2
push esi
mov esi, dword [eax + 0x3c]
add esi, eax
cmp dword [esi], 0x4550
jne 0x403ef1
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x34]
push edi
mov edi, dword [0x676123]
push 0x40
push 0x2000
push eax
push ecx
push dword [ebp + 8]
call edi
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x40398e
call dword [0x6761ff]
cmp eax, 0x1e7
jne 0x403ef0
mov eax, dword [esi + 0x50]
push 0x40
push 0x2000
push eax
push 0
push dword [ebp + 8]
call edi
mov dword [ebp - 0x10], eax
test eax, eax
je 0x403ef0
mov eax, dword [ebp - 0x10]
sub eax, dword [esi + 0x34]
push 4
push 0x1000
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x54]
push eax
push dword [ebp - 0x10]
push dword [ebp + 8]
call edi
mov dword [ebp - 4], eax
test eax, eax
je 0x403ef0
push dword [esi + 0x80]
mov ecx, ebx
call fcn.004132ef
push dword [esi + 0x54]
and dword [esi + 0x80], 0
push dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.004012bd
add esp, 0x10
test eax, eax
je 0x403ef0
push 2
push dword [esi + 0x54]
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.0040c455
add esp, 0x10
test eax, eax
je 0x403ef0
movzx eax, word [esi + 0x14]
and dword [ebp - 0xc], 0
lea eax, [esi + eax + 0x18]
mov dword [ebp - 0x2c], eax
xor eax, eax
cmp ax, word [esi + 6]
jae 0x403ac6
mov ebx, dword [ebp - 0x2c]
add ebx, 0x10
mov eax, dword [ebx - 8]
mov ecx, dword [ebx]
mov dword [ebp - 4], eax
cmp eax, ecx
ja 0x403a33
mov dword [ebp - 4], ecx
mov eax, dword [ebx - 4]
add eax, dword [ebp - 0x10]
push 4
push 0x1000
push dword [ebp - 4]
push eax
push dword [ebp + 8]
call edi
mov dword [ebp - 0x14], eax
test eax, eax
je 0x403eed
push dword [ebp - 0x20]
push dword [ebp - 4]
call fcn.0040c100
push dword [ebp - 4]
mov dword [ebp - 0x20], eax
push 0
push eax
call fcn.0040a74e
push dword [ebp - 4]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
push dword [ebp + 8]
call fcn.004012bd
add esp, 0x24
test eax, eax
je 0x403eed
mov eax, dword [ebx]
test eax, eax
je 0x403ab0
mov ecx, dword [ebp - 0x1c]
push eax
mov eax, dword [ebx + 4]
add eax, dword [ecx + 0x50]
push eax
push dword [ebp - 0x14]
push dword [ebp + 8]
call fcn.004012bd
add esp, 0x10
test eax, eax
je 0x403eed
movzx eax, word [esi + 6]
inc dword [ebp - 0xc]
add ebx, 0x28
cmp dword [ebp - 0xc], eax
jl 0x403a24
mov ebx, dword [ebp - 0x1c]
cmp dword [ebp - 8], 0
je 0x403ba8
push dword [esi + 0xa0]
mov ecx, ebx
call fcn.004132ef
mov edi, eax
test edi, edi
je 0x403ef0
xor edx, edx
jmp 0x403b9e
mov eax, dword [edi + 4]
sub eax, 8
shr eax, 1
mov dword [ebp - 0x1c], eax
lea eax, [edi + 8]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 4], eax
je 0x403b9b
mov eax, dword [ebp - 4]
movzx eax, word [eax]
mov cx, ax
shr cx, 0xc
cmp cx, 3
jne 0x403b42
and eax, 0xfff
add eax, dword [edi]
mov ecx, ebx
push eax
mov dword [ebp - 0xc], eax
call fcn.004132ef
mov eax, dword [eax]
add eax, dword [ebp - 8]
push 4
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
jmp 0x403b6f
cmp cx, 0xa
jne 0x403b8e
and eax, 0xfff
add eax, dword [edi]
mov ecx, ebx
push eax
mov dword [ebp - 0xc], eax
call fcn.004132ef
mov ecx, dword [ebp - 8]
xor edx, edx
add ecx, dword [eax]
push 8
adc edx, dword [eax + 4]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edx
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.004012bd
add esp, 0x10
test eax, eax
je 0x403ef0
xor edx, edx
add dword [ebp - 4], 2
dec dword [ebp - 0x1c]
jne 0x403b0e
add edi, dword [edi + 4]
cmp dword [edi], edx
jne 0x403aee
jmp 0x403baa
xor edx, edx
mov eax, dword [ebp - 0x18]
cmp eax, edx
je 0x403c7a
cmp dword [eax], edx
jne 0x403bd1
cmp dword [eax + 0x10], edx
jne 0x403bd1
cmp dword [eax + 8], edx
jne 0x403bd1
cmp dword [eax + 0xc], edx
jne 0x403bd1
cmp dword [eax + 4], edx
je 0x403c7a
mov ecx, dword [eax + 0xc]
mov dword [ebp - 4], edx
cmp ecx, edx
je 0x403bb5
push ecx
mov ecx, ebx
call fcn.004132ef
push eax
call fcn.00407227
mov dword [ebp - 0x14], eax
test eax, eax
je 0x403ef0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx]
test eax, eax
jne 0x403c00
mov eax, dword [ecx + 0x10]
push eax
mov ecx, ebx
call fcn.004132ef
mov ecx, dword [ebp - 0x18]
mov edi, dword [ecx + 0x10]
add edi, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x403c66
mov ecx, ebx
test eax, eax
jns 0x403c23
and eax, 0xffff
jmp 0x403c2e
push eax
call fcn.004132ef
add eax, 2
mov ecx, ebx
push eax
push dword [ebp - 0x14]
call fcn.0040e3bd
mov dword [ebp - 4], eax
test eax, eax
je 0x403ef0
push 4
lea eax, [ebp - 4]
push eax
push edi
push dword [ebx + 0x5c]
call fcn.004012bd
add esp, 0x10
test eax, eax
je 0x403ef0
add dword [ebp - 8], 4
mov eax, dword [ebp - 8]
add edi, 4
mov eax, dword [eax]
test eax, eax
jne 0x403c16
add dword [ebp - 0x18], 0x14
mov eax, dword [ebp - 0x18]
xor edx, edx
jmp 0x403bb5
cmp dword [ebx + 0x58], edx
jne 0x403e36
mov eax, dword [esi + 0x78]
push eax
mov ecx, ebx
mov dword [ebp - 0x14], eax
call fcn.004132ef
mov edi, eax
test edi, edi
je 0x403ef0
push dword [edi + 0x1c]
call fcn.004132ef
push dword [edi + 0x20]
mov dword [ebp - 8], eax
call fcn.004132ef
push dword [edi + 0x24]
mov dword [ebp - 0x24], eax
call fcn.004132ef
and dword [ebp - 0xc], 0
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0x7c]
add eax, dword [ebp - 0x14]
cmp dword [edi + 0x14], 0
mov dword [ebp - 0x1c], eax
jbe 0x403e00
mov eax, dword [ebp - 8]
mov eax, dword [eax]
add dword [ebp - 8], 4
mov dword [ebp - 0x18], eax
test eax, eax
je 0x403df1
cmp eax, dword [ebp - 0x14]
jb 0x403cf5
cmp eax, dword [ebp - 0x1c]
jb 0x403df1
mov ecx, dword [edi + 0x18]
xor eax, eax
test ecx, ecx
je 0x403df1
mov edx, dword [ebp - 0x30]
movzx edx, word [edx + eax*2]
cmp edx, dword [ebp - 0xc]
je 0x403d18
inc eax
cmp eax, ecx
jb 0x403d02
jmp 0x403df1
mov ecx, dword [ebp - 0x24]
push dword [ecx + eax*4]
mov ecx, ebx
call fcn.004132ef
mov dword [ebp - 4], eax
lea eax, [ebp - 0x94]
push 0x66
push eax
call fcn.0040db8e
pop ecx
pop ecx
lea eax, [ebp - 0x94]
push eax
push dword [ebp - 4]
call dword [0x6760c3]
test eax, eax
jne 0x403d5d
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x10]
mov dword [ebx + 0x90], eax
jmp 0x403df1
lea eax, [ebp - 0x94]
push 0x67
push eax
call fcn.0040db8e
pop ecx
pop ecx
lea eax, [ebp - 0x94]
push eax
push dword [ebp - 4]
call dword [0x6760c3]
test eax, eax
jne 0x403d8f
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x10]
mov dword [ebx + 0x94], eax
jmp 0x403df1
lea eax, [ebp - 0x94]
push pe_nt_image_headers32
push eax
call fcn.0040db8e
pop ecx
pop ecx
lea eax, [ebp - 0x94]
push eax
push dword [ebp - 4]
call dword [0x6760c3]
test eax, eax
jne 0x403dc1
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x10]
mov dword [ebx + 0x98], eax
jmp 0x403df1
lea eax, [ebp - 0x94]
push 0x69
push eax
call fcn.0040db8e
pop ecx
pop ecx
lea eax, [ebp - 0x94]
push eax
push dword [ebp - 4]
call dword [0x6760c3]
test eax, eax
jne 0x403df1
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x10]
mov dword [ebx + 0x9c], eax
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [edi + 0x14]
jb 0x403cd3
cmp dword [ebx + 0x90], 0
je 0x403ef0
cmp dword [ebx + 0x94], 0
je 0x403ef0
cmp dword [ebx + 0x98], 0
je 0x403ef0
cmp dword [ebx + 0x9c], 0
je 0x403ef0
xor edx, edx
xor eax, eax
mov dword [ebp - 8], edx
cmp ax, word [esi + 6]
jae 0x403ecb
mov edi, dword [ebp - 0x2c]
add edi, 0x24
mov eax, dword [edi]
test eax, 0x20000000
je 0x403e7d
test eax, 0x40000000
je 0x403e6c
and eax, 0x80000000
neg eax
sbb eax, eax
and eax, 0x20
add eax, 0x20
jmp 0x403ea2
and eax, 0x80000000
neg eax
sbb eax, eax
and eax, 0x70
add eax, 0x10
jmp 0x403ea2
test eax, 0x40000000
je 0x403e95
and eax, 0x80000000
neg eax
sbb eax, eax
and eax, 2
add eax, 2
jmp 0x403ea2
and eax, 0x80000000
neg eax
sbb eax, eax
and eax, 7
inc eax
push eax
mov eax, dword [edi - 0x18]
push dword [edi - 0x1c]
add eax, dword [ebp - 0x10]
push eax
push dword [ebp + 8]
call fcn.0040c455
add esp, 0x10
test eax, eax
je 0x403ef0
movzx eax, word [esi + 6]
inc dword [ebp - 8]
add edi, 0x28
cmp dword [ebp - 8], eax
jl 0x403e4b
mov eax, dword [ebp - 0x10]
push 0
xor esi, esi
inc esi
push esi
push eax
mov ecx, ebx
mov dword [ebx + 0x4c], eax
call fcn.0040884e
test eax, eax
jne 0x403ee8
cmp dword [ebx + 0x58], eax
je 0x403ef0
mov dword [ebx + 0x70], esi
jmp 0x403ef0
mov ebx, dword [ebp - 0x1c]
pop edi
pop esi
cmp dword [ebx + 0x70], 0
jne 0x403eff
mov ecx, ebx
call fcn.004131d5
cmp dword [ebp - 0x20], 0
je 0x403f0e
push dword [ebp - 0x20]
call fcn.0040f1be
pop ecx
mov eax, dword [ebx + 0x4c]
pop ebx
leave
ret 4