Function at 0x10018f10
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, dword [ecx + 0x28]
mov ebp, edx
push edi
mov edi, dword [ecx + 4]
mov ebx, 0x100
movzx ecx, byte [esi + edi]
lea edx, [esi + edi]
movzx eax, byte [edx + 1]
imul ecx, ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], esi
add cx, ax
movzx eax, cx
mov dword [esp + 0x20], eax
test ax, ax
jne 0x10018f6e
movzx ecx, byte [edx + 2]
movzx eax, byte [edx + 3]
shl ecx, 8
add eax, 0xfffffffa
add eax, ecx
cmp ebp, eax
jge 0x100191f2
movzx eax, byte [edx + ebp + 6]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
cmp eax, 6
jne 0x10018fbb
movzx ebx, byte [edx + 6]
movzx eax, byte [edx + 7]
shl ebx, 8
add ebx, eax
cmp ebp, ebx
jb 0x100191f2
movzx eax, byte [edx + 9]
movzx ecx, byte [edx + 8]
add eax, ebx
shl ecx, 8
add ecx, eax
cmp ebp, ecx
jae 0x100191f2
sub ebp, ebx
lea ecx, [esi + ebp*2]
movzx eax, byte [ecx + edi + 0xb]
movzx ecx, byte [ecx + edi + 0xa]
pop edi
pop esi
shl ecx, 8
pop ebp
add eax, ecx
pop ebx
add esp, 0x14
ret
cmp eax, 2
je 0x100191f2
cmp eax, 4
jne 0x10019143
movzx ecx, byte [edx + 6]
add esi, 0xe
movzx eax, byte [edx + 7]
imul ecx, ebx
mov dword [esp + 0x20], esi
add cx, ax
shr cx, 1
movzx eax, cx
movzx ecx, byte [edx + 8]
imul ecx, ebx
mov dword [esp + 0x18], eax
movzx eax, byte [edx + 9]
add cx, ax
shr cx, 1
movzx eax, cx
movzx ecx, byte [edx + 0xa]
imul ecx, ebx
mov dword [esp + 0x1c], eax
movzx eax, byte [edx + 0xb]
add cx, ax
movzx ebx, cx
mov dword [esp + 0x14], ebx
cmp ebp, 0xffff
jg 0x100191f2
movzx ecx, byte [edx + 0xc]
movzx eax, byte [edx + 0xd]
shl ecx, 8
add ecx, eax
shr ecx, 1
lea edx, [esi + ecx*2]
movzx ecx, byte [edx + edi]
movzx eax, byte [edx + edi + 1]
shl ecx, 8
add ecx, eax
cmp ebp, ecx
cmovge esi, edx
sub esi, 2
test bx, bx
je 0x10019085
mov bx, word [esp + 0x1c]
shr bx, 1
movzx eax, bx
lea edx, [esi + eax*2]
movzx ecx, byte [edx + edi]
movzx eax, byte [edx + edi + 1]
shl ecx, 8
add ecx, eax
mov eax, dword [esp + 0x14]
cmp ebp, ecx
cmovg esi, edx
add eax, 0xffff
mov dword [esp + 0x14], eax
test ax, ax
jne 0x10019057
sub esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
add esi, 2
mov ebx, dword [esp + 0x10]
shr esi, 1
movzx edx, si
movzx esi, ax
mov dword [esp + 0x14], edx
lea eax, [esi + edx]
lea eax, [ebx + eax*2]
movzx ecx, byte [eax + edi + 0x11]
movzx eax, byte [eax + edi + 0x10]
shl eax, 8
add ecx, eax
mov dword [esp + 0x20], ecx
cmp ebp, ecx
jl 0x100191f2
lea esi, [esi + esi*2]
lea eax, [esi + edx]
lea edx, [ebx + eax*2]
mov eax, 0x100
movzx ecx, byte [edx + edi + 0x10]
imul ecx, eax
movzx eax, byte [edx + edi + 0x11]
add cx, ax
movzx ecx, cx
test cx, cx
jne 0x1001911d
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
movzx ecx, dx
lea eax, [eax + ecx*2]
lea eax, [eax + 8]
lea edx, [ebx + eax*2]
mov eax, 0x100
movzx ecx, byte [edx + edi]
imul ecx, eax
movzx eax, byte [edx + edi + 1]
pop edi
pop esi
add cx, ax
add cx, bp
pop ebp
movzx eax, cx
pop ebx
add esp, 0x14
ret
sub esi, dword [esp + 0x20]
add ecx, ebx
add esi, dword [esp + 0x14]
add esi, ebp
lea ecx, [ecx + esi*2]
movzx eax, byte [ecx + edi + 0x10]
movzx ecx, byte [ecx + edi + 0x11]
pop edi
pop esi
shl eax, 8
pop ebp
add eax, ecx
pop ebx
add esp, 0x14
ret
cmp eax, 0xc
je 0x10019151
cmp eax, 0xd
jne 0x100191f2
movzx ebx, byte [edx + 0xc]
xor ecx, ecx
movzx eax, byte [edx + 0xd]
shl ebx, 8
add ebx, eax
mov dword [esp + 0x18], ecx
movzx eax, byte [edx + 0xe]
shl ebx, 8
add ebx, eax
movzx eax, byte [edx + 0xf]
shl ebx, 8
add ebx, eax
test ebx, ebx
jle 0x100191f2
nop word [eax + eax]
mov esi, ebx
sub esi, ecx
sar esi, 1
add esi, ecx
mov ecx, dword [esp + 0x10]
lea eax, [esi + esi*2]
lea eax, [ecx + eax*4]
movzx ecx, byte [edi + eax + 0x11]
add edi, eax
movzx eax, byte [edi + 0x10]
shl eax, 8
add eax, ecx
movzx ecx, byte [edi + 0x12]
shl eax, 8
add eax, ecx
movzx ecx, byte [edi + 0x13]
shl eax, 8
add eax, ecx
cmp ebp, eax
jae 0x100191c0
mov ecx, dword [esp + 0x18]
mov ebx, esi
jmp 0x100191ea
movzx edx, byte [edi + 0x14]
movzx ecx, byte [edi + 0x15]
shl edx, 8
add edx, ecx
movzx ecx, byte [edi + 0x16]
shl edx, 8
add edx, ecx
movzx ecx, byte [edi + 0x17]
shl edx, 8
add edx, ecx
cmp ebp, edx
jbe 0x100191fc
lea ecx, [esi + 1]
mov dword [esp + 0x18], ecx
mov edi, dword [esp + 0x14]
cmp ecx, ebx
jl 0x10019180
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
mov edx, dword [esp + 0x10]
add esi, 2
lea ecx, [esi + esi*2]
lea edx, [edx + ecx*4]
add edx, dword [esp + 0x14]
movzx ecx, byte [edx]
movzx esi, byte [edx + 1]
shl ecx, 8
add esi, ecx
movzx ecx, byte [edx + 2]
shl esi, 8
add esi, ecx
movzx ecx, byte [edx + 3]
shl esi, 8
add esi, ecx
cmp word [esp + 0x20], 0xc
jne 0x10019240
sub esi, eax
pop edi
lea eax, [esi + ebp]
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret