Function at 0x406d70
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
lea ecx, [eax*8]
push edi
sub ecx, eax
shl ecx, 4
add ecx, eax
xor eax, eax
mov dword [esp + 0x14], eax
lea ebp, [ecx*8 + 0x4aa058]
mov byte [ebp + 0x37b], 0
mov edx, dword [esp + 0x30]
movsx eax, byte [eax + edx]
test eax, eax
jl 0x406ff7
mov ecx, eax
mov edx, dword [0x4c34e4]
shl ecx, 4
add ecx, ebp
movsx esi, byte [ecx + 0xc]
movsx ecx, word [ecx]
lea ecx, [ecx + ecx*2]
lea edi, [edx + ecx*8]
mov dl, byte [edx + ecx*8 + 3]
and edx, 0xf
test esi, esi
jg 0x406ec8
lea eax, [eax + eax*2 + 0x24]
mov ecx, dword [0x4c34e0]
lea esi, [ebp + eax*4]
xor eax, eax
mov ax, word [edi + 6]
mov dword [esp + 0x28], esi
lea edx, [eax + eax*2]
xor eax, eax
mov ax, word [edi + 4]
lea ebx, [ecx + edx*2]
lea eax, [eax + eax*2]
movsx edx, word [ebx + 4]
lea eax, [ecx + eax*2]
mov dword [esp + 0x10], eax
movsx ecx, word [eax + 4]
sub ecx, edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], ecx
lea edx, [esp + 0x18]
movsx eax, word [eax]
movsx ecx, word [ebx]
sub ecx, eax
lea eax, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x28], ecx
call fcn.0042d6a0
mov esi, dword [esi + 8]
mov eax, dword [edi + 0x14]
movsx ecx, word [ebx + 4]
fstp st(0)
mov edx, dword [esp + 0x30]
add esp, 8
sar esi, 8
sub esi, eax
mov eax, dword [edx]
mov edx, dword [edi + 0xc]
sub esi, ecx
movsx ecx, word [ebx]
imul esi, dword [esp + 0x20]
sar eax, 8
sub eax, ecx
sub eax, edx
imul eax, dword [esp + 0x18]
add esi, eax
jns 0x406fe5
push 1
push ebp
call fcn.0040a560
mov eax, dword [esp + 0x18]
movsx ecx, word [ebx]
movsx edx, word [eax]
sub edx, ecx
push edx
movsx edx, word [eax + 4]
movsx eax, word [ebx + 4]
sub edx, eax
push edx
call fcn.0040a840
mov ecx, eax
mov eax, esi
cdq
and edx, 0xfff
push 1
add eax, edx
sar eax, 0xc
push eax
push ecx
mov ecx, dword [esp + 0x44]
push ecx
push ebp
call fcn.00406a20
push ebp
call dword [esp + 0x54]
add esp, 0x28
mov byte [ebp + 0x37b], 1
jmp 0x406fe5
lea ecx, [edx - 1]
cmp esi, ecx
jl 0x406fe5
lea eax, [eax + eax*2 + 0x24]
xor ecx, ecx
mov cl, byte [edi]
lea eax, [ebp + eax*4]
mov dword [esp + 0x28], eax
xor eax, eax
mov ax, word [edi + 4]
mov esi, eax
mov eax, dword [ecx*8 + 0x4621a0]
add eax, esi
mov esi, dword [0x4c34e0]
add eax, edx
lea eax, [eax + eax*2]
lea ebx, [esi + eax*2]
xor eax, eax
mov ax, word [edi + 6]
mov dword [esp + 0x10], eax
mov eax, dword [ecx*8 + 0x4621a4]
mov ecx, dword [esp + 0x10]
add eax, ecx
add eax, edx
lea edx, [eax + eax*2]
movsx ecx, word [esi + edx*2 + 4]
lea eax, [esi + edx*2]
movsx edx, word [ebx + 4]
sub ecx, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], 0
movsx eax, word [eax]
movsx ecx, word [ebx]
sub ecx, eax
lea edx, [esp + 0x18]
lea eax, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x28], ecx
call fcn.0042d6a0
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x30]
movsx edx, word [ebx + 4]
fstp st(0)
mov esi, dword [ecx + 8]
mov ecx, dword [edi + 0x14]
sar esi, 8
sub esi, ecx
mov ecx, dword [eax]
sub esi, edx
add esp, 8
movsx edx, word [ebx]
imul esi, dword [esp + 0x20]
sar ecx, 8
sub ecx, edx
mov edx, dword [edi + 0xc]
sub ecx, edx
imul ecx, dword [esp + 0x18]
add esi, ecx
jns 0x406fe5
push 1
push ebp
call fcn.0040a560
mov eax, dword [esp + 0x18]
movsx edx, word [ebx]
movsx ecx, word [eax]
movsx eax, word [eax + 4]
sub ecx, edx
push ecx
movsx ecx, word [ebx + 4]
sub eax, ecx
push eax
call fcn.0040a840
mov ecx, eax
mov eax, esi
cdq
and edx, 0xfff
push 2
add eax, edx
mov edx, dword [esp + 0x3c]
sar eax, 0xc
push eax
push ecx
push edx
push ebp
call fcn.00406a20
push ebp
call dword [esp + 0x54]
add esp, 0x28
mov byte [ebp + 0x37b], 2
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 8
mov dword [esp + 0x14], eax
jl 0x406d9d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret