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

Disassembly:
mov qword [rsp + 0x20], r9
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x38]
sub rsp, 0x138
mov r15, qword [rdx]
movsxd rdi, r8d
mov r14, rcx
xor ecx, ecx
lea rsi, [rdi + 2]
mov rbx, rdx
shl rsi, 4
mov qword [rbp + 0x10], r15
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x68], rsi
test r9, r9
je 0x1801148bf
mov eax, dword [r9]
mov dword [rsp + 0x58], eax
jmp 0x1801148c3
mov dword [rsp + 0x58], ecx
mov rax, qword [r14]
xor edx, edx
mov dword [rbp - 0x80], ecx
movsxd r13, dword [rax + 0x5c]
lea r8d, [rdx + 0x78]
lea rcx, [rbp - 0x70]
call fcn.18012d640
mov esi, dword [rsi + r15]
xor r12d, r12d
mov qword [rsp + 0x60], r12
mov qword [rbp + 0x28], r12
mov dword [rbp + 0x90], esi
test esi, esi
je 0x18011494a
lea eax, [rdi + 1]
lea rdx, [rbp - 0x70]
movsxd rcx, eax
add rcx, 2
add rcx, rcx
lea rax, [r15 + rcx*8 + 4]
mov qword [rsp + 0x78], rax
mov eax, dword [rax]
dec eax
movsxd rbx, eax
imul rbx, rbx, 0x38
add rbx, qword [r15 + rcx*8 + 8]
mov rcx, r14
mov r8d, dword [rbx]
mov qword [rsp + 0x70], rbx
call fcn.1801141c0
mov r11d, dword [rbx + 8]
mov rdx, qword [rsp + 0x78]
inc r11d
mov dword [rbp], r12d
mov dword [rbp - 0x68], r11d
jmp 0x180114a2d
mov rdx, r15
mov rcx, r14
call fcn.180113360
mov ecx, dword [r15 + 0x1c]
dec ecx
mov r12d, eax
cmp edi, ecx
jne 0x180114975
lea rcx, [r14 + 0x3c]
mov rdx, rbx
call fcn.18010df50
mov r15, qword [rbx]
mov qword [rbp + 0x10], r15
lea esi, [rdi + 1]
lea rcx, [r14 + 0x3c]
xor r9d, r9d
mov r8d, esi
mov rdx, r15
call fcn.18010dfe0
cmp dword [r14 + 0x3c], 0
jne 0x180115023
movsxd rbx, esi
lea rdx, [rbp - 0x70]
mov r8d, r12d
add rbx, 2
mov rcx, r14
add rbx, rbx
call fcn.1801141c0
movsxd rax, dword [r15 + rbx*8 + 4]
mov rsi, qword [rsp + 0x68]
lea rdx, [r15 + rbx*8 + 4]
mov rcx, rax
imul rcx, rcx, 0x38
add rcx, qword [r15 + rbx*8 + 8]
inc eax
mov dword [rdx], eax
mov dword [rcx], r12d
mov r12, qword [rsp + 0x60]
mov dword [rcx + 4], 1
inc dword [r15 + 0x18]
cmp qword [r15 + 0x10], 0
mov eax, dword [rsi + r15 + 4]
mov qword [rsp + 0x78], rdx
mov qword [rsp + 0x70], rcx
mov dword [rbp + 0x90], eax
mov rbx, rcx
jbe 0x180114a2b
mov rax, qword [rsi + r15 + 8]
mov rcx, qword [rax + 0x10]
mov qword [rbx + 0x10], rcx
movsxd rcx, dword [rsi + r15 + 4]
mov rax, qword [rsi + r15 + 8]
mov esi, dword [rbp + 0x90]
imul rcx, rcx, 0x38
mov rcx, qword [rcx + rax - 0x20]
mov qword [rbx + 0x18], rcx
jmp 0x180114a2d
mov esi, eax
cmp dword [rdx], 1
jne 0x180114a42
lea eax, [rdi + 2]
cmp dword [r15 + 0x1c], eax
jne 0x180114a42
mov ebx, 1
jmp 0x180114a44
xor ebx, ebx
lea rax, [rsp + 0x50]
xor r9d, r9d
mov rdx, r15
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], edi
lea r8d, [r9 + 0x20]
mov rcx, r14
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call fcn.180112e30
movsxd r9, ebx
mov rbx, qword [rsp + 0x50]
mov rcx, r14
mov qword [rbp - 0x78], r9
mov rdx, rbx
mov qword [rbp + 0x18], r13
call fcn.1801132a0
test eax, eax
jne 0x180114ec7
mov r8d, dword [rbp + 0x2c]
mov edx, dword [rbp + 0x28]
mov r15d, dword [rbp - 0x80]
mov dword [rbp + 0x88], r8d
mov dword [rbp + 0x80], edx
nop word [rax + rax]
mov rax, qword [rbx + 0x58]
movzx ecx, word [rax + 4]
imul rcx, rcx, 0x88
lea r13, [rcx + rbx + 0x60]
mov edi, dword [r13 + 0x70]
mov rsi, qword [r13 + 0x68]
cmp edi, edx
jne 0x180114b05
test edi, edi
jle 0x180114b98
movsxd r8, edi
mov rdx, r12
mov rcx, rsi
call fcn.180136a90
test eax, eax
je 0x180114b94
mov r8d, dword [rbp + 0x88]
cmp qword [rbp + 0x98], 0
je 0x180114b1c
mov eax, dword [rsp + 0x58]
cmp dword [rbp - 0x24], eax
jg 0x180114ebd
xor eax, eax
mov dword [rbp + 0x80], eax
test edi, edi
je 0x180114b8c
cmp edi, r8d
jbe 0x180114b78
test r8d, r8d
mov eax, 0x40
cmovne eax, r8d
movsxd rbx, eax
cmp rbx, rdi
jae 0x180114b49
add rbx, rbx
cmp rbx, rdi
jb 0x180114b41
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
jne 0x180114c5d
mov rdx, rbx
mov rcx, r12
call fcn.18000b2e0
test rax, rax
je 0x180114c5d
mov dword [rbp + 0x88], ebx
mov r12, rax
mov qword [rsp + 0x60], rax
mov r8, rdi
mov rdx, rsi
mov rcx, r12
call fcn.1801278d0
mov dword [rbp + 0x80], edi
mov rbx, qword [rsp + 0x50]
xor r15d, r15d
mov r9, qword [rbp - 0x78]
cmp dword [r13 + 0x80], 0
jne 0x180114bb8
test r9, r9
jne 0x180114e83
cmp byte [r13 + 0x84], r9b
je 0x180114e83
cmp dword [r14 + 0x3c], 0
jne 0x180114bdc
test r15d, r15d
jne 0x180114bdc
lea rdx, [rbp - 0x70]
mov r9, rsi
mov r8d, edi
mov rcx, r14
call fcn.180113c80
mov r15d, 1
mov rax, qword [rbx + 0x58]
movzx ecx, word [rax + 4]
imul rcx, rcx, 0x88
cmp dword [r14 + 0x3c], 0
mov rbx, qword [rcx + rbx + 0xd8]
jne 0x180114c84
mov edx, dword [rbp - 0x48]
mov rax, qword [r14]
add edx, dword [rbp - 0x58]
cmp edx, dword [rax + 0x88]
jl 0x180114c1b
lea rdx, [rbp - 0x70]
mov rcx, r14
call fcn.180113b30
movzx eax, byte [rbp - 0x27]
test al, al
je 0x180114c4a
movzx edx, word [rbp - 0x58]
mov rcx, qword [rbp - 0x60]
mov r8, rbx
movzx eax, dx
mov byte [rcx + 1], dl
lea rdx, [rbp - 0x70]
shr ax, 8
mov byte [rcx], al
mov rcx, r14
call fcn.180113910
movzx eax, byte [rbp - 0x27]
cmp byte [rbp - 0x28], 0
jne 0x180114c6a
test al, al
jne 0x180114c6a
mov r8, rbx
sub r8, qword [rbp - 0x30]
jmp 0x180114c6d
mov dword [r14 + 0x3c], 7
jmp 0x180114b8c
mov r8, rbx
lea rdx, [rbp - 0x60]
lea rcx, [r14 + 0x3c]
call fcn.180104f40
mov qword [rbp - 0x30], rbx
mov word [rbp - 0x28], 0
cmp qword [rbp + 0x18], 1
jne 0x180114da1
cmp byte [r13 + 0x84], 0
je 0x180114e7e
mov eax, dword [rbp - 0x58]
mov ecx, dword [rbp - 0x54]
lea edx, [rax + 9]
cmp ecx, edx
jae 0x180114d01
mov eax, 0x40
test ecx, ecx
cmovne eax, ecx
movsxd rbx, eax
mov eax, edx
cmp rbx, rax
jae 0x180114cc8
nop
add rbx, rbx
cmp rbx, rax
jb 0x180114cc0
mov rdi, qword [rbp - 0x60]
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
jne 0x180114cf4
mov rdx, rbx
mov rcx, rdi
call fcn.18000b2e0
mov r11, rax
test rax, rax
je 0x180114cf4
mov qword [rbp - 0x60], rax
mov eax, dword [rbp - 0x58]
mov dword [rbp - 0x54], ebx
jmp 0x180114d05
mov eax, dword [rbp - 0x58]
mov dword [r14 + 0x3c], 7
jmp 0x180114d14
mov r11, qword [rbp - 0x60]
cdqe
mov byte [rax + r11], 0
mov eax, dword [rbp - 0x58]
inc eax
mov dword [rbp - 0x58], eax
cmp dword [r13 + 0x80], 0
jle 0x180114e7e
mov ecx, dword [rbp - 0x54]
lea edx, [rax + 9]
cmp ecx, edx
jae 0x180114d8e
mov eax, 0x40
test ecx, ecx
cmovne eax, ecx
movsxd rbx, eax
mov eax, edx
cmp rbx, rax
jae 0x180114d48
add rbx, rbx
cmp rbx, rax
jb 0x180114d40
mov rdi, qword [rbp - 0x60]
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
jne 0x180114d81
mov rdx, rbx
mov rcx, rdi
call fcn.18000b2e0
mov r11, rax
test rax, rax
je 0x180114d81
mov qword [rbp - 0x60], rax
mov eax, dword [rbp - 0x58]
mov dword [rbp - 0x54], ebx
cdqe
mov byte [rax + r11], 0
inc dword [rbp - 0x58]
jmp 0x180114e7e
mov dword [r14 + 0x3c], 7
jmp 0x180114e7e
mov r11, qword [rbp - 0x60]
cdqe
mov byte [rax + r11], 0
inc dword [rbp - 0x58]
jmp 0x180114e7e
movzx ecx, byte [r13 + 0x84]
mov eax, dword [r13 + 0x80]
mov r8d, dword [rbp - 0x58]
lea ecx, [rcx + rax*2]
lea edx, [r8 + 9]
movsxd rdi, ecx
mov ecx, dword [rbp - 0x54]
cmp ecx, edx
jae 0x180114e1c
mov eax, 0x40
test ecx, ecx
cmovne eax, ecx
movsxd rbx, eax
mov eax, edx
cmp rbx, rax
jae 0x180114de8
nop dword [rax]
add rbx, rbx
cmp rbx, rax
jb 0x180114de0
mov rsi, qword [rbp - 0x60]
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
jne 0x180114e12
mov rdx, rbx
mov rcx, rsi
call fcn.18000b2e0
test rax, rax
je 0x180114e12
mov r8d, dword [rbp - 0x58]
mov dword [rbp - 0x54], ebx
mov qword [rbp - 0x60], rax
jmp 0x180114e20
mov dword [r14 + 0x3c], 7
jmp 0x180114e68
mov rax, qword [rbp - 0x60]
movsxd rcx, r8d
add rcx, rax
cmp rdi, 0x7f
ja 0x180114e3a
and dil, 0x7f
mov eax, 1
mov byte [rcx], dil
jmp 0x180114e65
cmp rdi, 0x3fff
ja 0x180114e5d
mov rax, rdi
shr rax, 7
or al, 0x80
and dil, 0x7f
mov byte [rcx], al
mov byte [rcx + 1], dil
mov eax, 2
jmp 0x180114e65
mov rdx, rdi
call fcn.180125ca0
add dword [rbp - 0x58], eax
lea r9, [0x180114860]
lea r8, [rbp - 0x70]
mov rdx, r13
mov rcx, r14
call fcn.180112650
mov rbx, qword [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, r14
call fcn.180111fe0
mov rdx, rbx
mov rcx, r14
call fcn.1801132a0
mov r12, qword [rsp + 0x60]
mov edx, dword [rbp + 0x80]
mov r8d, dword [rbp + 0x88]
mov r9, qword [rbp - 0x78]
test eax, eax
je 0x180114ac0
mov r15, qword [rbp + 0x10]
mov esi, dword [rbp + 0x90]
mov r12, qword [rsp + 0x70]
lea rdx, [rbp - 0x70]
mov rcx, r14
add r12, 8
mov r8, r12
mov qword [rbp + 0x80], r12
call fcn.180114000
cmp dword [r14 + 0x3c], 0
jne 0x180114f0d
cmp byte [rbx + 0x14], 0
jne 0x180114f0d
mov rdx, rbx
mov rcx, r14
call fcn.1801142b0
mov r13, qword [rsp + 0x68]
mov dword [r13 + r15], esi
jmp 0x180114fa5
mov r13, qword [rsp + 0x68]
movsxd rsi, esi
test rsi, rsi
jle 0x180114f53
mov r12, qword [rsp + 0x70]
xor ebx, ebx
mov rdi, rsi
mov rax, qword [r13 + r15 + 8]
mov rcx, r14
lea rdx, [rbx + rax]
mov rax, qword [rbx + rax + 0x30]
sub rax, qword [rdx + 0x28]
add qword [r12 + 0x30], rax
call fcn.18010d600
add rbx, 0x38
dec rdi
jne 0x180114f24
mov r12, qword [rbp + 0x80]
mov eax, dword [r13 + r15 + 4]
mov ebx, dword [rbp + 0x90]
cmp eax, ebx
je 0x180114f7c
mov rcx, qword [r13 + r15 + 8]
imul rsi, rsi, 0x38
sub eax, ebx
lea rdx, [rcx + rsi]
imul eax, eax, 0x38
movsxd r8, eax
call fcn.1801278d0
sub dword [r15 + 0x18], ebx
sub dword [r13 + r15 + 4], ebx
mov rbx, qword [rsp + 0x50]
mov dword [r13 + r15], 0
cmp dword [r12], 0
jne 0x180114fa5
mov rax, qword [rsp + 0x78]
dec dword [rax]
dec dword [r15 + 0x18]
mov rcx, rbx
call fcn.180111770
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x180115012
cmp dword [0x180171920], 0
je 0x180115009
mov rcx, qword [0x1801811a8]
test rcx, rcx
je 0x180114fd2
call qword [0x1801719a0]
mov rcx, rbx
call qword [0x180171958]
dec qword [0x180181138]
mov rcx, rbx
movsxd rdx, eax
sub qword [0x1801810f0], rdx
call qword [0x180171948]
mov rcx, qword [0x1801811a8]
test rcx, rcx
je 0x180115012
call qword [0x1801719b0]
jmp 0x180115012
mov rcx, rbx
call qword [0x180171948]
mov rcx, qword [rbp + 0x98]
test rcx, rcx
je 0x180115023
mov eax, dword [rbp - 0x24]
sub dword [rcx], eax
add rsp, 0x138
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret