Function at 0x48a4d0
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 + 0xc]
mov esi, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edi
test eax, eax
jle 0x48a6e4
dec dword [ebp + 0xc]
cmp dword [esi + 0x10], 0
je 0x48a6e4
cmp edi, 1
jl 0x48a6ad
mov ecx, dword [ebp + 0x10]
mov eax, edi
mov edx, esi
call fcn.0048a3e0
test eax, eax
jne 0x48a6e4
push eax
lea eax, [esp + 0x20]
push eax
mov eax, dword [esi + 4]
mov ebx, edi
call fcn.0047eb10
add esp, 8
test eax, eax
jne 0x48a6d3
mov ecx, dword [esp + 0x1c]
mov ebx, dword [ecx]
mov dword [esp + 0x14], ebx
cmp dword [ebp + 8], eax
je 0x48a635
movzx ecx, byte [ebx + 4]
movzx edx, byte [ebx + 5]
movzx eax, byte [ebx + 6]
shl ecx, 8
or ecx, edx
movzx edx, byte [ebx + 7]
shl ecx, 8
or ecx, eax
mov eax, dword [esi]
shl ecx, 8
or ecx, edx
cmp byte [eax + 0x15], 0
mov dword [esp + 0x18], ecx
je 0x48a58c
mov ecx, dword [ebp + 0x10]
push ecx
push 0
mov al, 2
mov ecx, esi
call fcn.0048a440
mov ecx, dword [esp + 0x20]
add esp, 8
mov edx, dword [esi]
mov eax, dword [edx + 0x28]
cdq
and edx, 3
add eax, edx
sar eax, 2
sub eax, 2
cmp ecx, eax
jle 0x48a5be
mov ebx, dword [ebp + 0x10]
push edi
push str.freelist_leaf_count_too_big_on_page__d
call fcn.0048a370
mov ebx, dword [esp + 0x1c]
add esp, 8
dec dword [ebp + 0xc]
jmp 0x48a65d
test ecx, ecx
jle 0x48a630
lea edi, [ebx + 0xa]
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], ecx
lea ecx, [ecx]
movzx ebx, byte [edi - 2]
movzx eax, byte [edi - 1]
movzx ecx, byte [edi]
movzx edx, byte [edi + 1]
shl ebx, 8
or ebx, eax
mov eax, dword [esi]
shl ebx, 8
or ebx, ecx
shl ebx, 8
or ebx, edx
cmp byte [eax + 0x15], 0
je 0x48a60e
mov ecx, dword [ebp + 0x10]
push ecx
push 0
mov al, 2
mov edi, ebx
mov ecx, esi
call fcn.0048a440
mov edi, dword [esp + 0x14]
add esp, 8
mov ecx, dword [ebp + 0x10]
mov eax, ebx
mov edx, esi
call fcn.0048a3e0
add edi, 4
sub dword [esp + 0x10], 1
mov dword [esp + 0xc], edi
jne 0x48a5d0
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
sub dword [ebp + 0xc], ecx
jmp 0x48a65d
mov edx, dword [esi]
cmp byte [edx + 0x15], 0
je 0x48a65d
cmp dword [ebp + 0xc], 0
jle 0x48a65d
mov eax, dword [ebp + 0x10]
push eax
push edi
mov ecx, ebx
call fcn.00477a00
mov edi, eax
mov al, 4
mov ecx, esi
call fcn.0048a440
add esp, 8
movzx edi, byte [ebx]
movzx ecx, byte [ebx + 1]
movzx edx, byte [ebx + 2]
movzx eax, byte [ebx + 3]
shl edi, 8
or edi, ecx
shl edi, 8
or edi, edx
shl edi, 8
or edi, eax
mov eax, dword [esp + 0x1c]
mov ebx, dword [eax + 0x10]
call fcn.0047a750
mov ecx, dword [ebx + 0xa8]
cmp dword [ecx + 0xc], 0
jne 0x48a69c
push ebx
call fcn.0047c8d0
add esp, 4
cmp dword [ebp + 0xc], 0
jg 0x48a4f3
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 + 0xc]
mov ebx, dword [ebp + 0x10]
push edx
push eax
inc ecx
push ecx
push str._d_of__d_pages_missing_from_overflow_list_starting_at__d
call fcn.0048a370
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0x10]
push edi
push str.failed_to_get_page__d
call fcn.0048a370
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret