Function at 0x8f40a2
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov edx, dword [esp + 0x1c]
movzx eax, byte [edx - 4]
movzx ecx, byte [edx - 3]
push ebx
mov ebx, dword [esp + 0x30]
mov ebx, dword [ebx]
shl eax, 8
add ecx, eax
push ebp
push esi
mov esi, dword [esp + 0x2c]
movzx eax, byte [esi - 4]
push edi
movzx edi, byte [esi - 3]
shl eax, 8
add eax, edi
mov edi, dword [esp + 0x38]
mov edi, dword [edi]
shr ecx, 1
shr eax, 1
and ecx, 0x3ff
and eax, 0x3ff
cmp edi, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
jae 0x8f4385
cmp edi, eax
jae 0x8f4385
mov eax, dword [esp + 0x34]
test byte [eax + 0xc], 4
je 0x8f4114
mov ecx, dword [0x67fa34]
mov dword [esp + 0x1c], ecx
jmp 0x8f4126
mov eax, dword [eax + 0x38]
mov ecx, edi
shl ecx, 4
mov eax, dword [ecx + eax]
add eax, 0x14
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x18]
push ecx
push edi
push edx
call fcn.008f2d92
lea edx, [esp + 0x20]
push edx
push edi
push esi
mov ebp, eax
call fcn.008f2d92
add esp, 0x18
test ebx, ebx
mov dword [esp + 0x10], eax
jne 0x8f41f3
test edi, edi
mov eax, dword [esp + 0x2c]
jne 0x8f416d
mov dl, byte [eax - 6]
mov cl, 0x10
test cl, dl
jne 0x8f431f
test byte [esi - 6], cl
jne 0x8f4356
test byte [eax - 3], 1
jne 0x8f4192
lea ecx, [edi + edi + 8]
mov edx, ecx
mov ecx, eax
sub ecx, edx
movzx eax, byte [ecx]
movzx ecx, byte [ecx + 1]
shl eax, 8
add eax, ecx
test ah, 0x40
jne 0x8f4385
test byte [esi - 3], 1
jne 0x8f41b5
lea edx, [edi + edi + 8]
mov ecx, esi
sub ecx, edx
movzx eax, byte [ecx + 1]
movzx ecx, byte [ecx]
shl ecx, 8
add eax, ecx
test ah, 0x40
jne 0x8f4385
mov ecx, dword [esp + 0x18]
cmp ecx, 0xffffffff
je 0x8f41c5
cmp dword [esp + 0x14], 0xffffffff
jne 0x8f41f3
mov eax, dword [esp + 0x14]
cmp ecx, eax
je 0x8f4307
mov edx, dword [esp + 0x38]
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
mov dword [edx], edi
pop edi
pop esi
pop ebp
lea ecx, [ecx + ecx - 1]
mov eax, ecx
mov ecx, dword [esp + 0x30]
mov dword [ecx], ebx
pop ebx
add esp, 0x18
ret
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx]
cmp ecx, 9
jae 0x8f42e9
cmp ecx, 5
jne 0x8f421f
mov eax, dword [edx + 4]
test ah, 4
jne 0x8f421f
movzx eax, byte [edx + 6]
cmp eax, dword [0x67fa20]
jne 0x8f42e9
mov eax, dword [esp + 0x10]
add ebp, ebx
add eax, ebx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
lea ecx, [ecx]
cmp dword [esp + 0x14], ebx
ja 0x8f4269
cmp eax, ebx
jbe 0x8f4307
cmp ecx, 2
je 0x8f4262
cmp ecx, 1
je 0x8f4262
cmp ecx, 4
je 0x8f4262
cmp ecx, 3
je 0x8f4262
cmp ecx, 0xd
je 0x8f4262
cmp ecx, 0xc
jne 0x8f4356
mov esi, 0x20
jmp 0x8f4270
mov edx, dword [esp + 0x10]
movzx esi, byte [edx]
cmp eax, ebx
ja 0x8f429d
cmp ecx, 2
je 0x8f4296
cmp ecx, 1
je 0x8f4296
cmp ecx, 4
je 0x8f4296
cmp ecx, 3
je 0x8f4296
cmp ecx, 0xd
je 0x8f4296
cmp ecx, 0xc
jne 0x8f433f
mov edx, 0x20
jmp 0x8f42a1
movzx edx, byte [ebp]
cmp edx, esi
je 0x8f42d5
cmp ecx, 2
jbe 0x8f42b9
cmp ecx, 5
jne 0x8f42c7
mov eax, dword [esp + 0x1c]
test byte [eax + 5], 4
jne 0x8f42c7
movzx edx, byte [edx + 0x67f8a8]
movzx esi, byte [esi + 0x67f8a8]
cmp edx, esi
jb 0x8f433f
ja 0x8f4356
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x30]
inc ebx
inc ebp
inc edx
mov dword [esp + 0x10], edx
jmp 0x8f4232
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push ecx
push eax
mov eax, dword [esp + 0x18]
mov ecx, ebp
mov ebx, edx
call fcn.008f3a12
add esp, 8
test eax, eax
jne 0x8f436f
mov eax, dword [esp + 0x20]
inc edi
xor ebx, ebx
cmp edi, eax
jae 0x8f4385
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
jmp 0x8f40f6
mov al, byte [esi - 6]
mov edx, dword [esp + 0x38]
and al, cl
mov ecx, dword [esp + 0x3c]
neg al
mov dword [edx], edi
pop edi
pop esi
pop ebp
mov dword [ecx], ebx
pop ebx
sbb eax, eax
neg eax
dec eax
add esp, 0x18
ret
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [edx], edi
pop edi
pop esi
pop ebp
mov dword [ecx], ebx
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [edx], edi
pop edi
pop esi
pop ebp
mov dword [ecx], ebx
mov eax, 1
pop ebx
add esp, 0x18
ret
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [edx], edi
pop edi
pop esi
xor ebx, ebx
pop ebp
mov dword [ecx], ebx
pop ebx
add esp, 0x18
ret
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [edx], edi
pop edi
pop esi
pop ebp
mov dword [ecx], ebx
xor eax, eax
pop ebx
add esp, 0x18
ret