Function at 0x40b395
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x24
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov ebx, dword [ebp + 0x18]
mov dword [esp + 0x30], ebx
mov esi, dword [ebx + 4]
lea edx, [ebx + 0xc]
test esi, esi
jne 0x40b230
mov eax, dword [edx]
push ebp
call eax
add esp, 4
test al, al
je 0x40b57c
mov esi, dword [ebx + 4]
lea edx, [ebx + 0xc]
mov eax, ebx
mov eax, dword [eax]
movzx ecx, byte [eax]
lea edi, [eax + 1]
shl ecx, 8
mov dword [esp + 0x1c], ecx
sub esi, 1
jne 0x40b25f
mov eax, dword [edx]
push ebp
call eax
add esp, 4
test al, al
je 0x40b57c
mov edi, dword [ebx]
mov esi, dword [ebx + 4]
mov ecx, dword [esp + 0x1c]
movzx eax, byte [edi]
sub ecx, 2
add ecx, eax
dec esi
inc edi
test ecx, ecx
jle 0x40b556
dec ecx
mov dword [esp + 0x1c], ecx
test esi, esi
jne 0x40b290
mov eax, dword [ebx + 0xc]
push ebp
call eax
add esp, 4
test al, al
je 0x40b57c
mov edi, dword [ebx]
mov esi, dword [ebx + 4]
mov eax, dword [ebp]
dec esi
movzx ecx, byte [edi]
inc edi
mov edx, ecx
mov dword [esp + 0x2c], edi
and ecx, 0xf
shr edx, 4
mov dword [eax + 0x14], 0x53
mov eax, dword [ebp]
push 1
push ebp
mov dword [esp + 0x2c], edx
mov dword [eax + 0x18], ecx
mov eax, dword [ebp]
mov dword [esp + 0x28], ecx
mov dword [eax + 0x1c], edx
mov eax, dword [ebp]
mov eax, dword [eax + 4]
call eax
mov ecx, dword [esp + 0x28]
add esp, 8
cmp ecx, 4
jb 0x40b2f5
mov eax, dword [ebp]
push ebp
mov dword [eax + 0x14], 0x20
mov eax, dword [ebp]
mov dword [eax + 0x18], ecx
mov eax, dword [ebp]
mov eax, dword [eax]
call eax
mov ecx, dword [esp + 0x24]
add esp, 4
lea ecx, [ecx + 0x24]
lea eax, [ecx*4]
mov ecx, dword [eax + ebp]
add eax, ebp
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], eax
test ecx, ecx
jne 0x40b323
mov ecx, ebp
call fcn.00409790
mov ecx, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x28], ecx
mov dword [eax], ecx
cmp dword [esp + 0x24], 0
mov eax, dword [esp + 0x1c]
je 0x40b34a
cmp eax, 0x80
jge 0x40b33f
mov edx, eax
sar edx, 1
mov dword [esp + 0x20], edx
jmp 0x40b359
mov edx, 0x40
mov dword [esp + 0x20], edx
jmp 0x40b37f
cmp eax, 0x40
jge 0x40b3f5
mov edx, eax
mov dword [esp + 0x20], eax
movaps xmm0, xmmword [0x447b70]
movups xmmword [ecx], xmm0
movups xmmword [ecx + 0x10], xmm0
movups xmmword [ecx + 0x20], xmm0
movups xmmword [ecx + 0x30], xmm0
movups xmmword [ecx + 0x40], xmm0
movups xmmword [ecx + 0x50], xmm0
movups xmmword [ecx + 0x60], xmm0
movups xmmword [ecx + 0x70], xmm0
lea eax, [edx - 4]
cmp eax, 0x2d
ja case.0x40b38e.5
movzx eax, byte [eax + 0x40b5a4]
jmp dword [eax*4 + 0x40b588]
xor eax, eax
mov dword [esp + 0x18], 0x445cb0
mov dword [esp + 0x14], eax
jmp 0x40b414
xor eax, eax
mov dword [esp + 0x18], 0x445930
mov dword [esp + 0x14], eax
jmp 0x40b414
xor eax, eax
mov dword [esp + 0x18], 0x445808
mov dword [esp + 0x14], eax
jmp 0x40b414
xor eax, eax
mov dword [esp + 0x18], 0x445888
mov dword [esp + 0x14], eax
jmp 0x40b414
xor eax, eax
mov dword [esp + 0x18], 0x445998
mov dword [esp + 0x14], eax
jmp 0x40b414
xor eax, eax
mov dword [esp + 0x18], 0x445ba8
mov dword [esp + 0x14], eax
jmp 0x40b414
mov edx, 0x40
mov dword [esp + 0x20], edx
xor eax, eax
mov dword [esp + 0x18], 0x445a68
mov dword [esp + 0x14], eax
test edx, edx
jle 0x40b4c3
cmp dword [esp + 0x24], 0
je 0x40b472
test esi, esi
jne 0x40b435
mov eax, dword [ebx + 0xc]
push ebp
call eax
add esp, 4
test al, al
je 0x40b57c
mov edi, dword [ebx]
mov esi, dword [ebx + 4]
mov al, byte [edi]
inc edi
mov byte [esp + 0x13], al
sub esi, 1
jne 0x40b45b
mov eax, dword [ebx + 0xc]
push ebp
call eax
add esp, 4
test al, al
je 0x40b57c
mov edi, dword [ebx]
mov esi, dword [ebx + 4]
mov al, byte [esp + 0x13]
movzx ecx, al
dec esi
mov eax, 0x100
imul ecx, eax
movzx eax, byte [edi]
add cx, ax
movzx eax, cx
jmp 0x40b490
test esi, esi
jne 0x40b48c
mov eax, dword [ebx + 0xc]
push ebp
call eax
add esp, 4
test al, al
je 0x40b57c
mov edi, dword [ebx]
mov esi, dword [ebx + 4]
movzx eax, byte [edi]
dec esi
mov edx, dword [esp + 0x14]
inc edi
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x2c], edi
mov eax, dword [eax + edx*4]
inc edx
mov dword [esp + 0x14], edx
mov word [ecx + eax*2], bx
mov ebx, dword [esp + 0x30]
cmp edx, dword [esp + 0x20]
jl 0x40b414
mov eax, dword [ebp]
cmp dword [eax + 0x68], 2
jl 0x40b536
lea ebx, [ecx + 4]
mov edi, 8
mov ecx, dword [ebp]
movzx eax, word [ebx - 4]
push 2
push ebp
mov dword [ecx + 0x18], eax
movzx eax, word [ebx - 2]
mov dword [ecx + 0x1c], eax
movzx eax, word [ebx]
mov dword [ecx + 0x20], eax
movzx eax, word [ebx + 2]
mov dword [ecx + 0x24], eax
movzx eax, word [ebx + 4]
mov dword [ecx + 0x28], eax
movzx eax, word [ebx + 6]
mov dword [ecx + 0x2c], eax
movzx eax, word [ebx + 8]
mov dword [ecx + 0x30], eax
movzx eax, word [ebx + 0xa]
mov dword [ecx + 0x34], eax
mov eax, dword [ebp]
mov dword [eax + 0x14], 0x5f
mov eax, dword [ebp]
mov eax, dword [eax + 4]
call eax
add esp, 8
lea ebx, [ebx + 0x10]
sub edi, 1
jne 0x40b4d4
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
sub ecx, dword [esp + 0x20]
mov eax, ecx
sub ecx, dword [esp + 0x20]
cmp dword [esp + 0x24], 0
cmove ecx, eax
test ecx, ecx
jg 0x40b271
test ecx, ecx
je 0x40b56d
mov eax, dword [ebp]
push ebp
mov dword [eax + 0x14], 0xc
mov eax, dword [ebp]
mov eax, dword [eax]
call eax
add esp, 4
mov dword [ebx], edi
mov al, 1
pop edi
mov dword [ebx + 4], esi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x24
ret