Function at 0x40ad80
Capabilities:
Enumerate pe sections

Disassembly:
mov edx, dword [esp + 0xc]
sub esp, 0x30
push ebx
mov eax, dword [edx + 0x10]
push esi
mov ecx, dword [edx + 0x18]
push edi
mov ebx, dword [edx + 0x14]
push ebp
mov edi, dword [edx + 8]
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], ecx
xor ecx, ecx
mov eax, dword [edx]
mov esi, 0
mov dword [esp + 0x10], ebx
cmp dword [eax + 8], 1
adc esi, 0xffffffff
and esi, 0x10
cmp ebx, ecx
jle 0x40add5
lea ebx, [edi + 4]
mov edx, dword [esp + 0x10]
xor eax, eax
mov al, byte [ebx]
add ebx, 0x80
imul eax, dword [esp + 0x18]
add ecx, eax
dec edx
jne 0x40adc1
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
cmp eax, edx
jge 0x40adfd
shl eax, 7
lea ebx, [eax + edi + 4]
mov eax, edx
sub eax, dword [esp + 0x10]
xor edx, edx
mov dl, byte [ebx]
add ebx, 0x80
add ecx, edx
dec eax
jne 0x40adee
lea eax, [ecx + esi + 0x20]
xor esi, esi
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x14], esi
cmp ecx, esi
jle 0x40aff7
lea eax, [edi + 4]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x44]
add eax, 0x80
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x48]
add eax, 0x80
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x34], 0
mov dword [esp + 0x28], eax
sub eax, 0x80
mov dword [esp + 0x2c], eax
lea eax, [ebp - 0x80]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
mov eax, 1
jge 0x40ae71
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x34]
cmp ecx, eax
jge 0x40afbc
mov edx, 1
mov eax, dword [esp + 0x38]
mov cl, byte [eax]
shl edx, cl
xor ecx, ecx
sub edx, 2
test edx, edx
jle 0x40aec4
lea ebx, [esi + ecx]
xor eax, eax
mov al, byte [edi + ebx*8 + 6]
xor ebx, ebx
test ecx, ecx
setg bl
add eax, ebx
mov ebx, dword [esp + 0x30]
fld dword [eax*4 + 0x486658]
fsub dword [ebx]
fcomp qword [0x41a1b0]
fnstsw ax
test ah, 1
je 0x40aec4
inc ecx
cmp ecx, edx
jl 0x40ae93
mov eax, dword [esp + 0x18]
cmp eax, 2
jne 0x40af0b
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
cmp eax, ebx
jl 0x40af0b
cmp ecx, edx
jge 0x40af0b
lea ebx, [esi + ecx]
xor eax, eax
mov al, byte [edi + ebx*8 + 6]
xor ebx, ebx
test ecx, ecx
setg bl
add eax, ebx
fld dword [eax*4 + 0x486658]
fsub dword [ebp]
fcomp qword [0x41a1b0]
fnstsw ax
test ah, 1
je 0x40af0b
inc ecx
cmp ecx, edx
jl 0x40aedd
test ecx, ecx
jle 0x40af82
add ecx, esi
xor eax, eax
mov al, byte [edi + ecx*8 + 4]
lea edx, [edi + ecx*8]
xor ecx, ecx
mov cl, byte [edx + 5]
imul eax, ecx
lea ebx, [eax + eax*2]
mov eax, dword [esp + 0x2c]
mov ecx, 2
nop
lea edx, [ebx*4]
mov ebx, dword [eax]
mov eax, dword [ebx*4 + 0x4866a0]
lea eax, [eax + eax*2]
lea ebx, [eax*2]
mov eax, dword [esp + 0x18]
cmp eax, ecx
jne 0x40af73
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x10]
jl 0x40af73
mov ecx, 4
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
mov eax, dword [eax*4 + 0x4866a0]
lea eax, [eax + eax*2]
lea ebx, [ebx + eax*2]
lea eax, [ebx + edx]
add eax, ecx
mov ecx, dword [esp + 0x3c]
add ecx, eax
mov dword [esp + 0x3c], ecx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
sub eax, 0x80
sub ebp, 0x80
mov edx, dword [esp + 0x30]
mov dword [esp + 0x28], eax
mov eax, pe_nt_image_headers32
mov ebx, dword [esp + 0x34]
add ecx, eax
add edx, eax
inc ebx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ebx
jmp 0x40ae5c
add esi, 0x10
mov eax, dword [esp + 0x38]
add eax, 0x80
mov ecx, dword [esp + 0x1c]
add ecx, 4
mov edx, dword [esp + 0x20]
add edx, 4
mov ebx, dword [esp + 0x14]
inc ebx
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x38], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], ebx
cmp ebx, ebp
jl 0x40ae38
mov eax, dword [esp + 0x3c]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x30
ret