Function at 0x14020a700
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 - 0xd00]
sub rsp, 0xe00
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rsp + 0xe50], rbx
lea rax, vtable.CFunctionEnterExit.0
mov qword [rbp - 0x30], rax
lea rbx, str.WriteXMLLog__
mov qword [rbp - 0x28], rbx
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0x500]
call fcn.140249b10
mov r8, rbx
lea rdx, [0x1402862f8]
lea rcx, [rbp + 0x500]
call fcn.140006bc0
mov r9d, 1
mov r8d, r9d
lea rdx, [rbp + 0x500]
lea rcx, vtable.CSASApplicationLogManager.0
call fcn.140004a50
nop
lea r15, vtable.CSABString.0
mov qword [rbp - 0x78], r15
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.140247068
mov rdi, rax
mov qword [rbp - 0x70], rax
xor eax, eax
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov dword [rbp - 0x64], 1
lea rcx, [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
lea rbx, [0x140286ae1]
mov ecx, dword [0x140350860]
test ecx, ecx
je 0x14020a7f9
sub ecx, 1
je 0x14020a7f0
sub ecx, 1
je 0x14020a7e7
cmp ecx, 2
jne 0x14020a800
lea rbx, str.Critical_Point_Scan
jmp 0x14020a800
lea rbx, str.Custom_Scan
jmp 0x14020a800
lea rbx, str.Complete_Scan
jmp 0x14020a800
lea rbx, str.Quick_Scan
movzx ecx, word [rbp - 0x3c]
movzx edx, word [rbp - 0x3e]
movzx r8d, word [rbp - 0x40]
movzx r10d, word [rbp - 0x42]
movzx r11d, word [rbp - 0x46]
movzx r9d, word [rbp - 0x48]
lea rax, [0x14037cb10]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x60], rbx
mov eax, dword [0x14035047c]
mov dword [rsp + 0x58], eax
mov eax, dword [0x140350478]
mov dword [rsp + 0x50], eax
lea rax, [0x14037d0a0]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], ecx
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], r11d
lea r8, str._ScanLog__r_n_t_TimeStamp__04u__02u__02u__02u:_02u:_02u__TimeStamp__r_n_t_Version__s__Version__r_n_t_Core__u__Core__r_n_t_Trace__u__Trace__r_n_t_ScanType__s__ScanType__r_n_t_ScanTime__s__ScanTime__r_n
mov edx, 0x410
lea rcx, [rbp + 0xf0]
call fcn.14000b150
xor r14d, r14d
test rdi, rdi
je 0x14020a890
mov rcx, rdi
call fcn.140247060
mov qword [rbp - 0x70], r14
lea rax, [rbp + 0xf0]
mov r13, 0xffffffffffffffff
mov r12, r13
inc r12
cmp byte [rax + r12], r14b
jne 0x14020a8a1
mov dword [rbp - 0x68], r12d
lea eax, [r12 + 1]
mov ebx, eax
mov ecx, eax
call fcn.140247068
mov rsi, rax
mov qword [rbp - 0x70], rax
test rax, rax
je 0x14020a8da
mov r8d, ebx
lea rdx, [rbp + 0xf0]
mov rcx, rax
call fcn.1402496a0
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x900]
call fcn.140249b10
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x500]
call fcn.140249b10
mov qword [rsp + 0x20], r14
xor r9d, r9d
mov r8d, 0x400
lea rdx, [rbp + 0x900]
lea rcx, [rbp + 0xd40]
call fcn.1400e4b70
mov r8d, 0x400
lea rdx, [rbp + 0x500]
lea rcx, [rbp + 0xd40]
call fcn.140202750
lea rax, [rbp + 0x500]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x900]
lea r8, str._t_WindowsVersion__s__WindowsVersion__r_n_t_Elevation__s__Elevation__r_n
mov edx, 0x410
lea rcx, [rbp + 0xf0]
call fcn.14000b150
mov qword [rsp + 0x70], r15
lea rax, [rbp + 0xf0]
mov rbx, r13
inc rbx
cmp byte [rax + rbx], r14b
jne 0x14020a976
mov dword [rbp - 0x80], ebx
lea eax, [rbx + 1]
mov r15d, eax
mov ecx, eax
call fcn.140247068
mov r14, rax
mov qword [rsp + 0x78], rax
test rax, rax
je 0x14020a9ae
mov r8d, r15d
lea rdx, [rbp + 0xf0]
mov rcx, rax
call fcn.1402496a0
mov dword [rbp - 0x7c], 1
lea ecx, [rbx + 1]
add ecx, r12d
call fcn.140247068
mov rdi, rax
test rsi, rsi
je 0x14020a9ed
mov rcx, rsi
mov rdx, rax
sub rdx, rsi
movzx eax, byte [rcx]
mov byte [rdx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x14020a9d1
mov rcx, rsi
call fcn.140247060
mov qword [rbp - 0x70], rdi
jmp 0x14020a9f1
mov qword [rbp - 0x70], rax
test rdi, rdi
je 0x14020aa1f
mov ecx, r12d
add rcx, rdi
mov r8, r15
mov rdx, r14
call fcn.1402496a0
mov rax, r13
nop word [rax + rax]
inc rax
cmp byte [rdi + rax], 0
jne 0x14020aa10
mov r12d, eax
mov dword [rbp - 0x68], eax
test r14, r14
je 0x14020aa2c
mov rcx, r14
call fcn.140247060
mov rax, qword [0x14037caf8]
mov ecx, dword [rax + 0x12a8]
mov edx, dword [rax + 0x12ac]
mov r8d, dword [rax + 0x12b0]
mov r10d, dword [rax + 0x129c]
mov r11d, dword [rax + 0x12a0]
mov dword [rsp + 0x40], ecx
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], r11d
mov r9d, dword [rax + 0x12a4]
lea r8, str._t_ScanTotals__r_n_t_t_MemoryScan__u__MemoryScan__r_n_t_t_RegistryScan__u__RegistryScan__r_n_t_t_FileScan__u__FileScan__r_n_t__ScanTotals__r_n_t_DetectedTotals__r_n_t_t_MemoryDetected__u__MemoryDetected__r_n_t_t_RegistryDetected__u__RegistryDetected__r_n_t_t_FileDetected__u__FileDetected__r_n_t__DetectedTotals__r_n
mov edx, 0x410
lea rcx, [rbp + 0xf0]
call fcn.14000b150
lea rax, vtable.CSABString.0
mov qword [rsp + 0x70], rax
lea rax, [rbp + 0xf0]
mov rbx, r13
inc rbx
cmp byte [rax + rbx], 0
jne 0x14020aaa0
mov dword [rbp - 0x80], ebx
lea eax, [rbx + 1]
mov r14d, eax
mov ecx, eax
call fcn.140247068
mov rsi, rax
mov qword [rsp + 0x78], rax
test rax, rax
je 0x14020aad8
mov r8d, r14d
lea rdx, [rbp + 0xf0]
mov rcx, rax
call fcn.1402496a0
mov dword [rbp - 0x7c], 1
lea ecx, [rbx + 1]
add ecx, r12d
call fcn.140247068
mov rbx, rax
test rdi, rdi
je 0x14020ab1c
mov rcx, rdi
mov rdx, rax
sub rdx, rdi
nop dword [rax + rax]
movzx eax, byte [rcx]
mov byte [rdx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x14020ab00
mov rcx, rdi
call fcn.140247060
mov qword [rbp - 0x70], rbx
jmp 0x14020ab20
mov qword [rbp - 0x70], rax
test rbx, rbx
je 0x14020ab4f
mov ecx, r12d
add rcx, rbx
mov r8, r14
mov rdx, rsi
call fcn.1402496a0
mov rax, r13
nop dword [rax]
inc rax
cmp byte [rbx + rax], 0
jne 0x14020ab40
mov r12d, eax
mov dword [rbp - 0x68], eax
test rsi, rsi
je 0x14020ab5c
mov rcx, rsi
call fcn.140247060
lea rsi, vtable.CSABString.0
mov qword [rsp + 0x70], rsi
mov dword [rbp - 0x80], SafeArrayUnaccessData
mov ecx, reloc.WSOCK32.dll_send
call fcn.140247068
mov rdi, rax
mov qword [rsp + 0x78], rax
test rax, rax
je 0x14020aba5
movups xmm0, xmmword [str._t_DetectedItems__r_n]
movups xmmword [rax], xmm0
movzx ecx, word [0x1402d03f0]
mov word [rax + 0x10], cx
movzx ecx, byte [0x1402d03f2]
mov byte [rax + 0x12], cl
mov dword [rbp - 0x7c], 1
lea ecx, [r12 + 0x13]
call fcn.140247068
mov r14, rax
test rbx, rbx
je 0x14020abec
mov rcx, rbx
mov rdx, rax
sub rdx, rbx
nop word [rax + rax]
movzx eax, byte [rcx]
mov byte [rdx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x14020abd0
mov rcx, rbx
call fcn.140247060
mov qword [rbp - 0x70], r14
jmp 0x14020abf0
mov qword [rbp - 0x70], rax
test r14, r14
je 0x14020ac26
mov edx, r12d
movups xmm0, xmmword [rdi]
movups xmmword [rdx + r14], xmm0
movzx ecx, word [rdi + 0x10]
mov word [rdx + r14 + 0x10], cx
movzx eax, byte [rdi + 0x12]
mov byte [rdx + r14 + 0x12], al
mov rax, r13
inc rax
cmp byte [r14 + rax], 0
jne 0x14020ac16
mov r12d, eax
mov dword [rbp - 0x68], eax
test rdi, rdi
je 0x14020ac33
mov rcx, rdi
call fcn.140247060
mov qword [rbp - 0x60], rsi
xor r15d, r15d
mov qword [rbp - 0x58], r15
mov dword [rbp - 0x50], r15d
lea ecx, [r15 + 0x10]
call fcn.140247068
mov qword [rbp - 0x58], rax
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov dword [rbp - 0x4c], 1
mov rax, qword [0x14037d258]
mov rdi, qword [rax]
cmp rdi, rax
je 0x14020ae8e
lea rbx, str.Threat
nop dword [rax]
mov rax, qword [rdi + 0x38]
mov rcx, qword [rax]
cmp rcx, rax
je 0x14020ae77
cmp dword [rcx + 0x76c], 4
jne 0x14020aca2
lea rsi, str.Notify
jmp 0x14020acc1
lea rdx, str.cookie
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
lea rsi, str.Cookie
test rax, rax
cmove rsi, rbx
mov qword [rbp + 0xd40], rsi
mov rax, qword [rdi + 0x38]
mov rbx, qword [rax]
cmp rbx, rax
je 0x14020ae70
nop dword [rax + rax]
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x14020acf2
call fcn.140247060
mov qword [rbp - 0x58], r15
mov dword [rbp - 0x50], r15d
mov ecx, 1
call fcn.140247068
mov qword [rbp - 0x58], rax
test rax, rax
je 0x14020ad1f
mov r8d, dword [rbp - 0x50]
inc r8d
lea rdx, [0x140286ae1]
mov rcx, rax
call fcn.1402496a0
lea rdx, [rbx + 0x10]
lea r9, [rbp + 0xd48]
lea r8, [rbp - 0x60]
mov ecx, dword [rbx + 0x810]
call fcn.1401fd640
mov rcx, qword [rdi + 0x18]
mov rax, qword [rbp - 0x58]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov r9, rsi
lea r8, str._t_t_Item__r_n_t_t_t_Type__s__Type__r_n_t_t_t_Family__s__Family__r_n_t_t_t_Detail__s__Detail__r_n_t_t__Item__r_n
mov edx, 0x410
lea rcx, [rbp + 0xf0]
call fcn.14000b150
lea rax, vtable.CSABString.0
mov qword [rsp + 0x70], rax
lea rax, [rbp + 0xf0]
mov rsi, r13
nop dword [rax]
inc rsi
cmp byte [rax + rsi], 0
jne 0x14020ad80
mov dword [rbp - 0x80], esi
lea eax, [rsi + 1]
mov r13d, eax
mov ecx, eax
call fcn.140247068
mov r15, rax
mov qword [rsp + 0x78], rax
test rax, rax
je 0x14020adb8
mov r8d, r13d
lea rdx, [rbp + 0xf0]
mov rcx, rax
call fcn.1402496a0
mov dword [rbp - 0x7c], 1
lea ecx, [rsi + 1]
add ecx, r12d
call fcn.140247068
test r14, r14
je 0x14020ae00
mov rsi, rax
mov rcx, r14
mov r8, rax
sub r8, r14
nop dword [rax + rax]
movzx edx, byte [rcx]
mov byte [r8 + rcx], dl
lea rcx, [rcx + 1]
test dl, dl
jne 0x14020ade0
mov rcx, r14
call fcn.140247060
mov r14, rsi
mov qword [rbp - 0x70], rsi
jmp 0x14020ae07
mov r14, rax
mov qword [rbp - 0x70], rax
test r14, r14
je 0x14020ae42
mov ecx, r12d
add rcx, r14
mov r8, r13
mov rdx, r15
call fcn.1402496a0
mov r13, 0xffffffffffffffff
mov rax, r13
nop word [rax + rax]
inc rax
cmp byte [r14 + rax], 0
jne 0x14020ae30
mov r12d, eax
mov dword [rbp - 0x68], eax
jmp 0x14020ae49
mov r13, 0xffffffffffffffff
test r15, r15
je 0x14020ae56
mov rcx, r15
call fcn.140247060
mov rbx, qword [rbx]
cmp rbx, qword [rdi + 0x38]
mov rsi, qword [rbp + 0xd40]
mov r15d, 0
jne 0x14020ace0
lea rbx, str.Threat
mov rdi, qword [rdi]
cmp rdi, qword [0x14037d258]
jne 0x14020ac80
lea rsi, vtable.CSABString.0
mov qword [rsp + 0x70], rsi
mov dword [rbp - 0x80], 0x1d
mov ecx, 0x1e
call fcn.140247068
mov rdi, rax
mov qword [rsp + 0x78], rax
test rax, rax
je 0x14020aedc
movups xmm0, xmmword [str._t__DetectedItems__r_n__ScanLog_]
movups xmmword [rax], xmm0
movsd xmm1, qword [0x1402d0490]
movsd qword [rax + 0x10], xmm1
mov ecx, dword [0x1402d0498]
mov dword [rax + 0x18], ecx
movzx ecx, word [0x1402d049c]
mov word [rax + 0x1c], cx
mov dword [rbp - 0x7c], 1
lea ecx, [r12 + 0x1e]
call fcn.140247068
mov rbx, rax
test r14, r14
je 0x14020af16
mov rcx, r14
mov rdx, rax
sub rdx, r14
nop
movzx eax, byte [rcx]
mov byte [rcx + rdx], al
lea rcx, [rcx + 1]
test al, al
jne 0x14020af00
mov rcx, r14
call fcn.140247060
test rbx, rbx
je 0x14020af4d
mov edx, r12d
add rdx, rbx
movups xmm0, xmmword [rdi]
movups xmmword [rdx], xmm0
movsd xmm1, qword [rdi + 0x10]
movsd qword [rdx + 0x10], xmm1
mov ecx, dword [rdi + 0x18]
mov dword [rdx + 0x18], ecx
movzx eax, word [rdi + 0x1c]
mov word [rdx + 0x1c], ax
nop
inc r13
cmp byte [rbx + r13], 0
jne 0x14020af40
mov r12d, r13d
test rdi, rdi
je 0x14020af5a
mov rcx, rdi
call fcn.140247060
lea rdx, [rbp - 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea rdx, str.SUPERAntiSpyware_Scan.XML
lea rcx, [rbp - 0x20]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14020afcf
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0xd40]
mov r8d, r12d
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov qword [rbp - 0x60], rsi
add dword [rbp - 0x4c], 0xffffffff
jne 0x14020afe8
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x14020afe8
call fcn.140247060
nop
test rbx, rbx
je 0x14020aff6
mov rcx, rbx
call fcn.140247060
nop
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0x500]
call fcn.140249b10
lea r8, str.WriteXMLLog__
lea rdx, str._s___Leavex
lea rcx, [rbp + 0x500]
call fcn.140006bc0
mov r9d, 1
mov r8d, r9d
lea rdx, [rbp + 0x500]
lea rcx, vtable.CSASApplicationLogManager.0
call fcn.140004a50
nop
mov rbx, qword [rsp + 0xe50]
add rsp, 0xe00
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret