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

Disassembly:
push ebp
push edi
mov edi, eax
push esi
push ebx
sub esp, 0xbc
mov eax, dword [esp + 0xd0]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0x94], 0
mov dword [esp + 0x8c], eax
test edx, edx
jne 0x665bd790
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x2c]
add esp, 0xbc
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [edi + 0x1c]
mov ebx, dword [edi]
mov esi, dword [esp + 0x30]
mov dword [esp + 0x40], eax
mov eax, dword [edi + 0x20]
mov edx, esi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0x24]
mov dword [esp + 0x44], eax
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x38], eax
mov eax, edi
call fcn.665bd360
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x665bd76f
mov dword [edi + 0x20], esi
lea ecx, [esp + 0x94]
mov edx, esi
mov eax, ebx
mov dword [edi + 0x1c], str.Page__u:
mov dword [esp], 0
call fcn.665829b0
test eax, eax
jne 0x665bdb18
mov eax, dword [esp + 0x94]
movzx ecx, byte [eax]
mov byte [eax], 0
mov byte [esp + 0x6b], cl
call fcn.665afde0
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x665bdb60
mov eax, dword [esp + 0x94]
call fcn.665b1600
mov dword [esp + 0x54], eax
test eax, eax
jne 0x665bded0
mov edx, dword [esp + 0x94]
movzx ebp, byte [edx + 9]
mov ebx, dword [edx + 0x38]
mov dword [edi + 0x1c], str.On_tree_page__u_cell__d:
movzx eax, byte [ebx + ebp + 5]
movzx ecx, byte [ebx + ebp + 6]
mov dword [esp + 0x7c], ebp
shl eax, 8
or eax, ecx
lea ecx, [ebp + 0xc]
sub eax, 1
movzx eax, ax
mov dword [esp + 0x80], eax
add eax, 1
mov dword [esp + 0x2c], eax
mov eax, ebx
movzx ebx, byte [ebx + ebp + 3]
mov dword [esp + 0x50], eax
movzx eax, byte [eax + ebp + 4]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 8]
lea esi, [ebx - 1]
mov edx, eax
shl eax, 2
mov dword [esp + 0x78], esi
sub ecx, eax
mov dword [esp + 0x84], ecx
lea esi, [ecx + esi*2]
test dl, dl
je 0x665bdb88
mov ebp, dword [edi + 0x40]
mov dword [esp + 0x64], 1
mov dword [esp + 0x58], 0xffffffff
mov dword [ebp], 0
mov ecx, dword [esp + 0x78]
cmp ecx, 0xffffffff
je 0x665bdc3b
mov eax, esi
add ebx, ebx
mov dword [esp + 0x60], 1
mov esi, ecx
sub eax, ebx
add eax, dword [esp + 0x50]
mov dword [esp + 0x74], ebp
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x38]
sub eax, 4
mov dword [esp + 0x4c], eax
mov ebx, dword [edi + 0x10]
test ebx, ebx
je 0x665bdac0
mov eax, dword [esp + 0x5c]
mov dword [edi + 0x24], esi
movzx ebx, word [eax + esi*2 + 2]
rol bx, 8
movzx ebx, bx
cmp dword [esp + 0x2c], ebx
ja 0x665bdbe0
cmp ebx, dword [esp + 0x4c]
ja 0x665bdbe0
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x98]
mov dword [esp + 8], edx
lea ebp, [eax + ebx]
mov eax, dword [esp + 0x94]
mov dword [esp + 4], ebp
mov dword [esp], eax
call dword [eax + 0x50]
movzx eax, word [esp + 0xaa]
add eax, ebx
cmp eax, dword [esp + 0x38]
ja 0x665bde78
mov eax, dword [esp + 0x94]
cmp byte [eax + 2], 0
je 0x665bd9f7
mov ecx, dword [esp + 0x9c]
mov eax, dword [esp + 0x98]
cmp dword [esp + 0x64], 0
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x70], eax
mov edx, ecx
mov ecx, dword [esp + 0x8c]
je 0x665bde60
cmp edx, eax
sbb ecx, dword [esp + 0x6c]
jge 0x665bd9d9
mov eax, dword [esp + 0x70]
mov dword [esp + 4], str.Rowid__lld_out_of_order
mov dword [esp], edi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0xc], eax
call fcn.665bd2a0
mov eax, dword [esp + 0x98]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x6c], eax
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x64], 0
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0xa4]
movzx edx, word [esp + 0xa8]
cmp eax, edx
jbe 0x665bda4c
mov ecx, dword [esp + 0x38]
sub eax, edx
xor edx, edx
lea eax, [eax + ecx - 5]
div dword [esp + 0x4c]
mov dword [esp + 0x6c], eax
movzx eax, word [esp + 0xaa]
mov edx, dword [ebp + eax - 4]
mov eax, dword [esp + 0x48]
cmp byte [eax + 0x11], 0
bswap edx
jne 0x665bdeb0
mov eax, dword [esp + 0x6c]
mov ecx, edx
xor edx, edx
mov dword [esp], eax
mov eax, edi
call fcn.665bd4b0
mov eax, dword [esp + 0x94]
cmp byte [eax + 8], 0
jne 0x665bdc18
mov eax, dword [esp + 0x48]
mov edx, dword [ebp]
cmp byte [eax + 0x11], 0
bswap edx
jne 0x665bde90
mov ecx, dword [esp + 0x88]
mov ebx, dword [esp + 0x8c]
mov eax, edi
mov dword [esp], ecx
lea ecx, [esp + 0x88]
mov dword [esp + 4], ebx
call fcn.665bd730
mov dword [esp + 0x64], 0
mov ebx, eax
cmp eax, dword [esp + 0x58]
je 0x665bdab3
mov dword [esp + 4], str.Child_page_depth_differs
mov dword [esp], edi
call fcn.665bd2a0
mov dword [esp + 0x58], ebx
sub esi, 1
jae 0x665bd8f0
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x8c]
mov ebp, dword [esp + 0x74]
mov dword [ecx], eax
mov eax, dword [esp + 0x94]
mov dword [ecx + 4], edx
mov ecx, dword [esp + 0x58]
mov dword [edi + 0x1c], 0
add ecx, 1
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x60]
test ecx, ecx
jne 0x665bdc6b
movzx ecx, byte [esp + 0x6b]
mov byte [eax], cl
mov eax, dword [eax + 0x48]
call fcn.6658dc20
jmp 0x665bdb37
mov dword [esp + 8], eax
mov dword [esp + 4], str.unable_to_get_the_page._error_code_d
mov dword [esp], edi
call fcn.665bd2a0
mov eax, dword [esp + 0x94]
test eax, eax
jne 0x665bdb07
mov eax, dword [esp + 0x40]
mov dword [edi + 0x1c], eax
mov eax, dword [esp + 0x3c]
mov dword [edi + 0x20], eax
mov eax, dword [esp + 0x44]
mov dword [edi + 0x24], eax
mov eax, dword [esp + 0x2c]
add esp, 0xbc
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], eax
mov dword [esp + 4], str.btreeInitPage___returns_error_code__d
mov dword [esp], edi
call fcn.665bd2a0
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x94]
jmp 0x665bdb33
mov eax, dword [esp + 0x50]
mov edx, dword [eax + ebp + 8]
mov eax, dword [esp + 0x48]
cmp byte [eax + 0x11], 0
bswap edx
mov ebp, edx
jne 0x665bdef0
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x8c]
lea ecx, [esp + 0x88]
mov dword [esp], eax
mov eax, edi
mov dword [esp + 4], edx
mov edx, ebp
xor ebp, ebp
call fcn.665bd730
mov dword [esp + 0x64], 0
mov dword [esp + 0x58], eax
jmp 0x665bd8bc
mov eax, dword [esp + 0x4c]
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Offset__d_out_of_range__d.._d
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
mov dword [esp], edi
mov dword [esp + 0xc], eax
call fcn.665bd2a0
mov dword [esp + 0x60], 0
jmp 0x665bdab7
movzx eax, word [esp + 0xaa]
lea edx, [ebx + eax - 1]
shl ebx, 0x10
mov eax, dword [esp + 0x74]
or edx, ebx
call fcn.66582a60
mov ebx, dword [esp + 0x58]
jmp 0x665bdab3
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x8c]
mov dword [ecx], eax
mov eax, dword [esp + 0x94]
mov dword [ecx + 4], edx
mov ecx, dword [esp + 0x58]
mov dword [edi + 0x1c], 0
add ecx, 1
mov dword [esp + 0x2c], ecx
mov edx, dword [edi + 0x10]
test edx, edx
jle 0x665bdb33
cmp byte [eax + 8], 0
jne 0x665bdce7
mov ebp, dword [edi + 0x40]
mov ecx, dword [esp + 0x78]
mov dword [ebp], 0
cmp ecx, 0xffffffff
je 0x665bdce7
mov esi, dword [esp + 0x50]
mov ebx, dword [esp + 0x84]
mov dword [esp + 0x34], edi
mov edi, ecx
add ebx, esi
jmp 0x665bdcaf
mov eax, dword [esp + 0x94]
movzx esi, word [ebx + edi*2]
mov ecx, dword [esp + 0x50]
mov dword [esp], eax
rol si, 8
movzx esi, si
lea edx, [ecx + esi]
mov dword [esp + 4], edx
call dword [eax + 0x4c]
movzx eax, ax
lea edx, [esi + eax - 1]
shl esi, 0x10
mov eax, ebp
or edx, esi
call fcn.66582a60
sub edi, 1
jae 0x665bdca8
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x7c]
mov esi, dword [esp + 0x50]
movzx ebx, byte [eax + ecx + 1]
movzx eax, byte [eax + ecx + 2]
shl ebx, 8
or ebx, eax
je 0x665bdd39
lea esi, [esi]
movzx eax, byte [esi + ebx + 2]
movzx edx, byte [esi + ebx + 3]
shl eax, 8
or eax, edx
lea edx, [ebx + eax - 1]
mov eax, ebx
shl eax, 0x10
or edx, eax
mov eax, ebp
call fcn.66582a60
movzx eax, byte [esi + ebx]
movzx ebx, byte [esi + ebx + 1]
shl eax, 8
or ebx, eax
jne 0x665bdd08
mov eax, dword [esp + 0x80]
mov dword [esp + 0x48], eax
mov eax, dword [ebp]
test eax, eax
je 0x665bdf58
mov dword [esp + 0x58], edi
lea esi, [esi]
nop
lea eax, [ebp + eax*4]
mov edi, dword [esp + 0x48]
mov edx, dword [eax]
mov dword [esp + 0x4c], edi
mov edi, dword [ebp + 4]
mov dword [ebp + 4], edx
mov dword [eax], 0xffffffff
mov eax, dword [ebp]
mov dword [esp + 0x48], edi
sub eax, 1
mov dword [ebp], eax
cmp eax, 1
jbe 0x665bddd8
mov eax, dword [ebp + 4]
mov ebx, 2
mov esi, 1
mov dword [esp + 0x34], eax
jmp 0x665bddae
mov dword [ebx], eax
lea ebx, [edx + edx]
mov dword [ecx], esi
cmp ebx, dword [ebp]
ja 0x665bddd8
mov esi, edx
lea edx, [ebx + 1]
lea edi, [edx*4]
lea ecx, [ebp + edi]
mov eax, dword [ecx]
cmp dword [ebp + esi*8], eax
ja 0x665bddcc
lea ecx, [ebp + edi - 4]
mov edx, ebx
mov eax, dword [ecx]
lea ebx, [ebp + esi*4]
mov esi, dword [esp + 0x34]
cmp esi, eax
jae 0x665bdda0
mov eax, dword [esp + 0x48]
movzx ebx, word [esp + 0x4c]
shr eax, 0x10
cmp ebx, eax
jae 0x665bdf17
mov edi, dword [esp + 0x54]
lea edx, [eax + edi - 1]
mov eax, dword [ebp]
sub edx, ebx
mov dword [esp + 0x54], edx
test eax, eax
jne 0x665bdd58
movzx eax, word [esp + 0x48]
mov edi, dword [esp + 0x58]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x38]
lea eax, [edx + eax - 1]
sub eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x50]
mov esi, dword [esp + 0x7c]
movzx edx, byte [ecx + esi + 7]
cmp edx, eax
je 0x665bde4f
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 4], str.Fragmentation_of__d_bytes_reported_as__d_on_page__u
mov dword [esp], edi
call fcn.665bd2a0
mov eax, dword [esp + 0x94]
jmp 0x665bdb33
cmp dword [esp + 0x70], edx
mov edx, dword [esp + 0x6c]
sbb edx, ecx
jl 0x665bd9d9
jmp 0x665bd9a3
mov dword [esp + 4], str.Extends_off_end_of_page
mov dword [esp], edi
call fcn.665bd2a0
jmp 0x665bdc04
mov eax, dword [esp + 0x30]
mov ecx, 5
mov dword [esp + 0x64], edx
mov dword [esp], eax
mov eax, edi
call fcn.665bd400
mov edx, dword [esp + 0x64]
jmp 0x665bda70
mov eax, dword [esp + 0x30]
mov ecx, 3
mov dword [esp + 0x70], edx
mov dword [esp], eax
mov eax, edi
call fcn.665bd400
mov edx, dword [esp + 0x70]
jmp 0x665bda3a
mov dword [esp + 8], eax
mov dword [esp + 4], str.free_space_corruption
mov dword [esp], edi
call fcn.665bd2a0
mov eax, dword [esp + 0x94]
jmp 0x665bdb33
mov eax, dword [esp + 0x30]
mov dword [edi + 0x1c], str.On_page__u_at_right_child:
mov ecx, 5
mov dword [esp + 0x4c], edx
mov dword [esp], eax
mov eax, edi
call fcn.665bd400
mov ebp, dword [esp + 0x4c]
jmp 0x665bdba2
mov edi, dword [esp + 0x58]
mov ecx, dword [esp + 0x30]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Multiple_uses_for_byte__u_of_page__u
mov dword [esp + 0xc], ecx
mov dword [esp], edi
call fcn.665bd2a0
mov eax, dword [ebp]
test eax, eax
jne 0x665bde4f
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x54]
lea eax, [eax + ecx - 1]
sub eax, ebx
jmp 0x665bde1e
xor edx, edx
jmp 0x665bde12