Function at 0x40a140
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0xbc
movzx ebp, word [eax + 2]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0xd0]
movzx edi, word [eax]
mov dword [eax + 0x2c], 0
mov dword [eax + 0x24], edx
test ecx, ecx
sete al
test edx, edx
mov word [esp + 0x28], bp
mov esi, eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], 0xffffffff
je 0x40a1ad
mov ecx, esi
xor eax, eax
test cl, cl
je 0x40a192
mov eax, dword [edx]
movzx ecx, word [ebx + 0x14]
mov ebp, edi
add dword [ebx + 0x54], 1
mov dword [ebx + 0x24], eax
and ebp, ecx
cmp word [edx + 4], bp
je 0x40a1c0
mov edx, eax
test edx, edx
jne 0x40a188
mov eax, dword [esp + 0x24]
add esp, 0xbc
pop ebx
pop esi
pop edi
pop ebp
ret
movzx ebp, word [esp + 0x28]
cmp word [edx + 6], bp
jne 0x40a1a7
mov ebp, dword [ebx + 0x38]
sub edx, ebp
sar edx, 3
imul edx, edx, 0xaaaaaaab
mov dword [esp + 0x14], ebp
mov dword [esp + 0x20], edx
mov edx, esi
test dl, dl
je 0x40a280
cmp dword [ebx + 0x1c], 1
jle 0x40a215
mov ebp, dword [esp + 0x20]
and cx, word [ebx + 4]
lea edx, [ebp + ebp*2 + 3]
mov ebp, dword [esp + 0x14]
lea edx, [ebp + edx*8]
cmp word [edx + 4], cx
jne 0x40a1a7
movzx ecx, word [ebx + 6]
cmp word [edx + 6], cx
jne 0x40a1a7
mov eax, esi
add dword [ebx + 0x58], 1
test al, al
je 0x40a284
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x90]
xor ebp, ebp
lea eax, [ecx + ecx*2]
mov ecx, esi
shl eax, 3
mov esi, edx
mov dword [esp + 0x18], eax
mov byte [esp + 0x2b], cl
cmp dword [esp + 0x1c], ebp
jl 0x40a360
mov eax, dword [ebx + 0x18]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp], esi
mov dword [esp + 8], eax
lea eax, [edx + ecx + 8]
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x40a2f0
movzx esi, byte [esp + 0x2b]
mov eax, dword [ebx + 0x24]
mov edx, eax
jmp 0x40a1a9
add dword [ebx + 0x58], 1
cmp dword [esp + 0x1c], 0xffffffff
lea ebp, [esp + 0x90]
je 0x40a3c0
mov eax, dword [ebx + 0x18]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov dword [esp], ebp
mov dword [esp + 8], eax
lea eax, [ecx + ecx*2]
lea eax, [edx + eax*8 + 8]
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x40a274
mov eax, dword [esp + 0xd0]
test eax, eax
je 0x40a417
mov eax, dword [esp + 0x20]
mov ebp, 1
mov ecx, dword [ebx + 0x30]
add dword [ebx + 0x5c], ebp
add eax, ebp
cmp ecx, eax
jg 0x40a328
mov ebp, ecx
mov eax, ecx
sub ebp, dword [esp + 0x20]
jmp 0x40a33d
add ebp, 1
add esi, 0x10
add dword [esp + 0x18], 0x18
cmp ebp, dword [ebx + 0x1c]
jl 0x40a23e
movzx esi, byte [esp + 0x2b]
mov ecx, dword [esp + 0x20]
mov dword [esp], ebx
mov dword [esp + 4], ecx
call fcn.00409d50
add dword [ebx + 0x5c], ebp
mov ecx, eax
mov eax, dword [esp + 0x20]
add eax, ebp
cmp ecx, eax
jle 0x40a2e0
lea edx, [eax + eax*2]
shl edx, 3
add edx, dword [ebx + 0x38]
mov dword [ebx + 0x2c], edx
mov edx, esi
test dl, dl
je 0x40a33d
mov dword [ebx + 0x30], ecx
mov ecx, dword [esp + 0x20]
sub eax, 1
mov edx, dword [esp + 0x2c]
mov dword [esp], eax
mov eax, ebx
call fcn.00409ff0
add dword [esp + 0x24], ebp
jmp 0x40a274
mov edx, dword [ebx + 0xc]
mov eax, ebp
imul eax, edx
add eax, dword [esp + 0x2c]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
lea eax, [esp + 0x38]
mov dword [esp], eax
call fcn.0040ac40
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x38]
mov dword [esp], ecx
mov dword [esp + 8], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 4], edx
call fcn.0040b150
lea eax, [esp + 0x38]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.0040b2f0
mov edx, dword [ebx + 0x38]
add dword [ebx + 0x60], 1
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], edx
jmp 0x40a248
mov eax, dword [ebx + 0xc]
lea edx, [esp + 0x38]
mov dword [esp], edx
mov dword [esp + 0x10], eax
call fcn.0040ac40
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 8], eax
lea eax, [esp + 0x38]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.0040b150
lea edx, [esp + 0x38]
mov dword [esp + 4], edx
mov dword [esp], ebp
call fcn.0040b2f0
mov ecx, dword [ebx + 0x38]
add dword [ebx + 0x60], 1
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], ecx
jmp 0x40a296
mov ebp, 1
jmp 0x40a309