Function at 0x10040220
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x70
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 0x10], edx
push esi
xor esi, esi
mov dword [esp + 0x54], ebp
push edi
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x48]
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x64], eax
lea eax, [ebp + 0x18]
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x34], 1
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], eax
cmp dword [ecx + 0x128], esi
je 0x10040280
inc dword [ebp + 0x14]
mov dword [eax], 9
mov dword [ebp + 0x10], esi
jmp 0x10040284
mov dword [esp + 0x2c], eax
cmp dword [ecx + 0x174], esi
je 0x100402cd
inc dword [ebp + 0x1c]
xor edx, edx
mov eax, dword [ebp + 0x1c]
div dword [ecx + 0x17c]
test edx, edx
jne 0x100402c9
push dword [ecx + 0x178]
mov eax, dword [ecx + 0x174]
call eax
mov edx, dword [esp + 0x1c]
add esp, 4
test eax, eax
je 0x100402cd
mov eax, dword [esp + 0x2c]
inc dword [ebp + 0x14]
mov dword [ebp + 0x10], esi
mov dword [eax], 9
jmp 0x100402cd
mov edx, dword [esp + 0x18]
cmp dword [ebp + 0x10], esi
je 0x1004036a
mov ebx, dword [ebp]
mov dword [esp + 0x24], ebx
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x20], eax
test edx, edx
je 0x10040963
cmp edx, dword [ebp + 0xc]
ja 0x10040954
mov ecx, dword [esp + 0x18]
mov edi, edx
shr edi, 3
and ecx, 7
add edi, dword [ebp + 8]
mov eax, 1
shl eax, cl
movzx edx, byte [edi]
test edx, eax
je 0x1004032e
push dword [esp + 0x18]
push str.2nd_reference_to_page__d
push ebp
call fcn.1003fe50
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret
bts edx, ecx
mov ecx, dword [esp + 0x18]
mov byte [edi], dl
lea edx, [esp + 0x48]
push 0
mov dword [ebp + 0x20], str.Page__u:
mov dword [ebp + 0x24], ecx
mov eax, dword [ebx]
push edx
push ecx
push eax
mov eax, dword [eax + 0xdc]
call eax
add esp, 0x10
test eax, eax
je 0x1004038c
push eax
push str.unable_to_get_the_page._error_code_d
push ebp
call fcn.1003fe50
add esp, 0xc
mov eax, dword [esp + 0x5c]
mov dword [ebp + 0x20], eax
mov eax, dword [esp + 0x60]
mov dword [ebp + 0x24], eax
mov eax, dword [esp + 0x64]
mov dword [ebp + 0x28], eax
mov eax, dword [esp + 0x30]
inc eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x18]
mov edx, dword [ecx + 8]
mov dword [esp + 0x14], edx
lea edi, [edx + 0x38]
lea ebx, [edx + 9]
cmp eax, dword [edx + 4]
je 0x100403c8
mov eax, dword [ecx + 4]
mov dword [edi], eax
mov eax, dword [esp + 0x24]
mov dword [edx + 0x34], eax
mov eax, dword [esp + 0x18]
cmp eax, 1
mov dword [edx + 4], eax
setne al
mov dword [edx + 0x48], ecx
dec al
and al, 0x64
mov byte [ebx], al
mov al, byte [edx]
mov ecx, edx
mov byte [esp + 0x13], al
mov byte [edx], 0
call fcn.10035f00
test eax, eax
je 0x10040404
push eax
push str.btreeInitPage___returns_error_code__d
push ebp
call fcn.1003fe50
add esp, 0xc
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x1004036a
mov ecx, dword [ecx + 0x48]
call fcn.1002fcc0
jmp 0x1004036a
mov ecx, dword [esp + 0x14]
call fcn.10035cd0
test eax, eax
je 0x10040419
push eax
push str.free_space_corruption
jmp 0x100403e2
mov edx, dword [edi]
movzx edi, byte [ebx]
mov dword [ebp + 0x20], str.On_tree_page__u_cell__d:
mov dword [esp + 0x2c], edi
mov dword [esp + 0x1c], edx
movzx ecx, byte [edi + edx + 5]
movzx eax, byte [edi + edx + 6]
movzx ebx, byte [edi + edx + 3]
shl ecx, 8
or ecx, eax
shl ebx, 8
dec ecx
movzx eax, cx
mov ecx, 3
inc eax
mov dword [esp + 0x44], eax
movzx eax, byte [edi + edx + 4]
mov edi, dword [esp + 0x14]
or ebx, eax
mov dword [esp + 0x50], ebx
mov dl, byte [edi + 8]
movzx eax, dl
sub ecx, eax
mov eax, dword [esp + 0x2c]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x54], eax
lea eax, [eax + ebx*2]
add eax, 0xfffffffe
add eax, ecx
mov dword [esp + 0x38], eax
test dl, dl
jne 0x100404e4
mov eax, dword [esp + 0x2c]
mov edi, dword [eax + ecx + 8]
mov eax, dword [esp + 0x24]
bswap edi
cmp byte [eax + 0x11], dl
je 0x100404b4
push dword [esp + 0x18]
mov edx, edi
mov dword [ebp + 0x20], str.On_page__u_at_right_child:
push 5
mov ecx, ebp
call fcn.1003ff50
add esp, 8
push dword [esp + 0x8c]
lea eax, [esp + 0x8c]
mov edx, edi
push dword [esp + 0x8c]
mov ecx, ebp
push eax
call fcn.10040220
mov edi, dword [esp + 0x20]
add esp, 0xc
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], esi
jmp 0x100404ed
mov esi, dword [ebp + 0x44]
mov dword [esi], 0
lea eax, [ebx - 1]
mov dword [esp + 0x40], eax
test eax, eax
js 0x10040742
jmp 0x10040504
mov edi, dword [esp + 0x14]
cmp dword [ebp + 0x10], 0
je 0x1004073e
mov edx, dword [esp + 0x38]
mov dword [ebp + 0x28], eax
mov ax, word [edx]
sub edx, 2
mov ch, al
mov dword [esp + 0x38], edx
mov cl, ah
movzx ebx, cx
mov ecx, dword [esp + 0x44]
cmp ebx, ecx
jb 0x1004070d
mov eax, dword [esp + 0x20]
add eax, 0xfffffffc
cmp ebx, eax
ja 0x1004070d
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x68]
add eax, ebx
push ecx
push eax
mov dword [esp + 0x44], eax
mov eax, dword [edi + 0x50]
push edi
call eax
mov di, word [esp + 0x86]
add esp, 0xc
mov edx, dword [esp + 0x20]
movzx eax, di
add eax, ebx
cmp eax, edx
jbe 0x10040582
push str.Extends_off_end_of_page
push ebp
call fcn.1003fe50
add esp, 8
jmp 0x10040725
mov eax, dword [esp + 0x14]
cmp byte [eax + 1], 0
je 0x1004060d
cmp dword [esp + 0x28], 0
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
je 0x100405c2
cmp eax, dword [esp + 0x8c]
jl 0x100405ba
jg 0x100405b3
cmp ecx, dword [esp + 0x88]
jbe 0x100405ba
mov edx, 1
jmp 0x100405bc
xor edx, edx
test edx, edx
je 0x100405f3
jmp 0x100405d6
cmp eax, dword [esp + 0x8c]
jl 0x100405f7
jg 0x100405d6
cmp ecx, dword [esp + 0x88]
jb 0x100405f7
push eax
push ecx
push str.Rowid__lld_out_of_order
push ebp
call fcn.1003fe50
mov eax, dword [esp + 0x7c]
add esp, 0x10
mov ecx, dword [esp + 0x68]
mov di, word [esp + 0x7a]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
mov dword [esp + 0x28], 0
movzx ecx, word [esp + 0x78]
mov eax, dword [esp + 0x74]
cmp eax, ecx
jbe 0x10040667
sub eax, ecx
lea ecx, [edx - 4]
add eax, 0xfffffffb
add eax, edx
xor edx, edx
div ecx
movzx ecx, di
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x4c], eax
mov edi, dword [ecx + edi - 4]
mov ecx, dword [esp + 0x24]
bswap edi
cmp byte [ecx + 0x11], 0
je 0x10040659
push dword [esp + 0x18]
mov edx, edi
mov ecx, ebp
push 3
call fcn.1003ff50
mov eax, dword [esp + 0x54]
add esp, 8
push eax
push edi
xor edx, edx
mov ecx, ebp
call fcn.1003fff0
add esp, 8
mov eax, dword [esp + 0x14]
cmp byte [eax + 8], 0
jne 0x100406db
mov eax, dword [esp + 0x3c]
mov edi, dword [eax]
mov eax, dword [esp + 0x24]
bswap edi
cmp byte [eax + 0x11], 0
je 0x10040695
push dword [esp + 0x18]
mov edx, edi
mov ecx, ebp
push 5
call fcn.1003ff50
add esp, 8
push dword [esp + 0x8c]
lea eax, [esp + 0x8c]
mov edx, edi
push dword [esp + 0x8c]
mov ecx, ebp
push eax
call fcn.10040220
mov edi, eax
mov dword [esp + 0x34], 0
add esp, 0xc
cmp edi, dword [esp + 0x30]
je 0x1004072d
push str.Child_page_depth_differs
push ebp
call fcn.1003fe50
add esp, 8
mov dword [esp + 0x30], edi
jmp 0x1004072d
movzx eax, word [esp + 0x7a]
inc dword [esi]
dec eax
mov edi, dword [esi]
add eax, ebx
shl ebx, 0x10
or eax, ebx
mov dword [esi + edi*4], eax
mov eax, edi
shr eax, 1
je 0x1004072d
mov ecx, dword [esi + eax*4]
mov edx, dword [esi + edi*4]
cmp ecx, edx
jbe 0x1004072d
mov dword [esi + eax*4], edx
mov dword [esi + edi*4], ecx
mov edi, eax
shr eax, 1
jne 0x100406f5
jmp 0x1004072d
mov eax, dword [esp + 0x20]
add eax, 0xfffffffc
push eax
push ecx
push ebx
push str.Offset__d_out_of_range__d.._d
push ebp
call fcn.1003fe50
add esp, 0x14
mov dword [esp + 0x34], 0
mov eax, dword [esp + 0x40]
sub eax, 1
mov dword [esp + 0x40], eax
jns 0x10040500
mov ebx, dword [esp + 0x50]
cmp dword [esp + 0x34], 0
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x8c]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [ebp + 0x20], 0
je 0x10040945
cmp dword [ebp + 0x10], 0
jle 0x100403eb
mov edx, dword [esp + 0x14]
cmp byte [edx + 8], 0
jne 0x100407f9
add ebx, 0xffffffff
mov esi, dword [ebp + 0x44]
mov dword [esi], 0
js 0x100407f9
mov eax, dword [esp + 0x54]
lea ebp, [eax + ebx*2]
add ebp, dword [esp + 0x1c]
nop dword [eax + eax]
mov ax, word [ebp]
mov ch, al
mov cl, ah
mov eax, dword [esp + 0x1c]
movzx edi, cx
add eax, edi
push eax
mov eax, dword [edx + 0x4c]
push edx
call eax
inc dword [esi]
add esp, 8
movzx eax, ax
dec eax
add eax, edi
shl edi, 0x10
or eax, edi
mov edi, dword [esi]
mov dword [esi + edi*4], eax
mov eax, edi
shr eax, 1
je 0x100407e9
mov ecx, dword [esi + eax*4]
mov edx, dword [esi + edi*4]
cmp ecx, edx
jbe 0x100407e9
mov dword [esi + eax*4], edx
mov dword [esi + edi*4], ecx
mov edi, eax
shr eax, 1
jne 0x100407d3
mov edx, dword [esp + 0x14]
sub ebp, 2
sub ebx, 1
jns 0x100407a0
mov ebp, dword [esp + 0x58]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
movzx ebx, byte [eax + edx + 1]
movzx eax, byte [eax + edx + 2]
shl ebx, 8
or ebx, eax
jbe 0x10040864
movzx ecx, byte [ebx + edx + 2]
movzx eax, byte [ebx + edx + 3]
inc dword [esi]
mov edi, dword [esi]
shl ecx, 8
or ecx, eax
mov eax, ebx
dec ecx
shl eax, 0x10
add ecx, ebx
or ecx, eax
mov eax, edi
shr eax, 1
mov dword [esi + edi*4], ecx
je 0x10040852
mov ecx, dword [esi + eax*4]
mov edx, dword [esi + edi*4]
cmp ecx, edx
jbe 0x1004084e
mov dword [esi + eax*4], edx
mov dword [esi + edi*4], ecx
mov edi, eax
shr eax, 1
jne 0x10040838
mov edx, dword [esp + 0x1c]
movzx ecx, byte [ebx + edx]
movzx eax, byte [ebx + edx + 1]
shl ecx, 8
mov ebx, ecx
or ebx, eax
ja 0x10040812
mov eax, dword [esp + 0x44]
xor edx, edx
dec eax
mov ecx, dword [esi]
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], edx
test ecx, ecx
je 0x10040901
mov eax, dword [esi + ecx*4]
mov edi, 1
mov ebx, dword [esi + 4]
mov dword [esi + 4], eax
mov dword [esi + ecx*4], 0xffffffff
mov ecx, 2
dec dword [esi]
cmp dword [esi], ecx
jb 0x100408ca
nop dword [eax]
mov eax, dword [esi + ecx*4 + 4]
lea edx, [ecx + 1]
cmp dword [esi + ecx*4], eax
mov eax, dword [esi + edi*4]
cmovbe edx, ecx
mov ecx, dword [esi + edx*4]
cmp eax, ecx
jb 0x100408c6
mov dword [esi + edi*4], ecx
mov edi, edx
mov dword [esi + edx*4], eax
lea ecx, [edi + edi]
cmp ecx, dword [esi]
jbe 0x100408a0
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
mov eax, ebx
shr eax, 0x10
movzx ecx, cx
cmp ecx, eax
jae 0x100408e3
sub eax, ecx
dec eax
add edx, eax
mov eax, ebx
jmp 0x1004086b
mov ebx, dword [esp + 0x18]
push ebx
push eax
push str.Multiple_uses_for_byte__u_of_page__u
push ebp
call fcn.1003fe50
mov eax, dword [esp + 0x44]
add esp, 0x10
mov edx, dword [esp + 0x28]
jmp 0x10040905
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
movzx eax, ax
sub ecx, eax
dec ecx
add ecx, edx
cmp dword [esi], 0
jne 0x100403eb
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
movzx eax, byte [edx + eax + 7]
cmp ecx, eax
je 0x100403eb
push ebx
push eax
push ecx
push str.Fragmentation_of__d_bytes_reported_as__d_on_page__u
push ebp
call fcn.1003fe50
add esp, 0x14
jmp 0x100403eb
mov ecx, dword [esp + 0x14]
mov al, byte [esp + 0x13]
mov byte [ecx], al
jmp 0x100403ef
push edx
push str.invalid_page_number__d
push ebp
call fcn.1003fe50
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x70
ret