Function at 0x14009dcb0
Capabilities:
Get common file path
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x17d0]
mov eax, 0x18d0
call fcn.140247340
sub rsp, rax
mov qword [rbp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x1910], rbx
mov r13, rdx
mov r15, rcx
lea rcx, [rbp - 0x20]
call fcn.14007ba30
nop
lea rbx, vtable.CSABByteString.0
mov qword [rbp - 0x40], rbx
xor r12d, r12d
mov qword [rbp - 0x28], r12
lea ecx, [r12 + 1]
call fcn.140247068
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x40]
call fcn.14000af20
nop
mov qword [rbp - 0x60], rbx
mov qword [rbp - 0x48], r12
lea ecx, [r12 + 1]
call fcn.140247068
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], 1
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x60]
call fcn.14000af20
nop
lea r8d, [r12 + 1]
mov rdx, qword [r13 + 8]
lea rcx, [rbp - 0x20]
call fcn.14006d170
test eax, eax
jne 0x14009e07e
lea rax, [rbp + 0x8e0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r12 + 0x1c]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
movdqa xmm0, xmmword [0x14029c3d0]
movdqu xmmword [rbp - 0x70], xmm0
mov byte [rbp - 0x80], r12b
lea rax, [rbp + 0x8e0]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14009ddb0
lea rdx, [rbp + 0x8e0]
lea rcx, [rbp - 0x80]
call fcn.1400b29c0
nop
lea r14, [rbp - 0x80]
mov r8, qword [rbp - 0x80]
mov r9, qword [rbp - 0x68]
cmp r9, 0x10
cmovae r14, r8
lea rcx, [rbp - 0x80]
cmovae rcx, r8
mov rax, qword [rbp - 0x70]
add rax, rcx
lea rsi, [rbp - 0x80]
cmp r9, 0x10
cmovae rsi, r8
mov rdi, rax
sub rdi, rsi
cmp rsi, rax
cmova rdi, r12
test rdi, rdi
je 0x14009de2d
mov rbx, r12
nop
movsx ecx, byte [rbx + rsi]
call fcn.1402504ac
mov byte [rbx + r14], al
inc rbx
cmp rbx, rdi
jne 0x14009de10
mov r9, qword [rbp - 0x68]
mov r8, qword [rbp - 0x80]
lea rdx, [rbp - 0x80]
cmp r9, 0x10
cmovae rdx, r8
mov rcx, qword [r13 + 8]
call fcn.140248db4
test rax, rax
je 0x14009e4d7
lea rdi, vtable.CSABDataBuffer.0
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], r12
mov dword [rsp + 0x70], r12d
mov qword [rsp + 0x74], 1
mov qword [rbp + 0x1828], r12
movdqa xmm0, xmmword [0x14029c3d0]
movdqu xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], 0
lea rax, [rbp + 0x8e0]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x14009de92
lea rdx, [rbp + 0x8e0]
lea rcx, [rsp + 0x40]
call fcn.1400b29c0
nop
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
mov rax, rdx
sub rax, rcx
cmp rax, 0xf
jb 0x14009defa
lea rax, [rcx + 0xf]
mov qword [rsp + 0x50], rax
lea rbx, [rsp + 0x40]
cmp rdx, 0x10
cmovae rbx, qword [rsp + 0x40]
add rbx, rcx
mov r8d, SafeArrayGetDim
lea rdx, str.GOOGLEcookies
mov rcx, rbx
call fcn.1402496a0
mov byte [rbx + 0xf], 0
jmp 0x14009df1b
mov qword [rsp + 0x20], SafeArrayUnaccessData
lea r9, str.GOOGLEcookies
xor r8d, r8d
lea edx, [r8 + 0xf]
lea rcx, [rsp + 0x40]
call fcn.14007b030
lea r9, [rbp + 0x1828]
lea r8, [rsp + 0x60]
mov rdx, qword [r13 + 8]
mov rcx, r15
call fcn.1400911e0
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rcx, qword [rsp + 0x40]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14009e451
mov dword [rbp + 0x1818], r12d
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x1818]
mov r8d, dword [rbp + 0x1828]
mov rdx, qword [rsp + 0x68]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rdx, qword [rsp + 0x40]
mov r8d, 1
lea rcx, [rbp - 0x20]
call fcn.14006d170
test eax, eax
je 0x14009e464
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x14009e00d
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14009e008
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14009e6e2
call fcn.140247060
movdqa xmm0, xmmword [0x14029c3d0]
movdqu xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], 0
mov qword [rsp + 0x60], rdi
add dword [rsp + 0x74], 0xffffffff
jne 0x14009e043
cmp dword [rsp + 0x78], 0
jne 0x14009e043
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14009e043
call fcn.140247060
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x14009e07e
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14009e079
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14009e6e8
call fcn.140247060
mov ebx, r12d
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x14009e0ac
mov rax, qword [rcx]
xor r9d, r9d
lea r8, [rbp + 0x1820]
lea rdx, str.SELECT_name_host_key_FROM_cookies
call qword [rax]
mov ebx, eax
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
je 0x14009e649
mov edi, r12d
mov rcx, qword [rbp + 0x1820]
mov rax, qword [rcx]
lea r9, [rbp + 0x1818]
xor edx, edx
lea r8d, [rdx + 1]
call qword [rax + 0x28]
test eax, eax
je 0x14009e61b
lea r14, vtable.CSASDescriptor.0
lea rbx, vtable.CSASDescriptor.1.0
lea rsi, vtable.CSABString.0
nop dword [rax + rax]
mov rcx, qword [rbp + 0x1820]
mov rax, qword [rcx]
lea r9, [rbp + 0x1828]
xor r8d, r8d
mov edx, edi
call qword [rax + 0x28]
test eax, eax
je 0x14009e61b
mov rcx, qword [rbp + 0x1828]
mov rax, 0xffffffffffffffff
nop
inc rax
cmp byte [rcx + rax], 0
jne 0x14009e130
mov rdx, qword [rbp + 0x1818]
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [rdx + rcx], 0
jne 0x14009e147
add rax, rcx
cmp rax, 0x898
jae 0x14009e5f5
lea rcx, [rbp + 0x8e0]
call fcn.1400270b0
nop
xor edx, edx
mov r8d, 0x898
lea rcx, [rbp + 0xf30]
call fcn.140249b10
mov rcx, qword [rbp + 0x1818]
lea rdx, [rbp + 0xf30]
sub rdx, rcx
movzx eax, byte [rcx]
mov byte [rdx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x14009e191
lea rcx, [rbp + 0xf30]
dec rcx
nop dword [rax]
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x14009e1b0
movzx eax, word [0x140287e84]
mov word [rcx], ax
lea rcx, [rbp + 0xf30]
dec rcx
nop dword [rax]
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x14009e1d0
mov r8, qword [rbp + 0x1828]
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x14009e1f0
mov rcx, qword [rbp + 0x918]
test rcx, rcx
je 0x14009e218
call fcn.140247060
mov qword [rbp + 0x918], r12
lea rcx, [rbp + 0xf30]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x14009e226
mov dword [rbp + 0x920], eax
lea ecx, [rax + 1]
call fcn.140247068
mov qword [rbp + 0x918], rax
test rax, rax
je 0x14009e262
mov r8d, dword [rbp + 0x920]
inc r8d
lea rdx, [rbp + 0xf30]
mov rcx, rax
call fcn.1402496a0
mov rcx, qword [r15 + 0x12d8]
test rcx, rcx
je 0x14009e283
mov rax, qword [rcx]
xor r9d, r9d
lea r8, [rbp + 0x8e0]
mov edx, 0x400
call qword [rax + 0x28]
mov qword [rbp + 0x60], r14
mov qword [rbp + 0x68], rbx
lea rcx, [rbp + 0x70]
call fcn.1400270b0
nop
lea rcx, [rbp + 0x6b8]
call fcn.14000cb90
nop
mov qword [rbp + 0x878], rsi
mov qword [rbp + 0x880], r12
mov dword [rbp + 0x888], r12d
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.140247068
mov qword [rbp + 0x880], rax
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov dword [rbp + 0x88c], 1
mov qword [rbp + 0x890], rsi
mov qword [rbp + 0x898], r12
mov dword [rbp + 0x8a0], r12d
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.140247068
mov qword [rbp + 0x898], rax
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov dword [rbp + 0x8a4], 1
mov qword [rbp + 0x8a8], rsi
mov qword [rbp + 0x8b0], r12
mov dword [rbp + 0x8b8], r12d
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.140247068
mov qword [rbp + 0x8b0], rax
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rbp + 0x8bc], 1
mov dword [rbp + 0x868], r12d
mov qword [rbp + 0x870], r12
mov qword [rbp + 0x8c8], r12
lea r8, [rbp + 0x60]
lea rdx, [rbp + 0xf30]
mov rcx, r15
call fcn.140089400
test eax, eax
je 0x14009e568
mov rcx, qword [rbp + 0xa8]
test rcx, rcx
je 0x14009e396
call fcn.140247060
mov qword [rbp + 0xa8], r12
lea rcx, [rbp + 0xf30]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x14009e3a4
mov dword [rbp + 0xb0], eax
lea ecx, [rax + 1]
call fcn.140247068
mov qword [rbp + 0xa8], rax
test rax, rax
je 0x14009e3e0
mov r8d, dword [rbp + 0xb0]
inc r8d
lea rdx, [rbp + 0xf30]
mov rcx, rax
call fcn.1402496a0
mov rbx, qword [r13 + 8]
mov rcx, qword [rbp + 0x898]
test rcx, rcx
je 0x14009e3fc
call fcn.140247060
mov qword [rbp + 0x898], r12
test rbx, rbx
je 0x14009e51b
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rbx + rax], 0
jne 0x14009e410
mov dword [rbp + 0x8a0], eax
lea ecx, [rax + 1]
call fcn.140247068
mov qword [rbp + 0x898], rax
test rax, rax
je 0x14009e53c
mov r8d, dword [rbp + 0x8a0]
inc r8d
mov rdx, rbx
mov rcx, rax
call fcn.1402496a0
jmp 0x14009e53c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.error
call fcn.1400b2f60
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x14009e4a1
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14009e49c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14009e6ee
call fcn.140247060
movdqa xmm0, xmmword [0x14029c3d0]
movdqu xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], 0
mov qword [rsp + 0x60], rdi
add dword [rsp + 0x74], 0xffffffff
jne 0x14009e4d7
cmp dword [rsp + 0x78], 0
jne 0x14009e4d7
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14009e4d7
call fcn.140247060
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x14009e649
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14009e511
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14009e6dc
call fcn.140247060
jmp 0x14009e649
mov dword [rbp + 0x8a0], r12d
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.140247068
mov qword [rbp + 0x898], rax
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov dword [rbp + 0x8c0], 1
mov dword [rbp + 0x864], 0x803
lea r8, [rbp + 0x60]
mov edx, 0x409
mov rcx, r15
call fcn.14007e430
lea rbx, vtable.CSASDescriptor.1.0
mov qword [rbp + 0x60], r14
mov qword [rbp + 0x68], rbx
mov qword [rbp + 0x8a8], rsi
add dword [rbp + 0x8bc], 0xffffffff
jne 0x14009e591
mov rcx, qword [rbp + 0x8b0]
test rcx, rcx
je 0x14009e591
call fcn.140247060
mov qword [rbp + 0x890], rsi
add dword [rbp + 0x8a4], 0xffffffff
jne 0x14009e5b2
mov rcx, qword [rbp + 0x898]
test rcx, rcx
je 0x14009e5b2
call fcn.140247060
mov qword [rbp + 0x878], rsi
add dword [rbp + 0x88c], 0xffffffff
jne 0x14009e5d3
mov rcx, qword [rbp + 0x880]
test rcx, rcx
je 0x14009e5d3
call fcn.140247060
lea rcx, [rbp + 0x6b8]
call fcn.14000d760
lea rcx, [rbp + 0x70]
call fcn.140027e10
nop
lea rcx, [rbp + 0x8e0]
call fcn.140027e10
inc edi
mov rcx, qword [rbp + 0x1820]
mov rax, qword [rcx]
lea r9, [rbp + 0x1818]
mov r8d, 1
mov edx, edi
call qword [rax + 0x28]
test eax, eax
jne 0x14009e100
mov rbx, qword [rbp + 0x1820]
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x14009e63e
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov edx, 1
mov rcx, qword [rbp - 0x58]
call fcn.140247060
nop
mov edx, 1
mov rcx, qword [rbp - 0x38]
call fcn.140247060
nop
lea rax, vtable.CSABSQL.0
mov qword [rbp - 0x20], rax
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x14009e694
mov rax, qword [rcx]
mov edx, 1
call qword [rax + 0x40]
mov qword [rbp + 0x10], r12
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rax, vtable.CSABByteString.0
mov qword [rbp - 0x18], rax
mov edx, 1
mov rcx, qword [rbp - 0x10]
call fcn.140247060
mov rbx, qword [rsp + 0x1910]
add rsp, 0x18d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1402500e8
nop
call fcn.1402500e8
nop
call fcn.1402500e8
nop
call fcn.1402500e8
int3