Function at 0x1003acf0
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 0x1003af13
mov ebx, dword [ebp + 8]
dec dword [ebp + 0x10]
cmp dword [ebx + 0x10], 0
je 0x1003af13
cmp edi, 1
jl 0x1003aed9
mov esi, dword [ebp + 0x14]
push esi
mov eax, edi
mov edx, ebx
call fcn.1003ac00
add esp, 4
test eax, eax
jne 0x1003af13
mov ecx, dword [ebx + 4]
push eax
lea eax, [esp + 0x20]
push eax
mov eax, edi
call fcn.1002f140
add esp, 8
test eax, eax
jne 0x1003af01
mov ecx, dword [esp + 0x1c]
mov esi, dword [ecx + 4]
mov dword [esp + 0x14], esi
cmp dword [ebp + 0xc], eax
je 0x1003ae64
movzx ecx, byte [esi + 4]
movzx edx, byte [esi + 5]
movzx eax, byte [esi + 6]
shl ecx, 8
or ecx, edx
movzx edx, byte [esi + 7]
shl ecx, 8
or ecx, eax
mov eax, dword [ebx]
shl ecx, 8
or ecx, edx
cmp byte [eax + 0x11], 0
mov dword [esp + 0x18], ecx
je 0x1003adb7
mov ecx, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 8]
push edi
xor eax, eax
mov bl, 2
call fcn.1003ac60
mov ebx, dword [ebp + 8]
mov ecx, dword [esp + 0x20]
add esp, 8
mov edx, dword [ebx]
mov eax, dword [edx + 0x24]
cdq
and edx, 3
add eax, edx
sar eax, 2
sub eax, 2
cmp ecx, eax
jle 0x1003adeb
push edi
mov edi, dword [ebp + 0x14]
push str.freelist_leaf_count_too_big_on_page__d
mov esi, ebx
call fcn.1003ab90
mov esi, dword [esp + 0x1c]
add esp, 8
dec dword [ebp + 0x10]
jmp 0x1003ae8d
test ecx, ecx
jle 0x1003ae5f
lea edi, [esi + 0xa]
mov dword [esp + 0x10], ecx
jmp 0x1003ae00
movzx esi, byte [edi - 2]
movzx eax, byte [edi - 1]
movzx ecx, byte [edi]
movzx edx, byte [edi + 1]
shl esi, 8
or esi, eax
mov eax, dword [ebx]
shl esi, 8
or esi, ecx
shl esi, 8
or esi, edx
cmp byte [eax + 0x11], 0
je 0x1003ae3d
mov ecx, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 8]
push esi
xor eax, eax
mov bl, 2
call fcn.1003ac60
mov ebx, dword [ebp + 8]
add esp, 8
mov edx, dword [ebp + 0x14]
push edx
mov eax, esi
mov edx, ebx
call fcn.1003ac00
add esp, 4
add edi, 4
sub dword [esp + 0x10], 1
jne 0x1003ae00
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
sub dword [ebp + 0x10], ecx
jmp 0x1003ae8d
mov eax, dword [ebx]
cmp byte [eax + 0x11], 0
je 0x1003ae8d
cmp dword [ebp + 0x10], 0
jle 0x1003ae8d
mov ecx, dword [ebp + 0x14]
push ecx
mov ecx, esi
call fcn.10026c00
mov ecx, dword [ebp + 8]
push eax
mov eax, edi
mov bl, 4
call fcn.1003ac60
add esp, 8
movzx edi, byte [esi]
movzx edx, byte [esi + 1]
movzx eax, byte [esi + 2]
movzx ecx, byte [esi + 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.1002a7c0
mov edx, dword [esi + 0xc4]
cmp dword [edx + 0xc], 0
jne 0x1003aec8
call fcn.1002cb10
cmp dword [ebp + 0x10], 0
jg 0x1003ad11
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push eax
push ecx
inc edx
push edx
push str._d_of__d_pages_missing_from_overflow_list_starting_at__d
mov esi, ebx
call fcn.1003ab90
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edi, esi
push str.failed_to_get_page__d
mov esi, ebx
call fcn.1003ab90
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret