Function at 0x1001bcb0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], esi
test eax, eax
jle 0x1001c041
mov edi, dword [ebp + 8]
dec dword [ebp + 0x14]
cmp dword [edi + 0x10], 0
je 0x1001c041
cmp esi, 1
jl 0x1001c006
test esi, esi
je 0x1001c041
cmp esi, dword [edi + 8]
ja 0x1001bfd2
mov eax, dword [edi + 0xc]
cmp dword [eax + esi*4], 1
je 0x1001bfec
mov ecx, dword [eax + esi*4]
lea eax, [eax + esi*4]
lea edx, [ecx + 1]
mov dword [eax], edx
cmp ecx, 1
jg 0x1001c041
mov ecx, dword [edi + 4]
mov ebx, dword [ecx + 0x28]
mov dword [esp + 0x10], ecx
test ebx, ebx
jne 0x1001be1b
mov edi, dword [ecx + 0xa8]
lea eax, [esp + 0xc]
push eax
push 1
push esi
call fcn.1000a0e0
mov ecx, dword [esp + 0x1c]
mov edi, dword [ebp + 8]
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x1001be1b
mov edi, dword [esp + 0xc]
cmp dword [edi + 0x10], eax
jne 0x1001be36
mov dword [edi + 0x10], ecx
cmp esi, 0x7fffffff
ja 0x1001bdc6
mov eax, dword [0x1007cd4c]
mov ebx, dword [ecx + 0x80]
cdq
idiv ebx
inc eax
cmp esi, eax
je 0x1001bdc6
cmp byte [ecx + 0xe], 0
jne 0x1001bda7
cmp dword [ecx + 0x18], esi
jb 0x1001bda7
mov edx, dword [ecx + 0x3c]
cmp dword [edx], 0
je 0x1001bda7
mov eax, edi
call fcn.1000d4e0
mov ebx, eax
test ebx, ebx
je 0x1001be36
jmp 0x1001bde4
cmp esi, dword [ecx + 0x84]
jbe 0x1001bdb6
mov ebx, 0xd
jmp 0x1001bde4
mov eax, dword [edi]
push ebx
push 0
push eax
call fcn.10067e10
add esp, 0xc
jmp 0x1001be36
push 0x10079034
push 0x9be0
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.100058a0
add esp, 0x10
mov ebx, 0xb
test byte [edi + 0x14], 2
je 0x1001bdf1
mov eax, edi
call fcn.1000a080
mov eax, dword [edi + 0x18]
dec dword [eax + 0xc]
cmp dword [edi + 0xc], 1
jne 0x1001be04
mov dword [eax + 0x2c], 0
mov ecx, dword [eax + 0x28]
push 1
push edi
push ecx
call dword [0x1007cce8]
mov ecx, dword [esp + 0x1c]
mov edi, dword [ebp + 8]
add esp, 0xc
mov eax, ecx
call fcn.1000ee50
mov dword [esp + 0xc], 0
test ebx, ebx
jne 0x1001c02e
mov edi, dword [esp + 0xc]
cmp dword [ebp + 0xc], 0
mov ebx, dword [edi]
mov dword [esp + 0x10], ebx
je 0x1001bf4a
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 [ebp + 8]
shl ecx, 8
or ecx, edx
mov edx, dword [eax]
cmp byte [edx + 0x15], 0
mov dword [esp + 0x1c], ecx
je 0x1001be9a
mov ecx, dword [ebp + 0x18]
push ecx
mov edi, esi
push 0
mov bl, 2
mov esi, eax
call fcn.1001bc30
mov esi, dword [ebp + 0x10]
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
mov eax, dword [ebp + 8]
add esp, 8
mov edx, dword [eax]
mov eax, dword [edx + 0x28]
cdq
and edx, 3
add eax, edx
sar eax, 2
sub eax, 2
cmp ecx, eax
jle 0x1001becd
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
push esi
push str.freelist_leaf_count_too_big_on_page__d
push eax
push ecx
call fcn.1001bb60
add esp, 0x10
dec dword [ebp + 0x14]
jmp 0x1001bf92
test ecx, ecx
jle 0x1001bf45
lea esi, [ebx + 0xa]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], ecx
lea esp, [esp]
movzx edi, byte [esi - 2]
movzx edx, byte [esi - 1]
movzx eax, byte [esi]
movzx ecx, byte [esi + 1]
shl edi, 8
or edi, edx
shl edi, 8
or edi, eax
shl edi, 8
or edi, ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
cmp byte [edx + 0x15], 0
je 0x1001bf26
mov eax, dword [ebp + 0x18]
push eax
push 0
mov bl, 2
mov esi, ecx
call fcn.1001bc30
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov ecx, dword [ebp + 8]
add esp, 8
mov edx, dword [ebp + 0x18]
mov eax, edi
call fcn.1001bbd0
add esi, 4
dec dword [esp + 0x18]
mov dword [esp + 0x14], esi
jne 0x1001bee0
mov edi, dword [esp + 0xc]
mov ecx, dword [esp + 0x1c]
sub dword [ebp + 0x14], ecx
jmp 0x1001bf92
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
cmp byte [ecx + 0x15], 0
je 0x1001bf92
cmp dword [ebp + 0x14], 0
jle 0x1001bf92
movzx edi, byte [ebx]
movzx ecx, byte [ebx + 1]
mov edx, dword [ebp + 0x18]
shl edi, 8
or edi, ecx
movzx ecx, byte [ebx + 3]
push edx
movzx edx, byte [ebx + 2]
shl edi, 8
or edi, edx
push esi
shl edi, 8
or edi, ecx
mov bl, 4
mov esi, eax
call fcn.1001bc30
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
add esp, 8
movzx eax, byte [ebx]
movzx edx, byte [ebx + 1]
movzx ecx, byte [ebx + 2]
mov esi, dword [edi + 0x10]
shl eax, 8
or eax, edx
movzx edx, byte [ebx + 3]
shl eax, 8
or eax, ecx
shl eax, 8
or eax, edx
mov dword [ebp + 0x10], eax
mov eax, edi
call fcn.1000a260
mov eax, esi
call fcn.1000ee50
cmp dword [ebp + 0x14], 0
jle 0x1001c041
mov esi, dword [ebp + 0x10]
jmp 0x1001bcd2
mov eax, dword [ebp + 0x18]
push esi
push str.invalid_page_number__d
push eax
push edi
call fcn.1001bb60
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x18]
push esi
push str.2nd_reference_to_page__d
push ecx
push edi
call fcn.1001bb60
add esp, 0x10
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 + 0x14]
push edx
mov edx, dword [ebp + 0x18]
push eax
inc ecx
push ecx
push str._d_of__d_pages_missing_from_overflow_list_starting_at__d
push edx
push edi
call fcn.1001bb60
add esp, 0x18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x18]
push esi
push str.failed_to_get_page__d
push eax
push edi
call fcn.1001bb60
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret