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

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x98
mov r14, qword [rcx]
mov r13, rcx
mov ebx, dword [rsp + 0x100]
mov ecx, 1
mov dword [rsp + 0x4c], ebx
mov r15b, cl
add ebx, ecx
mov qword [rsp + 0x88], r14
mov dword [rsp + 0x100], ebx
mov r12, rdx
lea eax, [rbx + 1]
mov ebp, eax
mov dword [rsp + 0x5c], eax
add ebp, ecx
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x3c], ebp
add ebp, ecx
mov ebx, ebp
add ebp, ecx
mov dword [rsp + 0x54], ebp
add ebp, ecx
mov dword [rsp + 0x50], ebp
add ebp, ecx
cmp dword [r13 + 0x38], ebp
mov eax, ebp
mov rcx, r13
mov dword [rsp + 0x58], ebx
cmovg eax, dword [r13 + 0x38]
mov dword [r13 + 0x38], eax
call fcn.1401d5ff8
mov rsi, rax
test rax, rax
je 0x1401ef9f6
test r12, r12
je 0x1401ef9f6
cmp dword [r12 + 0x38], 0
je 0x1401ef9f6
mov rdx, qword [r12]
lea r8, [0x140695d04]
mov r9d, reloc.SHELL32.dll_PathGetShortPath
lea rcx, str.sqlite__
call fcn.1401e4804
test eax, eax
je 0x1401ef9f6
mov rcx, qword [r12 + 0x70]
mov edi, 0xfff0bdc0
mov dword [rsp + 0x38], edi
test rcx, rcx
je 0x1401ef32e
mov rax, qword [r14 + 0x20]
xor edi, edi
add rax, 0x18
mov dword [rsp + 0x38], edi
cmp qword [rax], rcx
je 0x1401ef32e
inc edi
lea rax, [rax + 0x20]
cmp qword [rax], rcx
jne 0x1401ef31f
mov dword [rsp + 0x38], edi
mov rax, qword [r14 + 0x20]
xor r9d, r9d
mov r8, qword [r12]
movsxd rcx, edi
shl rcx, 5
lea edx, [r9 + 0x1c]
mov rcx, qword [rcx + rax]
mov qword [rsp + 0x20], rcx
mov rcx, r13
call fcn.1401edc04
test eax, eax
jne 0x1401ef9f6
mov rax, qword [r12]
xor r9d, r9d
mov r8d, dword [r12 + 0x38]
mov edx, edi
mov rcx, r13
mov qword [rsp + 0x20], rax
call fcn.1401edab0
mov eax, dword [rsp + 0x108]
mov edx, 1
mov ecx, eax
mov dword [rsp + 0x68], eax
add eax, edx
mov dword [rsp + 0x20], WSASetLastError
mov dword [rsp + 0x34], eax
mov r9, r12
add eax, edx
mov r8d, edi
cmp dword [r13 + 0x34], eax
mov edx, ecx
mov rcx, r13
cmovg eax, dword [r13 + 0x34]
mov dword [r13 + 0x34], eax
call fcn.1401e0f04
mov r8, qword [r12]
mov edx, ebx
mov rcx, rsi
call fcn.14020a16c
mov r14, qword [r12 + 0x10]
mov edx, 8
test r14, r14
je 0x1401ef8ec
mov rax, qword [rsp + 0xf0]
lea r8d, [rdx - 6]
test rax, rax
je 0x1401ef3f2
cmp rax, r14
jne 0x1401ef8df
mov rax, qword [r14 + 0x48]
neg rax
sbb cl, cl
and cl, r15b
test byte [r12 + 0x40], 0x20
mov byte [rsp + 0x30], cl
je 0x1401efa0a
mov eax, dword [r14 + 0x64]
and al, 3
cmp al, r8b
jne 0x1401efa0a
movzx ebx, word [r14 + 0x5e]
mov r8, qword [r12]
lea r15d, [rbx - 1]
mov edx, dword [rsp + 0x54]
mov rcx, rsi
call fcn.14020a16c
mov r8d, dword [rsp + 0x34]
lea eax, [r15 + rbp]
cmp dword [r13 + 0x38], eax
mov edx, WSASetLastError
mov rcx, rsi
mov dword [rsp + 0x20], edi
cmovg eax, dword [r13 + 0x38]
mov dword [r13 + 0x38], eax
mov r9d, dword [r14 + 0x58]
call fcn.14020a23c
mov rdx, r14
mov rcx, r13
call fcn.140209624
mov r9d, dword [rsp + 0x5c]
mov r8d, ebx
and dword [rsp + 0x20], 0
mov edx, 0x46
mov rcx, rsi
call fcn.14020a23c
mov ebx, dword [rsp + 0x100]
mov edx, 0x46
movzx r8d, word [r14 + 0x5e]
mov rcx, rsi
and dword [rsp + 0x20], 0
lea r9d, [rbx + 2]
call fcn.14020a23c
xor r8d, r8d
mov dword [rsp + 0x20], ebx
lea r9d, [rbx + 1]
mov rcx, rsi
lea edx, [r8 + 0x3f]
call fcn.14020a23c
mov r9d, 0xfffffff8
lea r8, [0x14069a200]
mov edx, eax
mov rcx, rsi
call fcn.140209698
mov eax, dword [rsi + 0xb8]
test eax, eax
jle 0x1401ef4f7
dec eax
movsxd rcx, eax
mov rax, qword [rsi + 0x68]
lea rdx, [rcx + rcx*2]
mov ecx, 2
mov word [rax + rdx*8 + 2], cx
mov r8d, dword [rsp + 0x34]
xor r9d, r9d
and dword [rsp + 0x20], 0
mov rcx, rsi
lea edx, [r9 + 0x24]
call fcn.14020a23c
mov r9d, dword [rsp + 0x40]
xor r8d, r8d
and dword [rsp + 0x20], 0
mov rcx, rsi
mov dword [rsp + 0x64], eax
lea edx, [r8 + 0x46]
call fcn.14020a23c
mov eax, dword [rsi + 0xb8]
mov dword [rsp + 0x48], eax
test r15d, r15d
jle 0x1401ef7a2
mov rcx, rsi
call fcn.140209d9c
mov rcx, qword [rsp + 0x88]
movsxd rdx, r15d
shl rdx, 2
mov dword [rsp + 0x44], eax
call fcn.140227e28
mov qword [rsp + 0x80], rax
mov rbx, rax
test rax, rax
je 0x1401ef8c8
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
lea edx, [r9 + 0xb]
call fcn.14020a23c
mov eax, dword [rsi + 0xb8]
mov dword [rsp + 0x48], eax
mov eax, 1
cmp r15d, eax
jne 0x1401ef5c5
cmp word [r14 + 0x5e], ax
jne 0x1401ef5c5
cmp byte [r14 + 0x62], 0
je 0x1401ef5c5
and dword [rsp + 0x20], 0
lea edx, [rax + 0x32]
mov r9d, dword [rsp + 0x44]
mov r8d, ebp
mov rcx, rsi
call fcn.14020a23c
and dword [rsp + 0x60], 0
test r15d, r15d
jle 0x1401ef6b5
mov r12d, dword [rsp + 0x60]
xor eax, eax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rbx
mov rdx, qword [r14 + 0x40]
mov rcx, r13
mov rdx, qword [rax + rdx]
call fcn.1401ebd70
mov r9d, dword [rsp + 0x40]
mov r8d, r12d
and dword [rsp + 0x20], 0
mov edx, 0x46
mov rcx, rsi
mov rdi, rax
call fcn.14020a23c
mov r8d, dword [rsp + 0x34]
mov r9d, r12d
mov ebx, dword [rsp + 0x3c]
mov edx, PathGetShortPath
mov rcx, rsi
mov dword [rsp + 0x20], ebx
call fcn.14020a23c
xor r9d, r9d
lea ecx, [r12 + rbp]
mov dword [rsp + 0x20], ecx
mov r8d, ebx
mov rcx, rsi
lea edx, [r9 + 0x34]
call fcn.14020a23c
mov r9d, 0xfffffffe
mov r8, rdi
mov edx, eax
mov rcx, rsi
mov ebx, eax
call fcn.140209698
mov r8, qword [rsp + 0x78]
mov dword [r8], ebx
mov eax, dword [rsi + 0xb8]
test eax, eax
jle 0x1401ef686
dec eax
movsxd rcx, eax
mov rax, qword [rsi + 0x68]
lea rdx, [rcx + rcx*2]
mov ecx, 0x80
mov word [rax + rdx*8 + 2], cx
mov rax, qword [rsp + 0x70]
add r8, 4
add rax, 8
mov qword [rsp + 0x78], r8
inc r12d
mov qword [rsp + 0x70], rax
cmp r12d, r15d
jl 0x1401ef5e4
mov r12, qword [rsp + 0xe8]
mov edi, dword [rsp + 0x38]
mov r9d, dword [rsp + 0x40]
mov r8d, r15d
and dword [rsp + 0x20], 0
mov edx, 0x46
mov rcx, rsi
call fcn.14020a23c
mov r9d, dword [rsp + 0x44]
xor r8d, r8d
and dword [rsp + 0x20], 0
mov rcx, rsi
lea edx, [r8 + 0xb]
call fcn.14020a23c
mov edx, dword [rsp + 0x48]
mov rcx, rsi
dec edx
call fcn.1402095ec
mov ecx, dword [rsi + 0xb8]
xor ebx, ebx
mov dword [rax + 8], ecx
test r15d, r15d
jle 0x1401ef766
mov r12, qword [rsp + 0x80]
lea r13d, [rbx + 1]
mov edi, dword [rsp + 0x34]
mov edx, dword [r12]
mov rcx, rsi
call fcn.1402095ec
mov ecx, dword [rsi + 0xb8]
mov r9d, ebx
mov r8d, edi
mov edx, PathGetShortPath
mov dword [rax + 8], ecx
lea eax, [rbx + rbp]
mov rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.14020a23c
add ebx, r13d
lea r12, [r12 + 4]
cmp ebx, r15d
jl 0x1401ef716
mov r12, qword [rsp + 0xe8]
mov r13, qword [rsp + 0xe0]
mov edi, dword [rsp + 0x38]
mov rax, qword [rsi + 0x18]
mov rdx, qword [rax + 0x50]
test rdx, rdx
je 0x1401ef786
or eax, 0xffffffff
sub eax, dword [rsp + 0x44]
movsxd rcx, eax
mov eax, dword [rsi + 0xb8]
mov dword [rdx + rcx*4], eax
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x88]
call fcn.140228168
mov ebx, dword [rsp + 0x100]
mov r15d, dword [rsp + 0x3c]
mov edx, 0x3f
mov r9d, ebx
mov dword [rsp + 0x20], r15d
mov rcx, rsi
lea r8d, [rdx - 0x3e]
call fcn.14020a23c
mov r9d, 0xfffffff8
lea r8, [0x14069d0e0]
mov edx, eax
mov rcx, rsi
call fcn.140209698
mov eax, dword [rsi + 0xb8]
test eax, eax
jle 0x1401ef7f8
dec eax
movsxd rcx, eax
mov rax, qword [rsi + 0x68]
lea rdx, [rcx + rcx*2]
mov ecx, 2
mov word [rax + rdx*8 + 2], cx
mov r9d, dword [rsp + 0x48]
mov edx, 5
mov r8d, dword [rsp + 0x34]
mov rcx, rsi
and dword [rsp + 0x20], 0
call fcn.14020a23c
mov r9d, dword [rsp + 0x50]
mov edx, ebx
mov rcx, rsi
call fcn.1401efa30
mov r8d, dword [rsp + 0x58]
mov r9d, 3
mov ebx, r15d
mov rcx, rsi
mov dword [rsp + 0x20], ebx
lea edx, [r9 + 0x63]
call fcn.14020a23c
xor r9d, r9d
lea r8, [0x1406e9464]
mov edx, eax
mov rcx, rsi
call fcn.140209698
mov r15d, dword [rsp + 0xf8]
mov edx, 0x79
mov r9d, dword [rsp + 0x4c]
mov r8d, r15d
and dword [rsp + 0x20], 0
mov rcx, rsi
call fcn.14020a23c
mov eax, dword [rsp + 0x4c]
mov r9d, ebx
mov r8d, r15d
mov dword [rsp + 0x20], eax
mov edx, 0x7a
mov rcx, rsi
call fcn.14020a23c
mov eax, dword [rsi + 0xb8]
test eax, eax
jle 0x1401ef8b3
dec eax
movsxd rcx, eax
mov rax, qword [rsi + 0x68]
lea rdx, [rcx + rcx*2]
mov ecx, 8
mov word [rax + rdx*8 + 2], cx
mov edx, dword [rsp + 0x64]
mov rcx, rsi
call fcn.1402095ec
mov ecx, dword [rsi + 0xb8]
mov dword [rax + 8], ecx
mov rax, qword [rsp + 0xf0]
mov r8d, 2
mov r15b, byte [rsp + 0x30]
lea edx, [r8 + 6]
mov r14, qword [r14 + 0x28]
test r14, r14
jne 0x1401ef3e4
xor r14d, r14d
cmp qword [rsp + 0xf0], r14
jne 0x1401ef9f6
test r15b, r15b
je 0x1401ef9f6
mov r9d, dword [rsp + 0x50]
lea edx, [r14 + 0x68]
mov r8d, dword [rsp + 0x68]
mov rcx, rsi
mov dword [rsp + 0x20], r14d
call fcn.14020a23c
mov r8d, dword [rsp + 0x50]
lea edx, [r14 + 0x14]
xor r9d, r9d
mov dword [rsp + 0x20], r14d
mov rcx, rsi
call fcn.14020a23c
mov r9d, dword [rsp + 0x54]
lea edx, [r14 + 0x49]
xor r8d, r8d
mov dword [rsp + 0x20], r14d
mov rcx, rsi
mov ebx, eax
call fcn.14020a23c
mov r8d, dword [rsp + 0x58]
lea r9d, [r14 + 3]
mov r15d, dword [rsp + 0x3c]
lea edx, [r14 + 0x66]
mov rcx, rsi
mov dword [rsp + 0x20], r15d
call fcn.14020a23c
xor r9d, r9d
lea r8, [0x1406e948c]
mov edx, eax
mov rcx, rsi
call fcn.140209698
mov ebp, dword [rsp + 0x4c]
lea edx, [r14 + 0x79]
mov r8d, dword [rsp + 0xf8]
mov r9d, ebp
mov rcx, rsi
mov dword [rsp + 0x20], r14d
call fcn.14020a23c
mov r8d, dword [rsp + 0xf8]
lea edx, [r14 + 0x7a]
mov r9d, r15d
mov dword [rsp + 0x20], ebp
mov rcx, rsi
call fcn.14020a23c
mov eax, dword [rsi + 0xb8]
test eax, eax
jle 0x1401ef9e3
dec eax
movsxd rcx, eax
mov rax, qword [rsi + 0x68]
lea rdx, [rcx + rcx*2]
lea ecx, [r14 + 8]
mov word [rax + rdx*8 + 2], cx
mov edx, ebx
mov rcx, rsi
call fcn.1402095ec
mov ecx, dword [rsi + 0xb8]
mov dword [rax + 8], ecx
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
movzx ebx, word [r14 + 0x60]
mov r8, qword [r14]
test byte [r14 + 0x64], dl
je 0x1401ef426
movzx r15d, word [r14 + 0x5e]
dec r15d
jmp 0x1401ef42a