Function at 0x1002f850
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
mov eax, dword [0x100a5428]
xor eax, esp
mov dword [esp + 0xb0], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push str.Page__d:
lea ecx, [esp + 0x58]
push ecx
push 0x64
mov dword [esp + 0x20], esi
mov dword [esp + 0x38], eax
call fcn.1001cb90
mov ebx, dword [esi]
movzx edx, word [ebx + 0x16]
add esp, 0x10
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], edx
test edi, edi
je 0x1002f991
mov edx, dword [esp + 0x28]
mov eax, edi
mov ecx, esi
call fcn.1002f4f0
test eax, eax
jne 0x1002f991
push eax
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ebx]
push edi
call fcn.10024b00
add esp, 0xc
test eax, eax
jne 0x1002f96a
mov eax, dword [esp + 0x28]
cmp dword [eax + 0x10], 0
je 0x1002f8ea
mov esi, dword [eax + 4]
mov dword [esp + 0xc], esi
jmp 0x1002f8f6
mov dword [esp + 0xc], 0
mov esi, dword [esp + 0xc]
mov ecx, dword [eax]
cmp edi, 1
setne dl
dec dl
mov dword [esi + 0x48], edi
and dl, 0x64
mov edi, esi
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], eax
mov dword [esi + 0x3c], ebx
mov byte [esi + 5], dl
call fcn.10026da0
xor edi, edi
cmp eax, edi
je 0x1002f9a8
mov edx, dword [esp + 0x10]
push eax
push str.sqlite3BtreeInitPage___returns_error_code__d
lea ecx, [esp + 0x58]
push ecx
push edx
call fcn.1002f470
mov esi, dword [esi + 0x44]
add esp, 0x10
cmp esi, edi
je 0x1002f953
mov edi, dword [esi + 0x10]
mov eax, esi
call fcn.100207d0
mov esi, edi
call fcn.10024a30
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.10075b7f
mov esp, ebp
pop ebp
ret
cmp eax, 7
je 0x1002f976
cmp eax, 0xc0a
jne 0x1002f97d
mov dword [esi + 0x18], 1
push eax
push str.unable_to_get_the_page._error_code_d
lea eax, [esp + 0x58]
push eax
push esi
call fcn.1002f470
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.10075b7f
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], edi
cmp ax, word [esi + 0x10]
jae 0x1002fb6d
mov ecx, dword [esp + 0x10]
cmp dword [ecx + 0x10], 0
je 0x1002fb6d
mov edi, dword [esp + 0x24]
mov edx, dword [ebp + 0xc]
push edi
push edx
push str.On_tree_page__d_cell__d:
lea eax, [esp + 0x5c]
push eax
push 0x64
call fcn.1001cb90
movzx ecx, word [esi + 0xc]
mov eax, dword [esi + 0x40]
add ecx, eax
movzx edx, byte [ecx + edi*2 + 1]
lea ecx, [ecx + edi*2]
movzx edi, byte [ecx]
movzx ecx, word [esi + 0x12]
shl edi, 8
or edi, edx
and edi, ecx
add edi, eax
add esp, 0x14
push edi
push esi
lea ebx, [esp + 0x38]
mov dword [esp + 0x24], edi
call fcn.10026690
mov eax, dword [esp + 0x48]
add esp, 8
cmp byte [esi + 2], 0
jne 0x1002fa28
add eax, dword [esp + 0x38]
movzx edx, word [esp + 0x4a]
cmp eax, edx
jbe 0x1002faca
mov ebx, dword [esp + 0x14]
movzx ebx, word [ebx + 0x16]
movzx ecx, word [esp + 0x4c]
add ebx, dword [esi + 0x40]
add ecx, edi
cmp ecx, ebx
ja 0x1002faca
sub eax, edx
mov edx, dword [esp + 0x20]
lea eax, [eax + edx - 5]
lea ebx, [edx - 4]
xor edx, edx
div ebx
movzx edx, byte [ecx + 1]
mov dword [esp + 0x2c], eax
movzx eax, byte [ecx]
shl eax, 8
or eax, edx
movzx edx, byte [ecx + 2]
movzx ecx, byte [ecx + 3]
shl eax, 8
or eax, edx
mov edx, dword [esp + 0x14]
shl eax, 8
or eax, ecx
cmp byte [edx + 0x12], 0
mov dword [esp + 0x18], eax
je 0x1002fab1
mov edx, dword [ebp + 0xc]
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x50]
push ecx
push edx
mov bl, 3
mov edi, eax
call fcn.1002f550
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
add esp, 8
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push 0
push ecx
call fcn.1002f5d0
add esp, 0x10
cmp byte [esi + 3], 0
jne 0x1002fb58
movzx eax, byte [edi]
movzx edx, byte [edi + 1]
movzx ecx, byte [edi + 2]
shl eax, 8
or eax, edx
movzx edx, byte [edi + 3]
shl eax, 8
or eax, ecx
mov ecx, dword [esp + 0x14]
shl eax, 8
or eax, edx
cmp byte [ecx + 0x12], 0
mov dword [esp + 0x2c], eax
je 0x1002fb1f
mov ecx, dword [ebp + 0xc]
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x50]
push edx
push ecx
mov bl, 5
mov edi, eax
call fcn.1002f550
mov esi, dword [esp + 0x14]
add esp, 8
mov eax, edi
mov ebx, dword [esp + 0x10]
lea edx, [esp + 0x50]
push edx
push eax
push ebx
call fcn.1002f850
add esp, 0xc
cmp dword [esp + 0x24], 0
mov edi, eax
jle 0x1002fb54
cmp edi, dword [esp + 0x28]
je 0x1002fb54
push str.Child_page_depth_differs
lea eax, [esp + 0x54]
push eax
push ebx
call fcn.1002f470
add esp, 0xc
mov dword [esp + 0x28], edi
mov eax, dword [esp + 0x24]
movzx ecx, word [esi + 0x10]
inc eax
mov dword [esp + 0x24], eax
cmp eax, ecx
jl 0x1002f9bc
cmp byte [esi + 3], 0
jne 0x1002fbec
movzx edx, byte [esi + 5]
mov eax, dword [esi + 0x40]
movzx edi, byte [edx + eax + 8]
movzx ecx, byte [edx + eax + 9]
lea eax, [edx + eax + 8]
movzx edx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl edi, 8
or edi, ecx
mov ecx, dword [ebp + 0xc]
shl edi, 8
push ecx
or edi, edx
push str.On_page__d_at_right_child:
lea edx, [esp + 0x58]
push edx
shl edi, 8
push 0x64
or edi, eax
call fcn.1001cb90
mov eax, dword [esp + 0x24]
add esp, 0x10
cmp byte [eax + 0x12], 0
je 0x1002fbd9
mov ecx, dword [ebp + 0xc]
mov esi, dword [esp + 0x10]
push 0
push ecx
mov bl, 5
call fcn.1002f550
mov esi, dword [esp + 0x14]
add esp, 8
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x50]
push edx
push edi
push eax
call fcn.1002f850
add esp, 0xc
mov ecx, dword [esp + 0x14]
movzx ebx, byte [esi + 5]
movzx edx, word [ecx + 0x14]
mov eax, dword [0x100a7fc4]
mov edi, dword [esi + 0x40]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x2c], edx
test eax, eax
je 0x1002fc1a
push eax
call dword [0x100a6690]
add esp, 4
mov eax, dword [esp + 0x2c]
call fcn.10020be0
mov dword [esp + 0xc], eax
mov eax, dword [0x100a7fc4]
test eax, eax
je 0x1002fc3a
push eax
call dword [0x100a6698]
add esp, 4
cmp dword [esp + 0xc], 0
jne 0x1002fc51
mov eax, dword [esp + 0x10]
mov dword [eax + 0x18], 1
jmp 0x1002ff80
movzx ecx, byte [ebx + edi + 5]
movzx edx, byte [ebx + edi + 6]
shl cx, 8
or cx, dx
movzx edi, cx
cmp edi, dword [esp + 0x20]
jle 0x1002fc8a
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x10]
push 0
push eax
push str.Corruption_detected_in_header_on_page__d
push 0
push ecx
call fcn.1002f470
add esp, 0x14
jmp 0x1002fe8c
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0xc]
sub edx, edi
push edx
lea eax, [ebx + edi]
push 0
push eax
call fcn.100775d0
add esp, 0xc
push edi
push 1
push ebx
call fcn.100775d0
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
movzx ebx, byte [ecx + edx + 3]
mov eax, ecx
mov ecx, edx
movzx edx, byte [eax + ecx + 4]
movzx ecx, byte [esi + 3]
shl ebx, 8
or ebx, edx
mov edx, 3
sub edx, ecx
mov ecx, dword [esp + 0x18]
add esp, 0xc
lea eax, [eax + edx*4]
mov dword [esp + 0x24], 0
test ebx, ebx
jle 0x1002fd8f
add eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
movzx edx, byte [eax]
movzx edi, byte [eax + 1]
shl edx, 8
or edi, edx
mov eax, 0x400
cmp edi, dword [esp + 0x20]
jg 0x1002fd24
mov eax, dword [esp + 0x18]
lea ecx, [edi + eax]
push ecx
mov eax, esi
call fcn.100267d0
mov ecx, dword [esp + 0x10]
add esp, 4
movzx eax, ax
movzx edx, ax
lea eax, [edx + edi - 1]
cmp eax, dword [esp + 0x20]
jge 0x1002fd4a
test edi, edi
js 0x1002fd4a
cmp eax, edi
jl 0x1002fd6d
lea esp, [esp]
inc byte [ecx + eax]
dec eax
cmp eax, edi
jge 0x1002fd40
jmp 0x1002fd6d
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
push 0
push eax
push ecx
push str.Corruption_detected_in_cell__d_on_page__d
push 0
push edx
call fcn.1002f470
mov ecx, dword [esp + 0x24]
add esp, 0x18
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
inc edi
add eax, 2
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], eax
cmp edi, ebx
jl 0x1002fcf4
jmp 0x1002fd93
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
movzx edi, byte [eax + edx + 1]
movzx eax, byte [eax + edx + 2]
shl edi, 8
or edi, eax
mov dword [esp + 0x14], 0
jle 0x1002fe24
cmp edi, dword [esp + 0x20]
jge 0x1002fe24
cmp dword [esp + 0x14], 0x2710
jge 0x1002fe24
movzx eax, byte [edx + edi + 2]
movzx ebx, byte [edx + edi + 3]
shl eax, 8
or eax, ebx
lea eax, [eax + edi - 1]
cmp eax, dword [esp + 0x20]
jge 0x1002fdeb
test edi, edi
js 0x1002fdeb
cmp eax, edi
jl 0x1002fe0e
inc byte [ecx + eax]
dec eax
cmp eax, edi
jge 0x1002fde1
jmp 0x1002fe0e
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x10]
push 0
push ecx
push edi
push str.Corruption_detected_in_cell__d_on_page__d
push 0
push edx
call fcn.1002f470
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x30]
add esp, 0x18
movzx eax, byte [edx + edi]
movzx edi, byte [edx + edi + 1]
inc dword [esp + 0x14]
shl eax, 8
or edi, eax
test edi, edi
jg 0x1002fdb0
xor eax, eax
xor edi, edi
cmp dword [esp + 0x20], eax
jle 0x1002fe65
mov edi, edi
mov bl, byte [ecx + eax]
test bl, bl
jne 0x1002fe3a
inc edi
jmp 0x1002fe3f
cmp bl, 1
jg 0x1002fe48
inc eax
cmp eax, dword [esp + 0x20]
jl 0x1002fe30
jmp 0x1002fe65
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x10]
push ecx
push eax
push str.Multiple_uses_for_byte__d_of_page__d
push 0
push edx
call fcn.1002f470
mov edx, dword [esp + 0x2c]
add esp, 0x14
mov eax, dword [esp + 0x1c]
movzx eax, byte [eax + edx + 7]
cmp edi, eax
je 0x1002fe8c
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x10]
push ecx
push eax
push edi
push str.Fragmented_space_is__d_byte_reported_as__d_on_page__d
push 0
push edx
call fcn.1002f470
add esp, 0x18
mov eax, dword [0x100a7fc4]
mov edi, dword [esp + 0xc]
test eax, eax
je 0x1002fea3
push eax
call dword [0x100a6690]
add esp, 4
cmp edi, dword [0x100a7fe0]
jb 0x1002fedd
cmp edi, dword [0x100a7fe4]
jae 0x1002fedd
mov eax, dword [0x100a810c]
dec eax
mov dword [0x100a810c], eax
cmp eax, dword [0x100a8130]
jle 0x1002fecb
mov dword [0x100a8130], eax
mov eax, dword [0x100a7fe8]
mov dword [edi], eax
mov dword [0x100a7fe8], edi
jmp 0x1002ff6d
push edi
call dword [0x100a666c]
mov ecx, dword [0x100a8110]
sub ecx, eax
add esp, 4
mov dword [0x100a8110], ecx
cmp ecx, dword [0x100a8134]
jle 0x1002ff03
mov dword [0x100a8134], ecx
cmp dword [str.KERNEL32.dll], 0
je 0x1002ff63
mov eax, dword [0x100a6870]
test eax, eax
je 0x1002ff1f
push eax
call dword [0x100a6690]
add esp, 4
push edi
call dword [0x100a666c]
mov ecx, dword [0x100a8108]
neg eax
add ecx, eax
add esp, 4
mov dword [0x100a8108], ecx
cmp ecx, dword [0x100a812c]
jle 0x1002ff47
mov dword [0x100a812c], ecx
push edi
call dword [0x100a6664]
mov eax, dword [0x100a6870]
add esp, 4
test eax, eax
je 0x1002ff6d
push eax
call dword [0x100a6698]
jmp 0x1002ff6a
push edi
call dword [0x100a6664]
add esp, 4
mov eax, dword [0x100a7fc4]
test eax, eax
je 0x1002ff80
push eax
call dword [0x100a6698]
add esp, 4
mov eax, dword [esi + 0x44]
test eax, eax
je 0x10030176
mov ebx, dword [eax + 0x10]
or edx, 0xffffffff
add word [eax + 0x16], dx
jne 0x1003004a
mov ecx, dword [eax + 0x18]
add dword [ecx + 0xc], edx
test byte [eax + 0x14], 2
jne 0x1002ffd3
mov ecx, dword [eax + 0x18]
cmp dword [ecx + 0x1c], 0
je 0x1003004a
cmp dword [eax + 0xc], 1
jne 0x1002ffc1
mov dword [ecx + 0x2c], 0
mov ecx, dword [ecx + 0x28]
push 0
push eax
push ecx
call dword [0x100a66c0]
add esp, 0xc
jmp 0x1003004a
mov edx, dword [eax + 0x18]
cmp dword [edx + 8], eax
jne 0x1002fff2
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x1002ffef
test byte [ecx + 0x14], 4
je 0x1002ffef
mov ecx, dword [ecx + 0x20]
test ecx, ecx
jne 0x1002ffe2
mov dword [edx + 8], ecx
mov ecx, dword [eax + 0x1c]
xor esi, esi
cmp ecx, esi
je 0x10030003
mov edi, dword [eax + 0x20]
mov dword [ecx + 0x20], edi
jmp 0x10030009
mov ecx, dword [eax + 0x20]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 0x20]
cmp ecx, esi
je 0x10030018
mov edx, dword [eax + 0x1c]
mov dword [ecx + 0x1c], edx
jmp 0x1003001d
mov ecx, dword [eax + 0x1c]
mov dword [edx], ecx
mov ecx, dword [eax + 0x18]
mov dword [eax + 0x1c], esi
mov dword [eax + 0x20], esi
mov edx, dword [ecx]
mov dword [eax + 0x1c], edx
cmp edx, esi
je 0x10030032
mov dword [edx + 0x20], eax
mov dword [ecx], eax
cmp dword [ecx + 4], esi
jne 0x1003003c
mov dword [ecx + 4], eax
cmp dword [ecx + 8], esi
jne 0x1003004a
test byte [eax + 0x14], 4
jne 0x1003004a
mov dword [ecx + 8], eax
mov edx, dword [ebx + 0xa8]
cmp dword [edx + 0xc], 0
jne 0x10030176
cmp byte [ebx + 4], 0
je 0x10030076
cmp dword [ebx + 0x4c], 0
jl 0x10030176
jg 0x10030076
cmp dword [ebx + 0x48], 0
jbe 0x10030176
cmp dword [ebx + 0x24], 0
jne 0x1003009f
cmp byte [ebx + 0xe], 2
jb 0x1003009f
mov eax, dword [0x100a8150]
test eax, eax
je 0x1003008d
call eax
mov eax, ebx
call fcn.10025570
mov eax, dword [0x100a8154]
test eax, eax
je 0x1003009f
call eax
cmp byte [ebx + 4], 0
jne 0x10030176
mov esi, dword [ebx + 0x3c]
mov eax, dword [esi]
test eax, eax
je 0x100300c1
mov eax, dword [eax + 4]
push esi
call eax
add esp, 4
mov dword [esi], 0
mov eax, dword [ebx + 0x34]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x100300fe
cmp dword [eax + 8], 0
je 0x100300f1
mov esi, eax
add esi, 0xc
mov edi, 0x7d
lea esp, [esp]
mov ecx, dword [esi]
push ecx
call fcn.10020340
add esp, 4
add esi, 4
dec edi
jne 0x100300e0
mov edx, dword [esp + 0x1c]
push edx
call fcn.1001b360
add esp, 4
xor esi, esi
push ebx
mov dword [ebx + 0x34], esi
call fcn.10022800
mov eax, dword [ebx + 0x38]
mov byte [ebx + 0x15], 0
mov ecx, dword [eax]
add esp, 4
cmp ecx, esi
jne 0x1003011d
xor eax, eax
jmp 0x1003012e
push esi
push eax
mov eax, dword [ecx + 0x20]
call eax
add esp, 8
cmp eax, esi
je 0x1003012e
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], esi
je 0x1003016e
cmp eax, esi
jne 0x1003013a
mov dword [ebx + 0x24], esi
cmp dword [ebx + 0x24], esi
jne 0x1003016e
mov eax, dword [ebx + 0xac]
cmp eax, esi
je 0x1003015a
mov ecx, 1
mov edi, edi
mov dword [eax + 0x10], ecx
mov eax, dword [eax + 0x2c]
cmp eax, esi
jne 0x10030150
mov edi, dword [ebx + 0xa8]
push 0
call fcn.10020990
add esp, 4
mov byte [ebx + 0x15], 0
mov byte [ebx + 0x12], 0
mov byte [ebx + 0xe], 0
mov ecx, dword [esp + 0xbc]
mov eax, dword [esp + 0x28]
pop edi
pop esi
pop ebx
xor ecx, esp
inc eax
call fcn.10075b7f
mov esp, ebp
pop ebp
ret