Function at 0x140033370
Capabilities:
Delete file
Get common file path

Disassembly:
push rdi
sub rsp, 0x5c0
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov rax, qword [0x1401f3f10]
xor rax, rsp
mov qword [rsp + 0x5b0], rax
movzx eax, byte [0x1401f9a68]
test eax, eax
jne 0x140033662
mov dword [rsp + 0x48], 0
lea r9, [rsp + 0x48]
lea r8, str.DisableLog
lea rdx, [0x14013e5c8]
mov rcx, 0xffffffff80000002
call fcn.140028eb0
test eax, eax
je 0x1400333df
cmp dword [rsp + 0x48], 1
jne 0x1400333df
mov byte [0x1401ee568], 0
movzx eax, byte [0x1401ee568]
test eax, eax
je 0x140033567
mov dword [rsp + 0x4c], Ordinal_265
xor eax, eax
mov word [rsp + 0x90], ax
lea rax, [rsp + 0x92]
mov rdi, rax
xor eax, eax
mov ecx, Ordinal_521
rep stosb byte [rdi], al
lea rdx, [rsp + 0x90]
mov ecx, dword [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jbe 0x140033560
mov dword [rsp + 0x40], 0xffffffff
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x44], 0
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x90]
lea r8, [0x14013e5f0]
mov edx, 0x104
lea rcx, [0x1401f9860]
call qword [sym.imp.MSVCR120.dll_swprintf_s]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
lea rcx, [0x1401f9860]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0xffffffffffffffff
je 0x1400334d0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x44], 1
jmp 0x1400334d8
mov dword [rsp + 0x44], 0
cmp dword [rsp + 0x40], 4
jge 0x1400334ea
cmp dword [rsp + 0x44], 0
jne 0x140033447
mov eax, dword [rsp + 0x40]
cdq
and edx, 3
add eax, edx
and eax, 3
sub eax, edx
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x90]
lea r8, [0x14013e610]
mov edx, 0x104
lea rcx, [0x1401f9860]
call qword [sym.imp.MSVCR120.dll_swprintf_s]
lea rcx, [0x1401f9860]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x90]
lea r8, str._sPCULog_d.txt
mov edx, 0x104
lea rcx, [0x1401f9860]
call qword [sym.imp.MSVCR120.dll_swprintf_s]
jmp 0x140033567
mov byte [0x1401ee568], 0
movzx eax, byte [0x1401ee568]
test eax, eax
je 0x140033659
call fcn.1400337c0
lea rdx, str._r_n_r_n_New_Log__r_n_r_n
lea rcx, [rsp + 0x70]
call fcn.140030130
nop
mov edx, 0x80
lea rcx, [rsp + 0x2a0]
call fcn.140033af0
lea rcx, [rsp + 0x58]
call fcn.140030030
nop
lea r8, [rsp + 0x2a0]
lea rdx, str.Start_time:__s_r_n_r_n
lea rcx, [rsp + 0x58]
call fcn.140030c60
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x70]
call fcn.1400305f0
xor eax, eax
mov word [rsp + 0x3a0], ax
lea rax, [rsp + 0x3a2]
mov rdi, rax
xor eax, eax
mov ecx, Ordinal_521
rep stosb byte [rdi], al
mov r8d, Ordinal_265
lea rdx, [rsp + 0x3a0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea r8, [rsp + 0x3a0]
lea rdx, str.Module:__s_r_n
lea rcx, [rsp + 0x58]
call fcn.140030c60
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x70]
call fcn.1400305f0
lea rcx, [rsp + 0x70]
call fcn.140030730
xor edx, edx
mov rcx, rax
call fcn.140033900
nop
lea rcx, [rsp + 0x58]
call fcn.140030070
nop
lea rcx, [rsp + 0x70]
call fcn.140030070
nop
jmp 0x14003365b
mov byte [0x1401f9a68], 1
movzx eax, byte [0x1401f9a68]
mov rcx, qword [rsp + 0x5b0]
xor rcx, rsp
call fcn.14010f170
add rsp, 0x5c0
pop rdi
ret