Function at 0x40f6a0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x20]
mov eax, dword [ebx + 1]
cmp eax, 0x20
push esi
mov dword [esp + 8], ecx
jge 0x40f759
mov edx, dword [esp + 0x1c]
cmp eax, edx
jle 0x40f6dd
lea ecx, [ebx + eax*2 + 5]
sub eax, edx
jmp 0x40f6d0
mov si, word [ecx - 2]
mov word [ecx], si
add ecx, 0xfffffffe
dec eax
jne 0x40f6d0
cmp byte [ebx], 0
mov eax, dword [ebx + 1]
je 0x40f6fd
cmp eax, edx
jle 0x40f71b
lea ecx, [ebx + eax*4 + 0x45]
sub eax, edx
nop
mov esi, dword [ecx - 4]
mov dword [ecx], esi
add ecx, 0xfffffffc
dec eax
jne 0x40f6f0
jmp 0x40f71b
inc eax
lea esi, [edx + 1]
cmp eax, esi
jle 0x40f71b
lea ecx, [ebx + eax*4 + 0xcd]
sub eax, esi
mov edi, edi
mov esi, dword [ecx - 4]
mov dword [ecx], esi
add ecx, 0xfffffffc
dec eax
jne 0x40f710
mov ax, word [esp + 0x14]
mov word [ebx + edx*2 + 5], ax
cmp byte [ebx], 0
je 0x40f741
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov dword [ebx + edx*4 + 0x45], eax
inc dword [ebx + 1]
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 0x18
mov ecx, dword [esp + 0x20]
mov dword [ebx + edx*4 + 0xd1], ecx
inc dword [ebx + 1]
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 0x18
call fcn.0040f3b0
mov edx, eax
mov al, byte [ebx]
mov byte [edx], al
cmp byte [ebx], 0
mov dword [esp + 0xc], edx
je 0x40f795
mov ecx, dword [ebx + 0xc5]
mov dword [edx + 0xc5], ecx
mov eax, dword [ebx + 0xc5]
test eax, eax
je 0x40f789
mov dword [eax + 0xc9], edx
mov dword [edx + 0xc9], ebx
mov dword [ebx + 0xc5], edx
mov ecx, dword [esp + 0x1c]
cmp ecx, 0x10
push ebp
push edi
jl 0x40f93c
mov esi, 0x10
xor edi, edi
cmp ecx, esi
jle 0x40f7e1
lea eax, [ebx + 0x25]
mov dword [esp + 0x2c], eax
lea eax, [ecx - 0x10]
lea ebp, [edx + 5]
mov edi, eax
lea esi, [eax + 0x10]
mov ecx, dword [esp + 0x2c]
mov cx, word [ecx]
mov word [ebp], cx
mov ecx, dword [esp + 0x2c]
add ecx, 2
add ebp, 2
dec eax
mov dword [esp + 0x2c], ecx
jne 0x40f7c1
mov ecx, dword [esp + 0x24]
mov ax, word [esp + 0x1c]
mov word [edx + edi*2 + 5], ax
inc edi
cmp esi, 0x20
jge 0x40f810
mov eax, 0x20
lea edi, [edx + edi*2 + 5]
lea ebp, [ebx + esi*2 + 5]
sub eax, esi
mov si, word [ebp]
mov word [edi], si
add ebp, 2
add edi, 2
dec eax
jne 0x40f800
xor ebp, ebp
cmp byte [ebx], 0
mov eax, 0x10
je 0x40f896
cmp ecx, eax
jle 0x40f84e
lea eax, [ebx + 0x85]
add ecx, 0xfffffff0
mov dword [esp + 0x24], eax
lea esi, [edx + 0x45]
mov ebp, ecx
lea eax, [ecx + 0x10]
mov edi, dword [esp + 0x24]
mov edi, dword [edi]
mov dword [esi], edi
mov edi, dword [esp + 0x24]
add edi, 4
add esi, 4
dec ecx
mov dword [esp + 0x24], edi
jne 0x40f835
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx]
mov dword [edx + ebp*4 + 0x45], ecx
inc ebp
cmp eax, 0x20
jge 0x40f926
mov ecx, 0x20
sub ecx, eax
lea edi, [edx + ebp*4 + 0x45]
lea esi, [ebx + eax*4 + 0x45]
add ebp, ecx
mov eax, dword [esi]
mov dword [edi], eax
add esi, 4
add edi, 4
dec ecx
jne 0x40f873
pop edi
mov dword [ebx + 1], 0x10
mov dword [edx + 1], ebp
pop ebp
pop esi
mov eax, edx
pop ebx
add esp, 8
ret 0x18
cmp ecx, 0x10
jle 0x40f8cc
lea eax, [ebx + 0x111]
add ecx, 0xfffffff0
mov dword [esp + 0x24], eax
lea esi, [edx + 0xcd]
mov ebp, ecx
lea eax, [ecx + 0x10]
mov edi, dword [esp + 0x24]
mov edi, dword [edi]
mov dword [esi], edi
mov edi, dword [esp + 0x24]
add edi, 4
add esi, 4
dec ecx
mov dword [esp + 0x24], edi
jne 0x40f8b3
mov ecx, dword [esp + 0x28]
mov dword [edx + ebp*4 + 0xcd], ecx
mov esi, dword [ebx + 1]
inc ebp
lea ecx, [eax + 1]
inc esi
cmp ecx, esi
jge 0x40f905
lea esi, [edx + ebp*4 + 0xcd]
lea eax, [ebx + eax*4 + 0xd1]
mov edi, dword [eax]
add eax, 4
mov dword [esi], edi
mov edi, dword [ebx + 1]
inc ecx
inc ebp
add esi, 4
inc edi
cmp ecx, edi
jl 0x40f8f1
mov eax, dword [esp + 0x30]
lea edi, [edx + 5]
mov dword [eax + 4], 2
mov cx, word [edi]
mov word [eax], cx
lea ecx, [ebp - 1]
test ecx, ecx
jle 0x40f926
lea esi, [edx + 7]
rep movsw word es:[edi], word [esi]
pop edi
mov dword [ebx + 1], 0x10
mov dword [edx + 1], ebp
pop ebp
pop esi
mov eax, edx
pop ebx
add esp, 8
ret 0x18
lea eax, [edx + 5]
lea ecx, [ebx + 0x23]
mov esi, eax
mov ebp, 0x11
lea esp, [esp]
mov di, word [ecx]
mov word [esi], di
add ecx, 2
add esi, 2
dec ebp
jne 0x40f950
cmp byte [ebx], 0
mov edi, dword [esp + 0x30]
mov ebp, 0x11
je 0x40f98a
add edx, 0x45
lea eax, [ebx + 0x81]
mov ecx, ebp
mov esi, dword [eax]
mov dword [edx], esi
add eax, 4
add edx, 4
dec ecx
jne 0x40f978
jmp 0x40fa47
lea esi, [edx + 0xcd]
lea ecx, [ebx + 0x10d]
mov dword [esp + 0x2c], ebp
lea ebx, [ebx]
mov edi, dword [ecx]
mov dword [esi], edi
mov edi, dword [esp + 0x2c]
add ecx, 4
add esi, 4
dec edi
mov dword [esp + 0x2c], edi
jne 0x40f9a0
mov edi, dword [esp + 0x30]
mov dword [edi + 4], 2
mov cx, word [eax]
mov word [edi], cx
lea ecx, [edx + 7]
mov dx, word [ecx]
mov word [eax], dx
mov dx, word [ecx + 2]
mov word [eax + 2], dx
mov dx, word [ecx + 4]
mov word [eax + 4], dx
mov dx, word [ecx + 6]
mov word [eax + 6], dx
mov dx, word [ecx + 8]
mov word [eax + 8], dx
mov dx, word [ecx + 0xa]
mov word [eax + 0xa], dx
mov dx, word [ecx + 0xc]
mov word [eax + 0xc], dx
mov dx, word [ecx + 0xe]
mov word [eax + 0xe], dx
mov dx, word [ecx + 0x10]
mov word [eax + 0x10], dx
mov dx, word [ecx + 0x12]
mov word [eax + 0x12], dx
mov dx, word [ecx + 0x14]
mov word [eax + 0x14], dx
mov dx, word [ecx + 0x16]
mov word [eax + 0x16], dx
mov dx, word [ecx + 0x18]
mov word [eax + 0x18], dx
mov dx, word [ecx + 0x1a]
mov word [eax + 0x1a], dx
mov dx, word [ecx + 0x1c]
mov cx, word [ecx + 0x1e]
mov word [eax + 0x1c], dx
mov word [eax + 0x1e], cx
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x24]
push edx
push ebx
push esi
mov dword [ebx + 1], 0xf
call fcn.0040e2d0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push edi
push ebx
push eax
push ecx
mov ecx, dword [esp + 0x20]
push edx
push esi
call fcn.0040f6a0
mov edx, dword [esp + 0x14]
pop edi
mov dword [edx + 1], ebp
pop ebp
pop esi
mov eax, edx
pop ebx
add esp, 8
ret 0x18