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

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x198
mov rax, qword [0x1401b2788]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov dword [rsp + 0x2c], 0
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x24], 0xfffffff
mov dword [rsp + 0x54], 0
mov dword [rsp + 0x58], 0
mov rax, qword [rsp + 0x1a8]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x70], 0
cmp dword [rsp + 0x1b0], 0
jl 0x14000aafc
mov eax, dword [rsp + 0x1b0]
mov dword [rsp + 0x5c], eax
jmp 0x14000ab0d
mov rcx, qword [rsp + 0x1a8]
call fcn.140157e30
mov dword [rsp + 0x5c], eax
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x74], eax
mov rax, qword [rsp + 0x1a0]
cmp dword [rax + 0x3c], 0
je 0x14000abf8
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x1a0]
movzx eax, byte [rcx + rax + 0x30]
mov byte [rsp + 0x38], al
mov rax, qword [rsp + 0x1a0]
mov eax, dword [rax + 0x3c]
mov ecx, dword [rsp + 0x70]
add ecx, eax
mov eax, ecx
cmp eax, dword [rsp + 0x74]
jg 0x14000abd0
movsxd rax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x1a8]
movzx eax, byte [rcx + rax]
movzx ecx, byte [rsp + 0x38]
cmp eax, ecx
jne 0x14000abc1
mov rax, qword [rsp + 0x1a0]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x1a0]
add rcx, 0x30
movsxd rdx, dword [rsp + 0x70]
mov r8, qword [rsp + 0x1a8]
add r8, rdx
mov rdx, r8
mov qword [rsp + 0x88], rdx
mov r8, rax
mov rdx, rcx
mov rax, qword [rsp + 0x88]
mov rcx, rax
call fcn.140157ef0
test eax, eax
je 0x14000abd0
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
jmp 0x14000ab41
mov rax, qword [rsp + 0x1a0]
mov eax, dword [rax + 0x3c]
mov ecx, dword [rsp + 0x70]
add ecx, eax
mov eax, ecx
cmp eax, dword [rsp + 0x74]
jle 0x14000abf0
xor eax, eax
jmp 0x14000b21e
mov dword [rsp + 0x24], 0xffffffe
mov rax, qword [rsp + 0x1a0]
mov eax, dword [rax + 0x40]
cmp rax, 0x32
ja 0x14000ac2d
mov qword [rsp + 0x78], 0
mov eax, 0x10
imul rax, rax, 0
lea rcx, [rsp + 0xb0]
mov qword [rsp + rax + 0x98], rcx
jmp 0x14000ac71
mov rax, qword [rsp + 0x1a0]
mov eax, dword [rax + 0x40]
shl rax, 2
mov rcx, rax
call sym.sqlite3.exe_sqlite3_malloc64
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x14000ac5b
mov eax, 0xffffffff
jmp 0x14000b21e
mov eax, 0x10
imul rax, rax, 0
mov rcx, qword [rsp + 0x78]
mov qword [rsp + rax + 0x98], rcx
mov eax, 0x10
imul rax, rax, 0
mov rcx, qword [rsp + 0x1a0]
mov ecx, dword [rcx + 0x40]
mov rax, qword [rsp + rax + 0x98]
lea rax, [rax + rcx*2]
mov ecx, 0x10
imul rcx, rcx, 1
mov qword [rsp + rcx + 0x98], rax
mov eax, 0x10
imul rax, rax, 1
lea rax, [rsp + rax + 0x90]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov dword [rax], 0
xor edx, edx
mov rcx, qword [rsp + 0x30]
call fcn.14000a590
cmp dword [rsp + 0x24], 0
je 0x14000b175
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0
jbe 0x14000b175
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x54], eax
lea rcx, [rsp + 0x68]
mov rax, qword [rsp + 0x1a0]
call qword [rax + 0x28]
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x50]
imul rax, rax, 0x10
lea rax, [rsp + rax + 0x90]
mov qword [rsp + 0x30], rax
mov eax, 1
sub eax, dword [rsp + 0x50]
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x30]
mov dword [rax], 0
mov dword [rsp + 0x2c], 0
jmp 0x14000ad4f
mov eax, dword [rsp + 0x2c]
inc eax
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax]
cmp dword [rsp + 0x2c], eax
jae 0x14000b170
mov eax, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx + 8]
movzx eax, word [rcx + rax*2]
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x1a0]
mov rcx, qword [rcx + 0x18]
movsx eax, byte [rcx + rax]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
dec eax
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0x11
ja case.0x14000adb9.9
movsxd rax, dword [rsp + 0x44]
lea rcx, [0x140000000]
mov eax, dword [rcx + rax*4 + 0xb238]
add rax, rcx
jmp rax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x1a0]
mov rcx, qword [rcx + 0x20]
mov edx, dword [rsp + 0x24]
cmp dword [rcx + rax*4], edx
jne 0x14000ade7
mov eax, dword [rsp + 0x20]
inc eax
mov edx, eax
mov rcx, qword [rsp + 0x30]
call fcn.14000a590
jmp case.0x14000adb9.9
cmp dword [rsp + 0x54], 0xfffffff
jne 0x14000ae08
mov eax, dword [rsp + 0x20]
inc eax
mov edx, eax
mov rcx, qword [rsp + 0x48]
call fcn.14000a590
jmp case.0x14000adb9.9
cmp dword [rsp + 0x24], 0
je 0x14000ae26
mov eax, dword [rsp + 0x20]
inc eax
mov edx, eax
mov rcx, qword [rsp + 0x30]
call fcn.14000a590
jmp case.0x14000adb9.9
mov ecx, dword [rsp + 0x24]
call fcn.14000a990
test eax, eax
je 0x14000ae4a
mov eax, dword [rsp + 0x20]
inc eax
mov edx, eax
mov rcx, qword [rsp + 0x30]
call fcn.14000a590
jmp case.0x14000adb9.9
mov ecx, dword [rsp + 0x24]
call fcn.14000a990
test eax, eax
jne 0x14000ae75
cmp dword [rsp + 0x24], 0
je 0x14000ae75
mov eax, dword [rsp + 0x20]
inc eax
mov edx, eax
mov rcx, qword [rsp + 0x30]
call fcn.14000a590
jmp case.0x14000adb9.9
mov ecx, dword [rsp + 0x24]
call fcn.14000a9f0
test eax, eax
je 0x14000ae99
mov eax, dword [rsp + 0x20]
inc eax
mov edx, eax
mov rcx, qword [rsp + 0x30]
call fcn.14000a590
jmp case.0x14000adb9.9
mov ecx, dword [rsp + 0x24]
call fcn.14000a9f0
test eax, eax
jne 0x14000aec4
cmp dword [rsp + 0x24], 0
je 0x14000aec4
mov eax, dword [rsp + 0x20]
inc eax
mov edx, eax
mov rcx, qword [rsp + 0x30]
call fcn.14000a590
jmp case.0x14000adb9.9
mov ecx, dword [rsp + 0x24]
call fcn.14000aa30
test eax, eax
je 0x14000aee8
mov eax, dword [rsp + 0x20]
inc eax
mov edx, eax
mov rcx, qword [rsp + 0x30]
call fcn.14000a590
jmp case.0x14000adb9.9
mov ecx, dword [rsp + 0x24]
call fcn.14000aa30
test eax, eax
jne 0x14000af13
cmp dword [rsp + 0x24], 0
je 0x14000af13
mov eax, dword [rsp + 0x20]
inc eax
mov edx, eax
mov rcx, qword [rsp + 0x30]
call fcn.14000a590
jmp case.0x14000adb9.9
mov ecx, dword [rsp + 0x24]
call fcn.14000a990
mov dword [rsp + 0x80], eax
mov ecx, dword [rsp + 0x54]
call fcn.14000a990
mov ecx, dword [rsp + 0x80]
cmp ecx, eax
je 0x14000af4e
mov eax, dword [rsp + 0x20]
inc eax
mov edx, eax
mov rcx, qword [rsp + 0x48]
call fcn.14000a590
jmp case.0x14000adb9.9
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
call fcn.14000a590
mov eax, dword [rsp + 0x20]
inc eax
mov edx, eax
mov rcx, qword [rsp + 0x48]
call fcn.14000a590
jmp case.0x14000adb9.9
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x1a0]
mov rcx, qword [rcx + 0x20]
mov eax, dword [rcx + rax*4]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov edx, eax
mov rcx, qword [rsp + 0x48]
call fcn.14000a590
mov eax, dword [rsp + 0x20]
inc eax
mov edx, eax
mov rcx, qword [rsp + 0x48]
call fcn.14000a590
jmp case.0x14000adb9.9
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x1a0]
mov rcx, qword [rcx + 0x20]
mov eax, dword [rcx + rax*4]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov edx, eax
mov rcx, qword [rsp + 0x48]
call fcn.14000a590
jmp case.0x14000adb9.9
mov dword [rsp + 0x58], 1
jmp 0x14000b210
cmp dword [rsp + 0x24], 0
jne case.0x14000adb9.7
jmp case.0x14000adb9.9
mov dword [rsp + 0x28], 1
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x1a0]
mov rcx, qword [rcx + 0x20]
mov eax, dword [rcx + rax*4]
mov dword [rsp + 0x64], eax
mov dword [rsp + 0x3c], 0
mov dword [rsp + 0x28], 1
jmp 0x14000b039
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jle 0x14000b111
mov eax, dword [rsp + 0x64]
cmp dword [rsp + 0x28], eax
jge 0x14000b111
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
cdqe
mov rcx, qword [rsp + 0x1a0]
mov rcx, qword [rcx + 0x18]
movsx eax, byte [rcx + rax]
cmp eax, 9
jne 0x14000b0aa
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
cdqe
mov rcx, qword [rsp + 0x1a0]
mov rcx, qword [rcx + 0x20]
mov edx, dword [rsp + 0x24]
cmp dword [rcx + rax*4], edx
jne 0x14000b0a8
mov dword [rsp + 0x3c], 1
mov dword [rsp + 0x28], 0xffffffff
jmp 0x14000b10c
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
cdqe
mov rcx, qword [rsp + 0x1a0]
mov rcx, qword [rcx + 0x20]
mov edx, dword [rsp + 0x24]
cmp dword [rcx + rax*4], edx
jg 0x14000b102
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x28]
lea eax, [rax + rcx + 1]
cdqe
mov rcx, qword [rsp + 0x1a0]
mov rcx, qword [rcx + 0x20]
mov edx, dword [rsp + 0x24]
cmp dword [rcx + rax*4], edx
jl 0x14000b102
mov dword [rsp + 0x3c], 1
mov dword [rsp + 0x28], 0xffffffff
jmp 0x14000b10c
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
jmp 0x14000b02f
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x1a0]
mov rcx, qword [rcx + 0x18]
movsx eax, byte [rcx + rax]
cmp eax, 8
jne 0x14000b14c
cmp dword [rsp + 0x3c], 0
jne 0x14000b13c
mov dword [rsp + 0x60], 1
jmp 0x14000b144
mov dword [rsp + 0x60], 0
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
je case.0x14000adb9.9
mov eax, dword [rsp + 0x64]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov edx, eax
mov rcx, qword [rsp + 0x30]
call fcn.14000a590
jmp 0x14000ad45
jmp 0x14000accf
mov dword [rsp + 0x2c], 0
jmp 0x14000b189
mov eax, dword [rsp + 0x2c]
inc eax
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax]
cmp dword [rsp + 0x2c], eax
jae 0x14000b210
mov eax, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 8]
movzx eax, word [rcx + rax*2]
mov dword [rsp + 0x40], eax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x1a0]
mov rcx, qword [rcx + 0x18]
movsx eax, byte [rcx + rax]
cmp eax, 5
jne 0x14000b1e7
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x1a0]
mov rcx, qword [rcx + 0x20]
mov eax, dword [rcx + rax*4]
mov ecx, dword [rsp + 0x40]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x40], eax
jmp 0x14000b1ab
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x1a0]
mov rcx, qword [rcx + 0x18]
movsx eax, byte [rcx + rax]
cmp eax, 6
jne 0x14000b20b
mov dword [rsp + 0x58], 1
jmp 0x14000b210
jmp 0x14000b17f
mov rcx, qword [rsp + 0x78]
call sym.sqlite3.exe_sqlite3_free
mov eax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.140154660
add rsp, 0x198
ret