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

Disassembly:
sub esp, 0xd0
mov eax, dword [0x667050]
xor eax, esp
mov dword [esp + 0xcc], eax
mov eax, dword [esp + 0xdc]
mov ecx, dword [esp + 0xe0]
mov edx, dword [esp + 0xe4]
push ebx
mov ebx, dword [esp + 0xd8]
push ebp
push esi
mov esi, dword [esp + 0xe4]
push edi
push esi
mov dword [esp + 0x30], eax
push str.Page__d:
lea eax, [esp + 0x78]
xor ebp, ebp
push eax
push 0x64
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
call fcn.00544aa0
mov edi, dword [ebx]
mov ecx, dword [edi + 0x28]
add esp, 0x10
cmp esi, ebp
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ecx
je 0x5593db
mov ecx, dword [esp + 0x2c]
push ebx
mov eax, esi
call fcn.00559000
add esp, 4
test eax, eax
jne 0x5593db
lea edx, [esp + 0x14]
push edx
call fcn.00552550
add esp, 4
cmp eax, ebp
je 0x5593e2
push eax
push str.unable_to_get_the_page._error_code_d
lea edi, [esp + 0x78]
mov esi, ebx
call fcn.00558f90
add esp, 8
xor eax, eax
jmp 0x5599d6
mov ebp, dword [esp + 0x14]
mov edi, ebp
mov byte [ebp], 0
call fcn.005522e0
xor edi, edi
cmp eax, edi
je 0x55941b
push eax
push str.btreeInitPage___returns_error_code__d
lea edi, [esp + 0x78]
mov esi, ebx
call fcn.00558f90
mov eax, dword [ebp + 0x44]
push eax
call fcn.0054da10
add esp, 0xc
xor eax, eax
jmp 0x5599d6
cmp word [ebp + 0x10], di
mov dword [esp + 0x4c], edi
mov dword [esp + 0x1c], edi
jbe 0x559649
lea ecx, [ecx]
cmp dword [ebx + 0x10], 0
je 0x559649
mov ecx, dword [esp + 0xe8]
push edi
push ecx
push str.On_tree_page__d_cell__d:
lea edx, [esp + 0x7c]
push edx
push 0x64
call fcn.00544aa0
mov eax, dword [ebp + 0x40]
movzx ecx, word [ebp + 0xc]
add ecx, eax
xor edx, edx
mov dh, byte [ecx + edi*2]
lea ecx, [ecx + edi*2]
add esp, 0x14
mov dl, byte [ecx + 1]
movzx ecx, word [ebp + 0x12]
and edx, ecx
add edx, eax
mov esi, edx
push esi
push ebp
lea eax, [esp + 0x58]
mov dword [esp + 0x34], esi
call fcn.00551a30
mov edx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x64]
add esp, 8
cmp byte [edx + 2], 0
jne 0x55949d
mov eax, dword [esp + 0x50]
add ebp, eax
jmp 0x55950b
test edi, edi
jne 0x5594bb
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
jmp 0x55950b
mov ebx, dword [esp + 0x54]
mov ecx, dword [esp + 0x24]
cmp ebx, ecx
jg 0x5594fb
mov eax, dword [esp + 0x20]
jl 0x5594d3
cmp dword [esp + 0x50], eax
ja 0x5594fb
mov esi, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x54]
push eax
push ebx
push ecx
push str.Rowid__lld_out_of_order__previous_was__lld_
lea edi, [esp + 0x84]
call fcn.00558f90
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x30]
add esp, 0x14
mov edx, dword [esp + 0x50]
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x20], edx
movzx eax, word [esp + 0x66]
cmp ebp, eax
jbe 0x55959c
mov edx, dword [esp + 0x14]
movzx ecx, word [esp + 0x68]
mov edx, dword [edx + 0x40]
mov edi, dword [esp + 0x3c]
add edx, dword [edi + 0x28]
add ecx, esi
cmp ecx, edx
ja 0x559598
mov edx, dword [esp + 0x38]
sub ebp, eax
lea esi, [edx - 4]
lea eax, [edx + ebp - 5]
xor edx, edx
div esi
movzx edx, byte [ecx + 2]
mov edi, eax
xor eax, eax
mov ah, byte [ecx]
mov al, byte [ecx + 1]
movzx ecx, byte [ecx + 3]
shl eax, 8
or eax, edx
mov edx, dword [esp + 0x3c]
shl eax, 8
or eax, ecx
cmp byte [edx + 0x15], 0
mov esi, eax
je 0x559582
lea eax, [esp + 0x70]
push eax
mov eax, dword [esp + 0xec]
push 3
push esi
mov ecx, ebx
call fcn.00559060
add esp, 0xc
lea ecx, [esp + 0x70]
push ecx
push edi
push esi
push 0
push ebx
call fcn.005590f0
mov esi, dword [esp + 0x40]
add esp, 0x14
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
cmp byte [edx + 3], 0
jne 0x559630
movzx ecx, byte [esi + 2]
movzx edx, byte [esi + 3]
xor eax, eax
mov ah, byte [esi]
mov al, byte [esi + 1]
shl eax, 8
or eax, ecx
shl eax, 8
or eax, edx
mov esi, eax
mov eax, dword [esp + 0x3c]
cmp byte [eax + 0x15], 0
je 0x5595e8
mov eax, dword [esp + 0xe8]
lea ecx, [esp + 0x70]
push ecx
push 5
push esi
mov ecx, ebx
call fcn.00559060
add esp, 0xc
mov edx, edi
neg edx
sbb edx, edx
lea eax, [esp + 0x20]
and edx, eax
push edx
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x78]
push edx
push esi
push ebx
call fcn.00559320
add esp, 0x14
test edi, edi
mov ebp, eax
jle 0x55962c
cmp ebp, dword [esp + 0x4c]
je 0x55962c
push str.Child_page_depth_differs
lea edi, [esp + 0x74]
mov esi, ebx
call fcn.00558f90
mov edi, dword [esp + 0x20]
add esp, 4
mov dword [esp + 0x4c], ebp
mov eax, dword [esp + 0x14]
movzx ecx, word [eax + 0x10]
add edi, 1
cmp edi, ecx
mov dword [esp + 0x1c], edi
mov ebp, eax
jl 0x559430
cmp byte [ebp + 3], 0
jne 0x5596e0
movzx edx, byte [ebp + 5]
mov eax, dword [ebp + 0x40]
mov edi, dword [esp + 0xe8]
xor ecx, ecx
mov ch, byte [edx + eax + 8]
lea eax, [edx + eax + 8]
movzx edx, byte [eax + 2]
push edi
push str.On_page__d_at_right_child:
mov cl, byte [eax + 1]
movzx eax, byte [eax + 3]
shl ecx, 8
or ecx, edx
shl ecx, 8
or ecx, eax
mov esi, ecx
lea ecx, [esp + 0x78]
push ecx
push 0x64
call fcn.00544aa0
mov edx, dword [esp + 0x4c]
add esp, 0x10
cmp byte [edx + 0x15], 0
je 0x5596b5
lea eax, [esp + 0x70]
push eax
push 5
push esi
mov eax, edi
mov ecx, ebx
call fcn.00559060
add esp, 0xc
mov cx, word [ebp + 0x10]
neg cx
lea edx, [esp + 0x20]
lea eax, [esp + 0x70]
sbb ecx, ecx
and ecx, edx
push ecx
push 0
push eax
push esi
push ebx
call fcn.00559320
add esp, 0x14
cmp byte [ebp + 3], 0
je 0x5597e9
cmp byte [ebp + 2], 0
je 0x5597e9
mov eax, dword [esp + 0x30]
test eax, eax
je 0x5597ae
mov edi, dword [esp + 0x18]
test edi, edi
jne 0x55972d
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x24]
cmp edx, eax
jl 0x5597e9
jg 0x55971b
cmp dword [esp + 0x20], ecx
jbe 0x5597e9
push eax
push ecx
mov ecx, dword [esp + 0x28]
push edx
push ecx
push str.Rowid__lld_out_of_order__max_larger_than_parent_min_of__lld_
jmp 0x5597d8
mov ecx, dword [eax + 4]
mov esi, dword [esp + 0x44]
cmp esi, ecx
mov edx, dword [eax]
jg 0x559768
jl 0x559742
cmp dword [esp + 0x40], edx
ja 0x559768
push ecx
push edx
mov edx, dword [esp + 0x48]
push esi
push edx
push str.Rowid__lld_out_of_order__min_less_than_parent_min_of__lld_
lea edi, [esp + 0x84]
mov esi, ebx
call fcn.00558f90
mov eax, dword [esp + 0x44]
mov edi, dword [esp + 0x2c]
add esp, 0x14
mov ecx, dword [edi + 4]
mov edx, dword [esp + 0x24]
cmp edx, ecx
mov esi, dword [edi]
jl 0x5597a3
jg 0x55977d
cmp dword [esp + 0x20], esi
jbe 0x5597a3
mov eax, dword [esp + 0x20]
push ecx
push esi
push edx
push eax
push str.Rowid__lld_out_of_order__max_larger_than_parent_max_of__lld_
lea edi, [esp + 0x84]
mov esi, ebx
call fcn.00558f90
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x38]
add esp, 0x14
mov ecx, dword [esp + 0x20]
mov dword [eax], ecx
mov dword [eax + 4], edx
jmp 0x5597e9
mov eax, dword [esp + 0x18]
test eax, eax
je 0x5597e9
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x44]
cmp edx, eax
jg 0x5597e9
jl 0x5597cb
cmp dword [esp + 0x40], ecx
ja 0x5597e9
push eax
push ecx
push edx
mov edx, dword [esp + 0x4c]
push edx
push str.Rowid__lld_out_of_order__min_less_than_parent_max_of__lld_
lea edi, [esp + 0x84]
mov esi, ebx
call fcn.00558f90
add esp, 0x14
movzx edi, byte [ebp + 5]
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x24]
mov ebx, dword [ebp + 0x40]
mov dword [esp + 0x30], edi
call fcn.00549560
mov ebp, eax
test ebp, ebp
jne 0x559816
mov ecx, dword [esp + 0x34]
mov dword [ecx + 0x18], 1
jmp 0x5599b8
mov eax, dword [esp + 0x38]
xor edx, edx
mov dh, byte [edi + ebx + 5]
mov dl, byte [edi + ebx + 6]
sub edx, 1
and edx, 0xffff
add edx, 1
mov esi, edx
sub eax, esi
push eax
lea ecx, [esi + ebp]
push 0
push ecx
call fcn.005e6f30
add esp, 0xc
push esi
push 1
push ebp
call fcn.005e6f30
mov edx, dword [esp + 0x20]
movzx eax, byte [edx + 3]
xor ecx, ecx
mov ch, byte [edi + ebx + 3]
mov edx, 3
sub edx, eax
lea eax, [edi + edx*4]
add esp, 0xc
mov cl, byte [edi + ebx + 4]
xor edi, edi
mov dword [esp + 0x1c], edi
test ecx, ecx
mov dword [esp + 0x18], ecx
jle 0x559903
add eax, ebx
mov dword [esp + 0x2c], eax
xor ecx, ecx
mov ch, byte [eax]
mov cl, byte [eax + 1]
mov eax, 0x10000
mov esi, ecx
mov ecx, dword [esp + 0x38]
add ecx, 0xfffffffc
cmp esi, ecx
jg 0x5598b0
mov eax, dword [esp + 0x14]
lea edx, [esi + ebx]
push edx
push eax
call fcn.00551b70
add esp, 8
movzx eax, ax
lea eax, [eax + esi - 1]
cmp eax, dword [esp + 0x38]
jl 0x5598dc
mov ecx, dword [esp + 0xe8]
mov esi, dword [esp + 0x34]
push ecx
push edi
push str.Corruption_detected_in_cell__d_on_page__d
xor edi, edi
call fcn.00558f90
mov edi, dword [esp + 0x28]
add esp, 0xc
jmp 0x5598eb
cmp eax, esi
jl 0x5598eb
add byte [eax + ebp], 1
sub eax, 1
cmp eax, esi
jge 0x5598e0
mov eax, dword [esp + 0x2c]
add edi, 1
add eax, 2
cmp edi, dword [esp + 0x18]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x2c], eax
jl 0x559883
mov edi, dword [esp + 0x30]
xor ecx, ecx
mov ch, byte [edi + ebx + 1]
mov cl, byte [edi + ebx + 2]
test ecx, ecx
jle 0x559941
xor edx, edx
mov dh, byte [ebx + ecx + 2]
mov dl, byte [ebx + ecx + 3]
lea eax, [edx + ecx - 1]
cmp eax, ecx
jl 0x559932
add byte [eax + ebp], 1
sub eax, 1
cmp eax, ecx
jge 0x559927
xor eax, eax
mov ah, byte [ebx + ecx]
mov al, byte [ebx + ecx + 1]
mov ecx, eax
test ecx, ecx
jg 0x559915
mov esi, dword [esp + 0x38]
xor edx, edx
xor eax, eax
test esi, esi
jle 0x559992
lea ecx, [ecx]
mov cl, byte [eax + ebp]
test cl, cl
jne 0x55995c
add edx, 1
jmp 0x559961
cmp cl, 1
jg 0x55996a
add eax, 1
cmp eax, esi
jl 0x559950
jmp 0x559992
mov ecx, dword [esp + 0xe8]
mov esi, dword [esp + 0x34]
push ecx
push eax
push str.Multiple_uses_for_byte__d_of_page__d
xor edi, edi
mov dword [esp + 0x24], edx
call fcn.00558f90
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x3c]
add esp, 0xc
movzx eax, byte [edi + ebx + 7]
cmp edx, eax
je 0x5599b8
mov ecx, dword [esp + 0xe8]
mov esi, dword [esp + 0x34]
push ecx
push eax
push edx
push str.Fragmentation_of__d_bytes_reported_as__d_on_page__d
xor edi, edi
call fcn.00558f90
add esp, 0x10
mov esi, ebp
call fcn.00549660
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x44]
push eax
call fcn.0054da10
mov eax, dword [esp + 0x50]
add esp, 4
add eax, 1
mov ecx, dword [esp + 0xdc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005e693f
add esp, 0xd0
ret