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

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x138
mov rax, qword [0x1401423c0]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0x180]
mov qword [rsp + 0x80], r9
mov rdi, r8
mov qword [rsp + 0x60], rax
xor eax, eax
mov ebx, edx
mov dword [rsp + 0x30], edx
mov rbp, rcx
mov r9d, edx
lea r8, str.Page__d:
lea ecx, [rax + 0x64]
lea rdx, [rsp + 0xb0]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x48], rax
call fcn.140026650
mov rsi, qword [rbp]
mov qword [rsp + 0x40], rsi
mov eax, dword [rsi + 0x38]
mov dword [rsp + 0x3c], eax
test ebx, ebx
je 0x14004201a
mov r8, rdi
mov edx, ebx
mov rcx, rbp
call fcn.1400410e0
test eax, eax
jne 0x14004201a
mov rsi, qword [rsi]
mov edi, dword [rsi + 0x2c]
test edi, edi
jne 0x1400417c0
mov rcx, qword [rsi + 0xe0]
lea r9, [rsp + 0x70]
lea r8d, [rax + 1]
mov edx, ebx
call fcn.14002bc60
mov edi, eax
test eax, eax
jne 0x1400417c0
mov rbx, qword [rsp + 0x70]
cmp qword [rbx + 0x20], 0
jne 0x1400417e2
mov ecx, dword [rsp + 0x30]
mov qword [rbx + 0x20], rsi
cmp ecx, 0x7fffffff
ja 0x14004176c
mov eax, dword [0x140144068]
movsxd r8, dword [rsi + 0xa0]
cdq
idiv r8d
inc eax
cmp ecx, eax
je 0x14004176c
cmp byte [rsi + 0x12], dil
jne 0x140041751
cmp dword [rsi + 0x1c], ecx
jb 0x140041751
mov rax, qword [rsi + 0x48]
cmp qword [rax], 0
je 0x140041751
mov rcx, rbx
call fcn.14002f200
mov edi, eax
test eax, eax
je 0x1400417e2
jmp 0x14004178c
cmp ecx, dword [rsi + 0xa4]
jbe 0x140041760
mov edi, reloc.WS2_32.dll_listen
jmp 0x14004178c
mov rcx, qword [rbx]
xor edx, edx
call fcn.1400e1fc0
jmp 0x1400417e2
mov edi, reloc.WS2_32.dll_inet_addr
lea r9, [0x14011a914]
lea rdx, str.database_corruption_at_line__d_of___.10s_
mov ecx, edi
mov r8d, 0xa354
call fcn.140026790
test byte [rbx + 0x28], 2
je 0x14004179a
mov rcx, rbx
call fcn.14002bbf0
mov rcx, qword [rbx + 0x30]
dec dword [rcx + 0x18]
cmp dword [rbx + 0x18], 1
jne 0x1400417ad
xor eax, eax
mov qword [rcx + 0x48], rax
mov rcx, qword [rcx + 0x40]
mov r8d, 1
mov rdx, rbx
call qword [0x140144150]
mov rax, qword [rsi + 0xe0]
cmp dword [rax + 0x18], 0
jne 0x1400417d5
mov rcx, rsi
call fcn.14002e6b0
xor eax, eax
mov rbx, rax
test edi, edi
jne 0x140042000
mov rdi, qword [rbx + 8]
mov rax, qword [rbx]
mov ecx, WSAAsyncSelect
mov qword [rdi + 0x70], rax
mov rax, qword [rsp + 0x40]
mov qword [rdi + 0x78], rbx
mov ebx, dword [rsp + 0x30]
mov qword [rdi + 0x68], rax
xor eax, eax
mov dword [rdi + 0x80], ebx
cmp ebx, 1
mov qword [rsp + 0x78], rdi
cmove eax, ecx
mov rcx, rdi
mov byte [rdi + 5], al
mov byte [rdi], 0
call fcn.140036fb0
test eax, eax
je 0x14004184f
lea r8, str.btreeInitPage___returns_error_code__d
lea rdx, [rsp + 0xb0]
mov r9d, eax
mov rcx, rbp
call fcn.140041030
mov rcx, rdi
call fcn.140037560
jmp 0x14004201a
xor eax, eax
mov dword [rsp + 0x50], eax
mov esi, eax
cmp ax, word [rdi + 0x10]
jae 0x140041acb
mov qword [rsp + 0x58], rax
jmp 0x140041874
mov ebx, dword [rsp + 0x30]
cmp dword [rbp + 0x20], 0
je 0x140041acb
lea r8, str.On_tree_page__d_cell__d:
lea rdx, [rsp + 0xb0]
mov r9d, ebx
mov ecx, WSAAsyncSelect
mov dword [rsp + 0x20], esi
call fcn.140026650
mov r11, qword [rdi + 0x70]
movzx ecx, word [rdi + 0xc]
add rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x88]
movzx eax, byte [rcx + r11]
shl eax, 8
movsxd rbx, eax
movzx eax, byte [rcx + r11 + 1]
mov rcx, rdi
or rbx, rax
movzx eax, word [rdi + 0x12]
and rbx, rax
add rbx, r11
mov rdx, rbx
mov qword [rsp + 0x70], rbx
call fcn.1400364e0
cmp byte [rdi + 2], 0
mov ecx, dword [rsp + 0x98]
mov dword [rsp + 0x34], ecx
jne 0x1400418fd
mov eax, dword [rsp + 0x88]
add ecx, eax
jmp 0x140041954
test esi, esi
jne 0x140041915
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x68], rax
jmp 0x140041954
mov rbx, qword [rsp + 0x88]
mov rax, qword [rsp + 0x48]
cmp rbx, rax
jg 0x14004194a
lea r8, str.Rowid__lld_out_of_order__previous_was__lld_
lea rdx, [rsp + 0xb0]
mov r9, rbx
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.140041030
mov ecx, dword [rsp + 0x34]
mov qword [rsp + 0x48], rbx
mov rbx, qword [rsp + 0x70]
movzx edx, word [rsp + 0xa2]
mov r9, qword [rsp + 0x40]
cmp ecx, edx
jbe 0x140041a0f
mov eax, dword [r9 + 0x38]
movzx r8d, word [rsp + 0xa4]
add rax, qword [rdi + 0x70]
add r8, rbx
cmp r8, rax
ja 0x140041a0f
sub ecx, edx
mov edx, dword [rsp + 0x3c]
lea eax, [rcx + rdx - 5]
lea ecx, [rdx - 4]
xor edx, edx
div ecx
movzx ecx, byte [r8 + 1]
mov dword [rsp + 0x38], eax
movzx eax, byte [r8]
shl eax, 8
or eax, ecx
movzx ecx, byte [r8 + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [r8 + 3]
shl eax, 8
or eax, ecx
cmp byte [r9 + 0x25], 0
mov dword [rsp + 0x34], eax
je 0x1400419eb
mov r9d, dword [rsp + 0x30]
lea rcx, [rsp + 0xb0]
mov r8b, 3
mov qword [rsp + 0x20], rcx
mov rcx, rbp
mov edx, eax
call fcn.140041150
mov eax, dword [rsp + 0x34]
mov r9d, dword [rsp + 0x38]
lea rcx, [rsp + 0xb0]
mov r8d, eax
mov qword [rsp + 0x20], rcx
mov rcx, rbp
xor edx, edx
call fcn.140041210
mov r9, qword [rsp + 0x40]
cmp byte [rdi + 3], 0
jne 0x140041ab7
movzx ebx, byte [rbx]
mov rcx, qword [rsp + 0x70]
movzx eax, byte [rcx + 1]
shl ebx, 8
or ebx, eax
movzx eax, byte [rcx + 2]
shl ebx, 8
or ebx, eax
movzx eax, byte [rcx + 3]
shl ebx, 8
or ebx, eax
cmp byte [r9 + 0x25], 0
je 0x140041a62
mov r9d, dword [rsp + 0x30]
lea rax, [rsp + 0xb0]
mov r8b, 5
mov edx, ebx
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.140041150
mov ecx, 0
lea rax, [rsp + 0x48]
test esi, esi
cmove rax, rcx
lea r9, [rsp + 0x68]
lea r8, [rsp + 0xb0]
mov rcx, rbp
mov edx, ebx
mov qword [rsp + 0x20], rax
call fcn.140041630
mov ebx, eax
test esi, esi
jle 0x140041ab3
mov eax, dword [rsp + 0x50]
cmp ebx, eax
je 0x140041ab3
lea r8, str.Child_page_depth_differs
lea rdx, [rsp + 0xb0]
mov rcx, rbp
call fcn.140041030
mov dword [rsp + 0x50], ebx
movzx eax, word [rdi + 0x10]
add qword [rsp + 0x58], 2
inc esi
cmp esi, eax
jl 0x140041870
cmp byte [rdi + 3], 0
jne 0x140041b80
movzx eax, byte [rdi + 5]
mov esi, dword [rsp + 0x30]
lea r8, str.On_page__d_at_right_child:
add eax, 8
mov r9d, esi
mov ecx, WSAAsyncSelect
movsxd rdx, eax
add rdx, qword [rdi + 0x70]
movzx eax, byte [rdx + 1]
movzx ebx, byte [rdx]
shl ebx, 8
or ebx, eax
movzx eax, byte [rdx + 2]
shl ebx, 8
or ebx, eax
movzx eax, byte [rdx + 3]
lea rdx, [rsp + 0xb0]
shl ebx, 8
or ebx, eax
call fcn.140026650
mov rax, qword [rsp + 0x40]
cmp byte [rax + 0x25], 0
je 0x140041b49
lea rax, [rsp + 0xb0]
mov r9d, esi
mov r8b, 5
mov edx, ebx
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.140041150
cmp word [rdi + 0x10], 0
mov ecx, 0
lea rax, [rsp + 0x48]
cmove rax, rcx
lea r8, [rsp + 0xb0]
mov edx, ebx
xor r9d, r9d
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.140041630
cmp byte [rdi + 3], 0
je 0x140041c47
cmp byte [rdi + 2], 0
je 0x140041c47
mov rsi, qword [rsp + 0x80]
test rsi, rsi
je 0x140041c14
mov rbx, qword [rsp + 0x60]
mov rax, qword [rsi]
test rbx, rbx
jne 0x140041bbb
mov r9, qword [rsp + 0x48]
cmp r9, rax
jle 0x140041c47
lea r8, str.Rowid__lld_out_of_order__max_larger_than_parent_min_of__lld_
jmp 0x140041c32
mov r9, qword [rsp + 0x68]
cmp r9, rax
jg 0x140041be1
lea r8, str.Rowid__lld_out_of_order__min_less_than_parent_min_of__lld_
lea rdx, [rsp + 0xb0]
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.140041030
mov rax, qword [rbx]
mov r9, qword [rsp + 0x48]
cmp r9, rax
jle 0x140041c0a
lea r8, str.Rowid__lld_out_of_order__max_larger_than_parent_max_of__lld_
lea rdx, [rsp + 0xb0]
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.140041030
mov rax, qword [rsp + 0x48]
mov qword [rsi], rax
jmp 0x140041c47
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x140041c47
mov rax, qword [rax]
mov r9, qword [rsp + 0x68]
cmp r9, rax
jg 0x140041c47
lea r8, str.Rowid__lld_out_of_order__min_less_than_parent_max_of__lld_
lea rdx, [rsp + 0xb0]
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.140041030
mov rax, qword [rsp + 0x40]
mov rsi, qword [rdi + 0x70]
movzx ebx, byte [rdi + 5]
mov ecx, dword [rax + 0x34]
call fcn.14002c3d0
mov rdi, rax
test rax, rax
jne 0x140041c70
mov dword [rbp + 0x28], 1
jmp 0x140041e96
movzx ecx, byte [rbx + rsi + 5]
movzx eax, byte [rbx + rsi + 6]
mov qword [rsp + 0x40], rbx
shl ecx, 8
xor edx, edx
or ecx, eax
mov eax, dword [rsp + 0x3c]
dec ecx
movzx ecx, cx
inc ecx
sub eax, ecx
movsxd rbx, ecx
lea rcx, [rbx + rdi]
movsxd r8, eax
call fcn.1400e1fc0
mov r8, rbx
mov edx, 1
mov rcx, rdi
call fcn.1400e1fc0
mov r10, qword [rsp + 0x40]
mov r8, qword [rsp + 0x78]
movzx eax, byte [r10 + rsi + 4]
movzx r11d, byte [r10 + rsi + 3]
mov ecx, 3
shl r11d, 8
or r11d, eax
movzx eax, byte [r8 + 3]
sub ecx, eax
mov eax, r10d
movsxd rdx, r11d
lea eax, [rax + rcx*4]
xor ecx, ecx
mov qword [rsp + 0x58], rdx
movsxd r9, eax
mov dword [rsp + 0x34], ecx
test r11d, r11d
jle 0x140041dc1
mov r10d, dword [rsp + 0x3c]
lea rax, [r9 + rsi]
add r10d, 0xfffffffc
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x38], r10d
movzx ebx, byte [rax + 1]
movzx eax, byte [rax]
shl eax, 8
or ebx, eax
mov eax, 0x10000
cmp ebx, r10d
jg 0x140041d42
movsxd rdx, ebx
mov rcx, r8
add rdx, rsi
call fcn.1400366d0
mov ecx, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x58]
movzx eax, ax
lea eax, [rax + rbx - 1]
cmp eax, dword [rsp + 0x3c]
jl 0x140041d6f
mov eax, dword [rsp + 0x30]
mov r9d, ecx
lea r8, str.Corruption_detected_in_cell__d_on_page__d
xor edx, edx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call fcn.140041030
mov rdx, qword [rsp + 0x58]
jmp 0x140041d8b
cdqe
movsxd rcx, ebx
cmp rax, rcx
jl 0x140041d8b
nop dword [rax]
inc byte [rax + rdi]
dec rax
cmp rax, rcx
jge 0x140041d80
mov ecx, dword [rsp + 0x34]
mov rax, qword [rsp + 0x60]
mov r8, qword [rsp + 0x78]
mov r10d, dword [rsp + 0x38]
inc ecx
add rax, 2
sub rdx, 1
mov dword [rsp + 0x34], ecx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], rdx
jne 0x140041d12
mov r10, qword [rsp + 0x40]
movzx r8d, byte [r10 + rsi + 1]
movzx eax, byte [r10 + rsi + 2]
shl r8d, 8
or r8d, eax
jle 0x140041e1d
nop word [rax + rax]
movsxd rdx, r8d
movzx ecx, byte [rsi + rdx + 2]
movzx eax, byte [rsi + rdx + 3]
shl ecx, 8
or ecx, eax
lea eax, [rcx + r8 - 1]
movsxd rcx, eax
cmp rcx, rdx
jl 0x140041e0b
nop
inc byte [rcx + rdi]
dec rcx
cmp rcx, rdx
jge 0x140041e00
movzx eax, byte [rsi + rdx]
movzx r8d, byte [rsi + rdx + 1]
shl eax, 8
or r8d, eax
jg 0x140041de0
movsxd rdx, dword [rsp + 0x3c]
xor eax, eax
mov ebx, eax
mov r9d, eax
test rdx, rdx
jle 0x140041e6c
nop
movzx ecx, byte [rax + rdi]
test cl, cl
jne 0x140041e3c
inc ebx
jmp 0x140041e41
cmp cl, 1
jg 0x140041e4e
inc rax
inc r9d
cmp rax, rdx
jl 0x140041e30
jmp 0x140041e6c
mov eax, dword [rsp + 0x30]
lea r8, str.Multiple_uses_for_byte__d_of_page__d
xor edx, edx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call fcn.140041030
mov r10, qword [rsp + 0x40]
movzx eax, byte [r10 + rsi + 7]
cmp ebx, eax
je 0x140041e96
mov ecx, dword [rsp + 0x30]
lea r8, str.Fragmentation_of__d_bytes_reported_as__d_on_page__d
mov r9d, ebx
mov dword [rsp + 0x28], ecx
mov rcx, rbp
xor edx, edx
mov dword [rsp + 0x20], eax
call fcn.140041030
mov rcx, rdi
call fcn.14002c510
mov r10, qword [rsp + 0x78]
mov r11, qword [r10 + 0x78]
test r11, r11
je 0x140041ff8
add word [r11 + 0x2a], 0xffff
mov rbx, qword [r11 + 0x20]
jne 0x140041f8e
mov rax, qword [r11 + 0x30]
dec dword [rax + 0x18]
test byte [r11 + 0x28], 2
mov rcx, qword [r11 + 0x30]
jne 0x140041efe
cmp dword [rcx + 0x28], 0
je 0x140041f8e
cmp dword [r11 + 0x18], 1
jne 0x140041ee9
xor eax, eax
mov qword [rcx + 0x48], rax
mov rcx, qword [rcx + 0x40]
xor r8d, r8d
mov rdx, r11
call qword [0x140144150]
jmp 0x140041f8e
cmp qword [rcx + 0x10], r11
jne 0x140041f23
mov rax, qword [r11 + 0x40]
test rax, rax
je 0x140041f1f
nop dword [rax]
test byte [rax + 0x28], 4
je 0x140041f1f
mov rax, qword [rax + 0x40]
test rax, rax
jne 0x140041f10
mov qword [rcx + 0x10], rax
mov rdx, qword [r11 + 0x38]
mov rax, qword [r11 + 0x40]
test rdx, rdx
je 0x140041f36
mov qword [rdx + 0x40], rax
jmp 0x140041f3a
mov qword [rcx + 8], rax
mov rdx, qword [r11 + 0x40]
mov rax, qword [r11 + 0x38]
test rdx, rdx
je 0x140041f4d
mov qword [rdx + 0x38], rax
jmp 0x140041f50
mov qword [rcx], rax
xor eax, eax
mov qword [r11 + 0x38], rax
mov qword [r11 + 0x40], rax
mov rax, qword [r11 + 0x30]
mov rcx, qword [rax]
mov qword [r11 + 0x38], rcx
test rcx, rcx
je 0x140041f6e
mov qword [rcx + 0x40], r11
cmp qword [rax + 8], 0
mov qword [rax], r11
jne 0x140041f7c
mov qword [rax + 8], r11
cmp qword [rax + 0x10], 0
jne 0x140041f8e
test byte [r11 + 0x28], 4
jne 0x140041f8e
mov qword [rax + 0x10], r11
mov rax, qword [rbx + 0xe0]
cmp dword [rax + 0x18], 0
jne 0x140041ff8
movzx eax, byte [rbx + 0x13]
cmp al, 6
je 0x140041ff0
test al, al
je 0x140041ff0
cmp al, 2
jb 0x140041fe0
mov rax, qword [0x14014dd08]
test rax, rax
je 0x140041fb9
call rax
mov rcx, rbx
call fcn.1400320d0
mov r11, qword [0x14014dd10]
test r11, r11
je 0x140041ff0
call r11
mov rcx, rbx
call fcn.14002e360
mov eax, dword [rsp + 0x50]
inc eax
jmp 0x14004201c
cmp byte [rbx + 8], 0
jne 0x140041ff0
xor edx, edx
mov rcx, rbx
call fcn.14002e4b0
mov rcx, rbx
call fcn.14002e360
mov eax, dword [rsp + 0x50]
inc eax
jmp 0x14004201c
lea r8, str.unable_to_get_the_page._error_code_d
lea rdx, [rsp + 0xb0]
mov r9d, edi
mov rcx, rbp
call fcn.140041030
xor eax, eax
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1400e2890
add rsp, 0x138
pop rdi
pop rsi
pop rbp
pop rbx
ret