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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xc8
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax]
mov qword [rsp + 0xa0], rax
xor eax, eax
mov word [rsp + 0x38], ax
mov dword [rsp + 0x5c], 0
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0xe8]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0x3c], 0
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0xd8]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x30], rax
jmp 0x14010497d
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x30]
add rax, 0x38
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xd8]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x24], eax
jge 0x140104a58
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x12]
and eax, 0xffffffbf
mov rcx, qword [rsp + 0x30]
mov word [rcx + 0x12], ax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0xe8]
mov ecx, dword [rcx + 0x44]
cmp dword [rax + 0x1c], ecx
je 0x1401049be
jmp 0x140104965
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0xe0]
mov rax, qword [rax + 0x28]
and rax, rcx
test rax, rax
je 0x1401049d9
jmp 0x140104965
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x14]
btr eax, 0xb
test eax, eax
jne 0x1401049ef
jmp 0x140104965
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x12]
and eax, 0x80
test eax, eax
je 0x140104a06
jmp 0x140104965
mov rax, qword [rsp + 0xe8]
movzx eax, byte [rax + 0x3c]
and eax, 0x58
test eax, eax
je 0x140104a34
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0x30]
call fcn.140103700
test eax, eax
jne 0x140104a34
jmp 0x140104965
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x12]
or eax, 0x40
mov rcx, qword [rsp + 0x30]
mov word [rcx + 0x12], ax
jmp 0x140104965
mov dword [rsp + 0x48], 0
cmp qword [rsp + 0x70], 0
je 0x140104c65
mov rax, qword [rsp + 0x70]
mov eax, dword [rax]
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x24], 0
jmp 0x140104a8b
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x24], eax
jge 0x140104bef
movsxd rax, dword [rsp + 0x24]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx + rax + 8]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140076240
test eax, eax
je 0x140104ac1
jmp 0x140104a81
movsxd rax, dword [rsp + 0x24]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x70]
movzx eax, byte [rcx + rax + 0x18]
and eax, 2
test eax, eax
je 0x140104ae0
jmp 0x140104bef
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax]
cmp eax, 0xa7
jne 0x140104b09
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0xe8]
mov ecx, dword [rcx + 0x44]
cmp dword [rax + 0x2c], ecx
jne 0x140104b09
jmp 0x140104a81
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax]
cmp eax, 0x71
jne 0x140104be8
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
movzx eax, byte [rax]
cmp eax, 0xa7
jne 0x140104be8
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0xe8]
mov ecx, dword [rcx + 0x44]
cmp dword [rax + 0x2c], ecx
jne 0x140104be8
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x30]
mov dword [rax + 0x30], ecx
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x30], 0
jge 0x140104b83
jmp 0x140104a81
mov rax, qword [rsp + 0x80]
movsxd rax, dword [rax + 0x30]
imul rax, rax, 0x18
mov rcx, qword [rsp + 0xb0]
add rax, qword [rcx + 8]
mov rcx, rax
call fcn.14005c0d0
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0
jne 0x140104bc9
lea rax, [0x140181e04]
mov qword [rsp + 0x98], rax
mov rdx, qword [rsp + 0x98]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 8]
call sym.sqlite3.exe_sqlite3_stricmp
test eax, eax
jne 0x140104be8
jmp 0x140104a81
jmp 0x140104bef
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x24], eax
jne 0x140104c65
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0xd0]
movzx eax, word [rax + 0x3c]
and eax, 0x80
test eax, eax
je 0x140104c4a
mov rax, qword [rsp + 0xd0]
movzx eax, word [rax + 0x3c]
and eax, 0x200
test eax, eax
je 0x140104c35
mov dword [rsp + 0x78], 1
jmp 0x140104c3d
mov dword [rsp + 0x78], 0
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x5c], eax
jmp 0x140104c65
mov rax, qword [rsp + 0xd0]
movzx eax, word [rax + 0x3c]
and eax, 0x40
test eax, eax
je 0x140104c65
mov dword [rsp + 0x5c], 1
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x14
movsxd rcx, dword [rsp + 0x48]
lea rax, [rax + rcx*8 + 0x60]
movsxd rcx, dword [rsp + 0x3c]
lea rax, [rax + rcx*8 + 0x28]
mov rdx, rax
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax]
call fcn.140051f40
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x140104cbd
lea rdx, str.out_of_memory
mov rcx, qword [rsp + 0xa0]
call fcn.1400530c0
xor eax, eax
jmp 0x140105091
mov eax, 0x60
imul rax, rax, 1
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
movsxd rax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x68]
lea rax, [rcx + rax*8 + 0x20]
mov qword [rsp + 0x40], rax
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
movsxd rax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x88]
lea rax, [rcx + rax*8]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x88]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0xb8]
mov qword [rax + 0x20], rcx
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0xd8]
mov qword [rax], rcx
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0xa0]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x68]
mov ecx, dword [rsp + 0x5c]
mov dword [rax + 0x10], ecx
mov rax, qword [rsp + 0x68]
mov dword [rax + 0x14], 0
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0xd8]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x30], rax
jmp 0x140104dc3
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x30]
add rax, 0x38
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xd8]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x24], eax
jge 0x140104fc0
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x12]
and eax, 0x40
test eax, eax
jne 0x140104dea
jmp 0x140104dab
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x30]
mov edx, dword [rdx + 0x20]
mov dword [rcx + rax], edx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x40]
mov edx, dword [rsp + 0x24]
mov dword [rcx + rax + 8], edx
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x14]
and eax, 0x3fff
mov word [rsp + 0x28], ax
movzx eax, word [rsp + 0x28]
cmp eax, 1
jne 0x140104e99
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x12]
and eax, 0x8000
test eax, eax
jne 0x140104e8f
cmp dword [rsp + 0x20], 0x1f
jg 0x140104e71
mov eax, dword [rsp + 0x20]
mov ecx, 1
mov dword [rsp + 0x90], ecx
movzx ecx, al
mov eax, dword [rsp + 0x90]
shl eax, cl
mov dword [rsp + 0x7c], eax
jmp 0x140104e79
mov dword [rsp + 0x7c], 0
mov rax, qword [rsp + 0x68]
mov ecx, dword [rsp + 0x7c]
mov eax, dword [rax + 0x14]
or eax, ecx
mov rcx, qword [rsp + 0x68]
mov dword [rcx + 0x14], eax
mov eax, 2
mov word [rsp + 0x28], ax
movzx eax, word [rsp + 0x28]
cmp eax, 0x40
jne 0x140104ec3
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x30]
movzx edx, byte [rdx + 0x17]
mov byte [rcx + rax + 4], dl
jmp 0x140104fb1
movzx eax, word [rsp + 0x28]
and eax, 0x180
test eax, eax
je 0x140104f0a
movzx eax, word [rsp + 0x28]
cmp eax, 0x100
jne 0x140104ef2
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x40]
mov byte [rcx + rax + 4], 0x47
jmp 0x140104f05
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x40]
mov byte [rcx + rax + 4], 0x48
jmp 0x140104fb1
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x40]
movzx edx, byte [rsp + 0x28]
mov byte [rcx + rax + 4], dl
movzx eax, word [rsp + 0x28]
and eax, 0x3c
test eax, eax
je 0x140104fb1
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov rcx, qword [rax + 0x18]
call fcn.14008e970
test eax, eax
je 0x140104fb1
cmp dword [rsp + 0x20], 0x10
jge 0x140104f77
mov eax, dword [rsp + 0x20]
mov ecx, 1
mov dword [rsp + 0x94], ecx
movzx ecx, al
mov eax, dword [rsp + 0x94]
shl eax, cl
movzx ecx, word [rsp + 0x38]
or ecx, eax
mov eax, ecx
mov word [rsp + 0x38], ax
movzx eax, word [rsp + 0x28]
cmp eax, 0x10
jne 0x140104f94
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x40]
mov byte [rcx + rax + 4], 8
movzx eax, word [rsp + 0x28]
cmp eax, 4
jne 0x140104fb1
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x40]
mov byte [rcx + rax + 4], 0x20
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
jmp 0x140104dab
mov rax, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x20]
mov dword [rax], ecx
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x24], eax
jmp 0x140104fe7
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x24], eax
jge 0x140105070
movsxd rax, dword [rsp + 0x24]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx + rax + 8]
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0xa8]
call fcn.140076240
test eax, eax
je 0x14010501f
jmp 0x140104fdd
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x88]
mov rdx, qword [rsp + 0xa8]
mov edx, dword [rdx + 0x30]
mov dword [rcx + rax*8], edx
movsxd rax, dword [rsp + 0x24]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x70]
movzx eax, byte [rcx + rax + 0x18]
and eax, 1
movsxd rcx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x88]
mov byte [rdx + rcx*8 + 4], al
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
jmp 0x140104fdd
mov rax, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x20]
mov dword [rax + 0x10], ecx
mov rax, qword [rsp + 0xf0]
movzx ecx, word [rsp + 0x38]
mov word [rax], cx
mov rax, qword [rsp + 0x50]
add rsp, 0xc8
ret