Function at 0x670ae520
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
push ebx
push ebp
mov ebp, dword [esp + 0x24]
mov edx, 0xffff
push esi
mov esi, dword [esp + 0x30]
push edi
mov eax, dword [ebp]
mov dword [esp + 0x10], edx
mov ecx, dword [eax + 0x1c]
mov eax, edx
mov word [ebp + 0xe], ax
cmp dword [esi + 4], 0
mov dword [esi + 0xc], 0
jbe 0x670ae843
mov di, word [esp + 0x30]
xor eax, eax
movzx ebx, di
mov dword [esp + 0x24], ebx
lea ecx, [ecx + ebx*4]
mov dword [esp + 0x18], ecx
nop word [eax + eax]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x14]
mov eax, dword [eax + ecx*4 + 4]
mov ecx, dword [esp + 0x18]
not eax
test dword [ecx], eax
je 0x670ae838
mov eax, dword [ebp]
cmp di, word [eax + 0x20]
jae 0x670ae813
mov eax, dword [eax + 0x18]
lea ecx, [ebx + ebx*2]
movzx edx, word [eax + ecx*4 + 6]
lea edi, [eax + ecx*4]
movzx eax, word [edi + 4]
xor ecx, ecx
xor ebx, ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], eax
cmp cx, word [edi + 8]
jae 0x670ae80f
movzx eax, bx
lea ecx, [eax + eax*8]
mov eax, dword [edi]
lea edi, [eax + ecx*8]
mov eax, dword [esp + 0x1c]
dec eax
cmp eax, 7
ja case.default.0x670ae5da
jmp dword [eax*4 + 0x670ae850]
mov edx, dword [ebp]
lea eax, [esp + 0x34]
push eax
mov eax, dword [esi + 0xc]
push dword [esp + 0x18]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*4]
push eax
push dword [edx + 0x24]
call fcn.670a78d0
add esp, 0x10
test eax, eax
jne 0x670ae7f5
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esi + 0xc]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x14]
movzx eax, word [eax + ecx*4]
push eax
lea eax, [edi + 4]
push eax
call fcn.670b6440
add esp, 0xc
test eax, eax
jne 0x670ae7f5
movzx eax, byte [edi]
sub eax, 1
je 0x670ae690
sub eax, 1
je 0x670ae653
push 0x1570
call fcn.670b5cc0
add esp, 4
jmp 0x670ae7f5
mov dx, word [esp + 0x2c]
cmp dx, word [edi + 0x14]
jb 0x670ae670
push 0x1570
call fcn.670b5cc0
add esp, 4
jmp 0x670ae7f5
mov eax, dword [esi + 0xc]
lea ecx, [eax + eax*2]
mov eax, dword [esi + 0x20]
lea eax, [eax + ecx*8]
push eax
movzx eax, word [edi + 0x10]
push eax
movzx eax, dx
lea ecx, [eax + eax*2]
mov eax, dword [edi + 0x18]
lea eax, [eax + ecx*4]
jmp 0x670ae6a5
mov eax, dword [esi + 0xc]
lea ecx, [eax + eax*2]
mov eax, dword [esi + 0x20]
lea eax, [eax + ecx*8]
push eax
movzx eax, word [edi + 0x10]
push eax
lea eax, [edi + 0x14]
push eax
push ebp
call fcn.670aeb00
add esp, 0x10
test eax, eax
jne 0x670ae7f5
inc dword [esi + 0xc]
xor edx, edx
mov dword [esp + 0x10], edx
jmp 0x670ae816
push 1
push 0xffff
push edx
push esi
push edi
push ebp
call fcn.670b5180
jmp 0x670ae7f2
push 1
push 0xffff
push edx
push esi
push edi
push ebp
call fcn.670b48a0
jmp 0x670ae7f2
push 1
push 0xffff
push edx
push esi
push edi
push ebp
call fcn.670b4ab0
jmp 0x670ae7f2
push 1
push 0xffff
push edx
push esi
push edi
push ebp
call fcn.670b4ce0
jmp 0x670ae7f2
push 1
push 0xffff
push edx
push esi
push edi
push ebp
call fcn.670b4f30
jmp 0x670ae7f2
movzx eax, byte [edi]
sub eax, 1
je 0x670ae77f
sub eax, 1
je 0x670ae76a
sub eax, 1
je 0x670ae752
push 0x157f
call fcn.670b5cc0
add esp, 4
jmp 0x670ae7f5
push 1
push 0xffff
push edx
push esi
lea eax, [edi + 4]
push eax
push ebp
call fcn.670b4720
jmp 0x670ae7f2
push 1
push 0xffff
push edx
push esi
lea eax, [edi + 4]
push eax
push ebp
call fcn.670b4460
jmp 0x670ae7f2
push 1
push 0xffff
push edx
push esi
lea eax, [edi + 4]
push eax
push ebp
call fcn.670b4270
jmp 0x670ae7f2
movzx eax, byte [edi]
sub eax, 1
je 0x670ae7df
sub eax, 1
je 0x670ae7ca
sub eax, 1
je 0x670ae7b5
push 0x157f
call fcn.670b5cc0
add esp, 4
jmp 0x670ae7f5
push 1
push 0xffff
push edx
push esi
lea eax, [edi + 4]
push eax
push ebp
call fcn.670b3f00
jmp 0x670ae7f2
push 1
push 0xffff
push edx
push esi
lea eax, [edi + 4]
push eax
push ebp
call fcn.670b3950
jmp 0x670ae7f2
push 1
push 0xffff
push edx
push esi
lea eax, [edi + 4]
push eax
push ebp
call fcn.670b35a0
add esp, 0x18
cmp eax, 0xffff
jne 0x670ae82c
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
inc ebx
cmp bx, word [edi + 8]
jb 0x670ae5c1
mov edx, dword [esp + 0x10]
inc dword [esi + 0xc]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 4]
jae 0x670ae843
mov ebx, dword [esp + 0x24]
mov di, word [esp + 0x30]
jmp 0x670ae570
test eax, eax
jne 0x670ae845
xor edx, edx
mov dword [esp + 0x10], edx
jmp 0x670ae816
mov eax, 0xffff
mov word [ebp + 0xe], ax
jmp 0x670ae813
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret