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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r15
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x1800e2008]
xor rax, rsp
mov qword [rbp - 8], rax
xor r15d, r15d
mov rbx, rcx
mov edi, r15d
cmp qword [rcx + 0x120], rdi
jne 0x180013c21
cmp byte [rcx + 0x14], dil
jne 0x180013c21
mov esi, 1
mov dword [rbp - 0x20], esi
nop dword [rax + rax]
movzx eax, byte [rbx + 0x15]
mov edi, r15d
cmp al, sil
jb 0x180013920
cmp al, 5
jne 0x180013958
cmp byte [rbx + 0x11], dil
jne 0x180013938
mov rcx, qword [rbx + 0x48]
mov edx, esi
mov rax, qword [rcx]
call qword [rax + 0x38]
mov edi, eax
test eax, eax
jne 0x180013942
cmp byte [rbx + 0x15], 5
je 0x180013942
mov byte [rbx + 0x15], sil
cmp edi, 5
jne 0x180013958
mov rcx, qword [rbx + 0xe8]
call qword [rbx + 0xe0]
test eax, eax
jne 0x180013910
test edi, edi
jne 0x180013acf
cmp byte [rbx + 0x15], sil
ja 0x180013977
lea rdx, [rbp - 0x20]
mov rcx, rbx
call fcn.1800136b0
mov esi, dword [rbp - 0x20]
mov edi, eax
test edi, edi
jne 0x180013acf
test esi, esi
je 0x180013adc
cmp byte [rbx + 0x12], r15b
je 0x18001399f
mov rcx, rbx
mov edi, 0x308
call fcn.180010de0
jmp 0x180013d55
movzx eax, byte [rbx + 0x15]
mov edi, r15d
cmp al, 4
jb 0x1800139ae
cmp al, 5
jne 0x1800139cd
cmp byte [rbx + 0x11], dil
jne 0x1800139c9
mov rcx, qword [rbx + 0x48]
mov edx, 4
mov rax, qword [rcx]
call qword [rax + 0x38]
mov edi, eax
test eax, eax
jne 0x1800139cd
mov byte [rbx + 0x15], 4
test edi, edi
jne 0x180013acf
mov rax, qword [rbx + 0x50]
cmp qword [rax], r15
jne 0x180013a76
mov rsi, qword [rbx]
lea r9, [rbp - 0x18]
mov rdx, qword [rbx + 0xd8]
xor r8d, r8d
mov rcx, rsi
call qword [rsi + 0x38]
mov edi, eax
test eax, eax
jne 0x180013a76
cmp dword [rbp - 0x18], r15d
je 0x180013a76
mov r8, qword [rbx + 0x50]
lea rax, [rbp - 0x20]
mov rdx, qword [rbx + 0xd8]
mov r9d, 0x802
mov rcx, rsi
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x20], r15d
call qword [rsi + 0x28]
mov edi, eax
test eax, eax
jne 0x180013a76
test byte [rbp - 0x20], 1
je 0x180013a76
lea rax, [0x1800cd724]
mov edi, 0xe
mov ecx, edi
mov qword [rsp + 0x20], rax
mov r9d, 0xdf5f
lea r8, str.cannot_open_file
lea rdx, str._s_at_line__d_of___.10s_
call sym.SQLite3.dll_sqlite3_log
mov rsi, qword [rbx + 0x50]
mov rax, qword [rsi]
test rax, rax
je 0x180013a76
mov rcx, rsi
call qword [rax + 8]
mov qword [rsi], r15
mov rax, qword [rbx + 0x50]
cmp qword [rax], r15
je 0x180013aa6
mov rcx, rbx
call fcn.1800126e0
mov edi, eax
test eax, eax
jne 0x180013abd
mov edx, r15d
mov rcx, rbx
cmp byte [rbx + 0x10], dl
sete dl
call fcn.180011ac0
mov edi, eax
mov byte [rbx + 0x14], r15b
jmp 0x180013ab9
cmp byte [rbx + 8], r15b
jne 0x180013ab9
mov edx, 1
mov rcx, rbx
call fcn.180010460
test edi, edi
je 0x180013adc
mov edx, edi
mov rcx, rbx
call fcn.180010f30
test edi, edi
je 0x180013d4d
mov rcx, rbx
call fcn.180010de0
jmp 0x180013d55
cmp byte [rbx + 0x10], r15b
jne 0x180013b55
cmp byte [rbx + 0x1b], r15b
je 0x180013b55
mov rcx, qword [rbx + 0x48]
lea rdx, [rbp - 0x18]
mov r9d, 0x18
mov rax, qword [rcx]
lea r8d, [r9 - 8]
call qword [rax + 0x10]
mov edi, eax
test eax, eax
je 0x180013b1b
cmp eax, 0x20a
jne 0x180013ac7
xor eax, eax
mov qword [rbp - 0x18], rax
mov ecx, eax
mov qword [rbp - 0x10], rax
jmp 0x180013b23
mov rcx, qword [rbp - 0x10]
mov rax, qword [rbp - 0x18]
cmp qword [rbx + 0x88], rax
jne 0x180013b35
cmp qword [rbx + 0x90], rcx
je 0x180013b55
mov rcx, rbx
call fcn.180010c30
cmp byte [rbx + 0x1a], r15b
je 0x180013b55
mov rcx, qword [rbx + 0x48]
xor r8d, r8d
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x90]
mov edi, r15d
cmp byte [rbx + 0x10], dil
jne 0x180013c21
mov rax, qword [rbx]
lea r9, [rbp - 0x18]
mov rdx, qword [rbx + 0x128]
xor r8d, r8d
mov rcx, rax
call qword [rax + 0x38]
mov edi, eax
test eax, eax
jne 0x180013c21
cmp dword [rbp - 0x18], r15d
je 0x180013c17
mov rax, qword [rbx + 0x120]
test rax, rax
je 0x180013ba9
cmp word [rax + 0x3c], r15w
jl 0x180013ba9
mov eax, dword [rax + 0x5c]
test eax, eax
jne 0x180013be0
jmp 0x180013bac
mov eax, r15d
mov rcx, qword [rbx + 0x48]
mov r8, qword [rcx]
test r8, r8
je 0x180013be0
lea rdx, [rbp - 0x20]
mov qword [rbp - 0x20], r15
call qword [r8 + 0x30]
mov edi, eax
test eax, eax
jne 0x180013c21
movsxd rcx, dword [rbx + 0xbc]
mov rax, qword [rbp - 0x20]
dec rax
add rax, rcx
cqo
idiv rcx
cmp eax, dword [rbx + 0xc0]
jbe 0x180013bee
mov dword [rbx + 0xc0], eax
test eax, eax
jne 0x180013c09
mov rax, qword [rbx]
xor r8d, r8d
mov rdx, qword [rbx + 0x128]
mov rcx, rax
call qword [rax + 0x30]
mov edi, eax
jmp 0x180013c21
xor edx, edx
mov rcx, rbx
call fcn.1800158c0
mov edi, eax
jmp 0x180013c21
cmp byte [rbx + 9], 5
jne 0x180013c21
mov byte [rbx + 9], r15b
mov rcx, qword [rbx + 0x120]
test rcx, rcx
je 0x180013cc6
mov qword [rsp + 0x78], r14
mov dword [rbp - 0x20], r15d
call fcn.180017e50
mov r14, qword [rbx + 0x120]
mov esi, r15d
nop dword [rax]
inc esi
lea rdx, [rbp - 0x20]
mov r9d, esi
xor r8d, r8d
mov rcx, r14
call fcn.180017b20
mov edi, eax
cmp eax, 0xffffffff
je 0x180013c50
mov r14, qword [rsp + 0x78]
test eax, eax
jne 0x180013c7a
cmp dword [rbp - 0x20], r15d
je 0x180013cc6
inc dword [rbx + 0x84]
mov rax, qword [rbx + 0x70]
test rax, rax
je 0x180013ca0
nop dword [rax]
mov dword [rax + 0x18], 1
mov rax, qword [rax + 0x40]
test rax, rax
jne 0x180013c90
mov rcx, qword [rbx + 0x118]
xor edx, edx
call fcn.18000ea80
cmp byte [rbx + 0x1a], r15b
je 0x180013cc6
mov rcx, qword [rbx + 0x48]
xor r8d, r8d
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x90]
cmp byte [rbx + 0x10], r15b
jne 0x180013ac7
cmp byte [rbx + 0x14], r15b
jne 0x180013ac7
test edi, edi
jne 0x180013acf
mov rax, qword [rbx + 0x120]
test rax, rax
je 0x180013cfe
cmp word [rax + 0x3c], r15w
jl 0x180013cfe
mov eax, dword [rax + 0x5c]
test eax, eax
jne 0x180013d39
jmp 0x180013d01
mov eax, r15d
mov rcx, qword [rbx + 0x48]
mov r8, qword [rcx]
test r8, r8
je 0x180013d39
lea rdx, [rbp - 0x18]
mov qword [rbp - 0x18], r15
call qword [r8 + 0x30]
mov edi, eax
test eax, eax
jne 0x180013ac7
movsxd rcx, dword [rbx + 0xbc]
mov rax, qword [rbp - 0x18]
dec rax
add rax, rcx
cqo
idiv rcx
cmp eax, dword [rbx + 0xc0]
jbe 0x180013d47
mov dword [rbx + 0xc0], eax
mov dword [rbx + 0x1c], eax
mov edi, r15d
mov byte [rbx + 0x14], 1
mov byte [rbx + 0x1b], 1
mov eax, edi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1800ae0b0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop rdi
pop rbp
ret