Function at 0x41b660
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edi
test eax, eax
jle 0x41b8a6
mov esi, dword [ebp + 8]
dec dword [ebp + 0x10]
cmp dword [esi + 0x10], 0
je 0x41b8a6
cmp edi, 1
jl 0x41b86f
test edi, edi
je 0x41b8a6
cmp edi, dword [esi + 8]
ja 0x41b83f
mov eax, dword [esi + 0xc]
cmp dword [eax + edi*4], 1
je 0x41b857
mov ecx, eax
lea eax, [ecx + edi*4]
mov ecx, dword [eax]
cmp ecx, 1
lea edx, [ecx + 1]
mov dword [eax], edx
jg 0x41b8a6
mov ecx, dword [esi + 4]
lea eax, [esp + 0x1c]
push 0
push eax
mov eax, edi
call fcn.004108e0
add esp, 8
test eax, eax
jne 0x41b895
mov ecx, dword [esp + 0x1c]
mov ebx, dword [ecx]
mov dword [esp + 0x14], ebx
cmp dword [ebp + 0xc], eax
je 0x41b7d7
movzx eax, byte [ebx + 4]
movzx edx, byte [ebx + 5]
movzx ecx, byte [ebx + 6]
shl eax, 8
or eax, edx
movzx edx, byte [ebx + 7]
shl eax, 8
or eax, ecx
mov ecx, dword [esi]
shl eax, 8
or eax, edx
cmp byte [ecx + 0x14], 0
mov dword [esp + 0x18], eax
je 0x41b73d
mov edx, dword [ebp + 0x14]
push edx
push 0
mov al, 2
mov ecx, esi
call fcn.0041b5d0
mov eax, dword [esp + 0x20]
add esp, 8
mov ecx, dword [esi]
movzx edx, word [ecx + 0x18]
shr edx, 2
sub edx, 2
cmp eax, edx
jle 0x41b76a
mov ebx, dword [ebp + 0x14]
push edi
push str.freelist_leaf_count_too_big_on_page__d
call fcn.0041b500
mov ebx, dword [esp + 0x1c]
add esp, 8
dec dword [ebp + 0x10]
jmp 0x41b7ff
test eax, eax
jle 0x41b7d2
add ebx, 0xa
mov dword [esp + 0x10], eax
movzx esi, byte [ebx - 2]
movzx eax, byte [ebx - 1]
movzx ecx, byte [ebx]
movzx edx, byte [ebx + 1]
shl esi, 8
or esi, eax
mov eax, dword [ebp + 8]
shl esi, 8
or esi, ecx
mov ecx, dword [eax]
shl esi, 8
or esi, edx
cmp byte [ecx + 0x14], 0
je 0x41b7b3
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
push edx
push 0
mov al, 2
mov edi, esi
call fcn.0041b5d0
add esp, 8
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
mov eax, esi
call fcn.0041b570
add ebx, 4
sub dword [esp + 0x10], 1
jne 0x41b775
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
sub dword [ebp + 0x10], eax
jmp 0x41b7ff
mov eax, dword [esi]
cmp byte [eax + 0x14], 0
je 0x41b7ff
cmp dword [ebp + 0x10], 0
jle 0x41b7ff
mov ecx, dword [ebp + 0x14]
push ecx
push edi
mov ecx, ebx
call fcn.00409670
mov edi, eax
mov al, 4
mov ecx, esi
call fcn.0041b5d0
add esp, 8
movzx edi, byte [ebx]
movzx edx, byte [ebx + 1]
movzx eax, byte [ebx + 2]
movzx ecx, byte [ebx + 3]
shl edi, 8
or edi, edx
shl edi, 8
or edi, eax
mov eax, dword [esp + 0x1c]
mov esi, dword [eax + 0x10]
shl edi, 8
or edi, ecx
call fcn.0040c3e0
call fcn.00410880
cmp dword [ebp + 0x10], 0
jg 0x41b681
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0x14]
push edi
push str.invalid_page_number__d
call fcn.0041b500
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0x14]
push edi
push str.2nd_reference_to_page__d
call fcn.0041b500
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
push edx
push eax
inc ecx
push ecx
push str._d_of__d_pages_missing_from_overflow_list_starting_at__d
call fcn.0041b500
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0x14]
push edi
push str.failed_to_get_page__d
call fcn.0041b500
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret