Function at 0x140101380
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 0x14010141d
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 0x1401014f8
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 0x14010145e
jmp 0x140101405
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0xe0]
mov rax, qword [rax + 0x28]
and rax, rcx
test rax, rax
je 0x140101479
jmp 0x140101405
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x14]
btr eax, 0xb
test eax, eax
jne 0x14010148f
jmp 0x140101405
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x12]
and eax, 0x80
test eax, eax
je 0x1401014a6
jmp 0x140101405
mov rax, qword [rsp + 0xe8]
movzx eax, byte [rax + 0x3c]
and eax, 0x58
test eax, eax
je 0x1401014d4
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0x30]
call fcn.1401001b0
test eax, eax
jne 0x1401014d4
jmp 0x140101405
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 0x140101405
mov dword [rsp + 0x48], 0
cmp qword [rsp + 0x70], 0
je 0x140101705
mov rax, qword [rsp + 0x70]
mov eax, dword [rax]
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x24], 0
jmp 0x14010152b
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x24], eax
jge 0x14010168f
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.140074160
test eax, eax
je 0x140101561
jmp 0x140101521
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 0x140101580
jmp 0x14010168f
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax]
cmp eax, 0xa7
jne 0x1401015a9
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0xe8]
mov ecx, dword [rcx + 0x44]
cmp dword [rax + 0x2c], ecx
jne 0x1401015a9
jmp 0x140101521
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax]
cmp eax, 0x71
jne 0x140101688
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 0x140101688
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0xe8]
mov ecx, dword [rcx + 0x44]
cmp dword [rax + 0x2c], ecx
jne 0x140101688
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 0x140101623
jmp 0x140101521
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.14005a1b0
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0
jne 0x140101669
lea rax, [0x14017db1c]
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 0x140101688
jmp 0x140101521
jmp 0x14010168f
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x24], eax
jne 0x140101705
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 0x1401016ea
mov rax, qword [rsp + 0xd0]
movzx eax, word [rax + 0x3c]
and eax, 0x200
test eax, eax
je 0x1401016d5
mov dword [rsp + 0x78], 1
jmp 0x1401016dd
mov dword [rsp + 0x78], 0
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x5c], eax
jmp 0x140101705
mov rax, qword [rsp + 0xd0]
movzx eax, word [rax + 0x3c]
and eax, 0x40
test eax, eax
je 0x140101705
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.140050410
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x14010175d
lea rdx, str.out_of_memory
mov rcx, qword [rsp + 0xa0]
call fcn.1400514c0
xor eax, eax
jmp 0x140101b31
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 0x140101863
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 0x140101a60
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x12]
and eax, 0x40
test eax, eax
jne 0x14010188a
jmp 0x14010184b
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 0x140101939
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x12]
and eax, 0x8000
test eax, eax
jne 0x14010192f
cmp dword [rsp + 0x20], 0x1f
jg 0x140101911
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 0x140101919
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 0x140101963
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 0x140101a51
movzx eax, word [rsp + 0x28]
and eax, 0x180
test eax, eax
je 0x1401019aa
movzx eax, word [rsp + 0x28]
cmp eax, 0x100
jne 0x140101992
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x40]
mov byte [rcx + rax + 4], 0x47
jmp 0x1401019a5
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x40]
mov byte [rcx + rax + 4], 0x48
jmp 0x140101a51
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 0x140101a51
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov rcx, qword [rax + 0x18]
call fcn.14008c580
test eax, eax
je 0x140101a51
cmp dword [rsp + 0x20], 0x10
jge 0x140101a17
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 0x140101a34
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 0x140101a51
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 0x14010184b
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 0x140101a87
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x24], eax
jge 0x140101b10
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.140074160
test eax, eax
je 0x140101abf
jmp 0x140101a7d
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 0x140101a7d
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