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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
movzx eax, byte [rcx]
mov r15, qword [rcx + 8]
test al, al
mov rbx, rcx
mov esi, edx
mov r12, qword [r15 + 8]
je 0x1401b0ab9
cmp al, 2
jbe 0x1401b0dd8
call fcn.1401b0790
test eax, eax
mov dword [rsp + 0x5c], eax
jne 0x1401b0d0c
cmp byte [rbx], 0
jne 0x1401b0d0c
movzx eax, byte [rbx + 0x54]
mov r13, qword [rbx + 0x88]
movzx ebp, word [rbx + 0x56]
mov byte [rsp + 0x3c], al
movzx eax, word [r13 + 0x18]
mov edi, ebp
cmp bp, ax
jae 0x1401b0f20
mov rdx, qword [r13 + 0x60]
lea ecx, [rbp + rbp]
movsxd rcx, ecx
movzx r14d, word [rdx + rcx]
mov ecx, dword [r13 + 0x14]
rol r14w, 8
and r14w, word [r13 + 0x1a]
movzx r14d, r14w
add r14, qword [r13 + 0x50]
test ecx, ecx
js 0x1401b0d78
add rdx, rax
cmp r14, rdx
jb 0x1401b0f50
and esi, 2
movzx eax, byte [r13 + 8]
jne 0x1401b0d20
cmp byte [r13 + 8], 0
movzx eax, byte [rbx + 1]
je 0x1401b0e38
test al, 0x20
jne 0x1401b0e80
cmp qword [rbx + 0x80], 0
je 0x1401b0ea8
mov rcx, qword [r13 + 0x70]
call fcn.1401a73f0
test eax, eax
mov dword [rsp + 0x5c], eax
jne 0x1401b0d0c
lea r8, [rsp + 0x60]
mov rdx, r14
mov rcx, r13
call qword [r13 + pe_nt_image_headers64]
movzx edx, word [rsp + 0x74]
mov r9d, dword [rsp + 0x70]
mov eax, edx
cmp edx, r9d
jne 0x1401b0da0
mov dword [rsp + 0x5c], 0
movzx r8d, word [rsp + 0x76]
lea r14, [rsp + 0x5c]
mov edx, ebp
mov rcx, r13
mov r9, r14
call fcn.140190a10
mov eax, dword [rsp + 0x5c]
test eax, eax
jne 0x1401b0d0c
mov r15, qword [rbx + 0x88]
cmp byte [r13 + 8], 0
mov eax, dword [r15 + 0x14]
jne 0x1401b0cb1
test eax, eax
js 0x1401b10b0
movsx edx, byte [rbx + 0x54]
movsx eax, byte [rsp + 0x3c]
sub edx, 1
cmp edx, eax
jg 0x1401b0fa0
mov rax, qword [rbx + 0x88]
mov eax, dword [rax + 4]
mov dword [rsp + 0x48], eax
movzx edx, word [r15 + 0x18]
mov rcx, qword [r15 + 0x60]
mov rax, qword [r15 + 0x50]
lea edx, [rdx + rdx - 2]
movsxd rdx, edx
movzx edx, word [rcx + rdx]
rol dx, 8
and dx, word [r15 + 0x1a]
movzx edx, dx
add rdx, rax
add rax, 4
cmp rdx, rax
jb 0x1401b1110
mov qword [rsp + 0x40], rdx
mov rcx, r15
call qword [r15 + 0x78]
mov rcx, qword [r15 + 0x70]
mov r12, qword [r12 + 0x88]
mov word [rsp + 0x4e], ax
call fcn.1401a73f0
mov rdx, qword [rsp + 0x40]
test eax, eax
mov dword [rsp + 0x5c], eax
jne 0x1401b0d0c
mov eax, dword [rsp + 0x48]
lea r8, [rdx - 4]
mov qword [rsp + 0x20], r12
mov edx, ebp
movzx r10d, word [rsp + 0x4e]
mov rcx, r13
mov dword [rsp + 0x28], eax
lea r9d, [r10 + 4]
mov dword [rsp + 0x40], r10d
call fcn.1401abae0
movzx edx, word [r15 + 0x18]
mov dword [rsp + 0x5c], eax
sub edx, 1
test eax, eax
jne 0x1401b0d0c
mov r8d, dword [rsp + 0x40]
mov r9, r14
mov rcx, r15
call fcn.140190a10
mov eax, dword [rsp + 0x5c]
test eax, eax
jne 0x1401b0d0c
mov r15, qword [rbx + 0x88]
mov eax, dword [r15 + 0x14]
lea edx, [rax + rax*2]
mov rax, qword [rbx + 0x20]
mov eax, dword [rax + 0x38]
add eax, eax
cmp edx, eax
jg 0x1401b0f80
mov dword [rsp + 0x5c], 0
movzx eax, byte [rsp + 0x3c]
cmp al, byte [rbx + 0x54]
jl 0x1401b1038
cmp sil, 2
jne 0x1401b0fc0
mov byte [rbx], 2
movzx eax, word [r13 + 0x18]
cmp di, ax
jb 0x1401b1100
sub eax, 1
mov dword [rbx + 4], 0xffffffff
mov word [rbx + 0x56], ax
mov eax, dword [rsp + 0x5c]
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
test al, al
je 0x1401b0e10
mov esi, dword [r13 + 0x14]
mov rdx, r14
mov rcx, r13
call qword [r13 + 0x78]
mov ecx, 0xaaaaaaab
movzx eax, ax
lea edx, [rsi + rax + 1]
mov eax, dword [r12 + 0x38]
add eax, eax
mov eax, eax
imul rax, rcx
shr rax, 0x21
cmp edx, eax
jge 0x1401b0e10
cmp word [r13 + 0x18], 1
je 0x1401b0e10
mov esi, 2
jmp 0x1401b0b24
mov rcx, r13
call fcn.14018f040
test eax, eax
jne 0x1401b10d0
mov rdx, qword [r13 + 0x60]
movzx eax, word [r13 + 0x18]
jmp 0x1401b0b0a
movzx r8d, word [rsp + 0x76]
mov rdx, qword [r13 + 0x58]
mov rcx, qword [r13 + 0x48]
mov word [rsp + 0x20], ax
mov word [rsp + 0x28], r8w
mov r8, r14
call fcn.1401ab8d0
test eax, eax
mov dword [rsp + 0x5c], eax
jne 0x1401b0d0c
jmp 0x1401b0b8d
lea rax, [0x1403a344c]
mov r9d, 0x137c5
mov ecx, 0xb
mov qword [rsp + 0x20], rax
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
call fcn.14018e940
mov eax, 0xb
jmp 0x1401b0d0c
mov rcx, rbx
mov esi, 1
call fcn.1401aeb70
test eax, eax
mov dword [rsp + 0x5c], eax
jne 0x1401b0d0c
cmp byte [r13 + 8], 0
movzx eax, byte [rbx + 1]
jne 0x1401b0b33
and eax, 0xfffffff1
xor edx, edx
cmp byte [rbx], 0
mov byte [rbx + 1], al
mov word [rbx + 0x46], dx
jne 0x1401b0f00
movzx edx, word [rbx + 0x56]
test dx, dx
je 0x1401b0f00
mov rcx, qword [rbx + 0x88]
cmp byte [rcx + 8], 0
je 0x1401b0f00
sub edx, 1
mov dword [rsp + 0x5c], 0
mov word [rbx + 0x56], dx
jmp 0x1401b0b33
mov edx, dword [rbx + 0x50]
mov r8, rbx
mov rcx, qword [r12 + 0x10]
call fcn.1401aed60
test eax, eax
mov dword [rsp + 0x5c], eax
je 0x1401b0b3b
jmp 0x1401b0d0c
cmp byte [r15 + 0x13], 0
je 0x1401b0b49
mov rax, qword [r15 + 8]
mov rcx, qword [rbx + 0x30]
mov edx, dword [rbx + 0x50]
mov byte [r15 + 0x13], 0
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1401b0ee5
jmp 0x1401b0b49
mov rax, qword [rax + 0x28]
test rax, rax
je 0x1401b0b49
test byte [rax + 1], 0x10
je 0x1401b0ed8
mov byte [r15 + 0x13], 1
cmp edx, dword [rax + 0x50]
jne 0x1401b0ed8
cmp rcx, qword [rax + 0x30]
jne 0x1401b0ed8
mov byte [rax], 1
jmp 0x1401b0ed8
mov rcx, rbx
call fcn.1401b08a0
test eax, eax
mov dword [rsp + 0x5c], eax
jne 0x1401b0d0c
movzx eax, byte [rbx + 1]
jmp 0x1401b0b33
lea rax, [0x1403a344c]
mov r9d, 0x137ce
mov ecx, 0xb
mov qword [rsp + 0x20], rax
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
call fcn.14018e940
jmp 0x1401b0e02
lea rax, [0x1403a344c]
mov r9d, 0x137d5
mov ecx, 0xb
mov qword [rsp + 0x20], rax
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
call fcn.14018e940
jmp 0x1401b0e02
mov rcx, rbx
call fcn.1401adcf0
test eax, eax
mov dword [rsp + 0x5c], eax
jne 0x1401b0d0c
jmp 0x1401b0cd1
add eax, 1
cdqe
mov rax, qword [rbx + rax*8 + 0x90]
mov eax, dword [rax + 4]
mov dword [rsp + 0x48], eax
jmp 0x1401b0bf1
mov rcx, rbx
call fcn.140192a70
test sil, sil
mov dword [rsp + 0x5c], eax
je 0x1401b1024
cmp byte [rbx + 0x54], 0
js 0x1401b1021
mov esi, 0
je 0x1401b1005
nop
mov rdx, qword [rbx + rsi*8 + 0x90]
mov dword [rsp + 0x3c], eax
add rsi, 1
mov rcx, qword [rdx + 0x70]
call fcn.140153770
movsx edx, byte [rbx + 0x54]
mov eax, dword [rsp + 0x3c]
cmp edx, esi
jg 0x1401b0fe0
mov rdx, qword [rbx + 0x88]
mov dword [rsp + 0x3c], eax
mov rcx, qword [rdx + 0x70]
call fcn.140153770
mov eax, dword [rsp + 0x3c]
mov byte [rbx + 0x54], 0xff
mov byte [rbx], 3
xor edx, edx
cmp eax, 0x10
cmove eax, edx
jmp 0x1401b0d0c
mov rax, qword [rbx + 0x88]
mov rcx, qword [rax + 0x70]
call fcn.140153770
movzx eax, byte [rbx + 0x54]
sub eax, 1
mov byte [rbx + 0x54], al
jmp 0x1401b1074
lea ecx, [rax - 1]
sub rax, 1
test rdx, rdx
mov byte [rbx + 0x54], cl
je 0x1401b1078
mov rcx, qword [rdx + 0x70]
call fcn.140153770
movzx eax, byte [rbx + 0x54]
movsx rax, al
cmp byte [rsp + 0x3c], al
mov rdx, qword [rbx + rax*8 + 0x90]
jl 0x1401b1058
mov qword [rbx + 0x88], rdx
mov rcx, rbx
call fcn.1401adcf0
test eax, eax
mov dword [rsp + 0x5c], eax
je 0x1401b0cdf
jmp 0x1401b0d0c
mov rcx, r15
call fcn.14018f040
test eax, eax
mov dword [rsp + 0x5c], eax
je 0x1401b0bcf
jmp 0x1401b0d0c
lea rax, [0x1403a344c]
mov r9d, 0x137d2
mov ecx, 0xb
mov qword [rsp + 0x20], rax
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
call fcn.14018e940
jmp 0x1401b0e02
mov eax, dword [rsp + 0x5c]
mov dword [rbx + 4], 1
jmp 0x1401b0d0c
lea rax, [0x1403a344c]
mov r9d, 0x13830
mov ecx, 0xb
mov qword [rsp + 0x20], rax
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
call fcn.14018e940
jmp 0x1401b0e02