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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x6d0]
sub rsp, 0x7d0
mov rax, qword [0x1800c6d00]
xor rax, rsp
mov qword [rbp + 0x6c0], rax
cmp qword [0x1800c4e38], 0xffffffffffffffff
mov rdi, rdx
mov rbx, rcx
mov esi, 1
jne 0x180004b0e
lea rdx, [rbp + 0x4b0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov r8, rdi
lea rcx, [rbp + 0x4b0]
mov edx, 0x104
call fcn.180065e14
lea r8, str..FII
mov edx, 0x104
lea rcx, [rbp + 0x4b0]
call fcn.180065e14
xor r14d, r14d
lea rcx, [rbp + 0x4b0]
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0xc0000000
mov r8d, esi
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1800c4e38], rax
mov r15d, 0xfeff
cmp rax, 0xffffffffffffffff
je 0x180004996
lea r9, [rsp + 0x60]
mov word [rsp + 0x64], r15w
mov r8d, 2
mov qword [rsp + 0x20], r14
lea rdx, [rsp + 0x64]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8d, 0x104
lea rdx, [rbp - 0x80]
mov rcx, rbx
call fcn.18000ca90
test eax, eax
jne 0x180004885
mov r8, rdi
lea rcx, [rbp - 0x80]
mov edx, 0x104
call fcn.1800423bc
mov esi, r14d
lea rax, [rbp - 0x80]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], si
jne 0x180004893
mov rcx, qword [0x1800c4e38]
lea r9, [rsp + 0x60]
add r8d, r8d
mov qword [rsp + 0x20], r14
lea rdx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [rsp + 0x6a]
lea rcx, [0x1800a5cc0]
movzx edx, word [rsp + 0x76]
lea rbx, str.__MUTEX_
movzx r8d, word [rsp + 0x74]
movzx r9d, word [rsp + 0x72]
movzx r11d, word [rsp + 0x68]
lea rcx, [rcx + rax*8]
movzx eax, word [rsp + 0x6e]
add rcx, 0xfffffffffffffff8
movzx r10d, word [rsp + 0x70]
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x50], r11d
mov qword [rsp + 0x48], rcx
lea rcx, [rbp - 0x80]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], edx
mov edx, 0x104
mov dword [rsp + 0x30], r8d
lea r8, str.___s:__02u:_02u:_02u._03u__2u._s._u_s
mov dword [rsp + 0x28], r9d
lea r9, [0x1800a5d98]
mov dword [rsp + 0x20], r10d
call fcn.1800045b0
lea rax, [rbp - 0x80]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], si
jne 0x180004950
mov rcx, qword [0x1800c4e38]
lea r9, [rsp + 0x60]
add r8d, r8d
mov qword [rsp + 0x20], r14
lea rdx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x1800c4e38]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rax, qword [0x1800c4e38]
cmp rax, 0xffffffffffffffff
jne 0x180004b0e
mov qword [rsp + 0x30], r14
lea rcx, [rbp + 0x4b0]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180004aed
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], r14
mov r8d, 0x1f2
lea rdx, [rbp - 0x80]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x60]
cmp rax, 0x1f4
jae 0x180004b36
mov byte [rbp + rax - 0x80], r14b
inc eax
cmp eax, 0x1f4
jae 0x180004b36
mov byte [rbp + rax - 0x80], r14b
movzx eax, word [rbp - 0x80]
cmp ax, r15w
jne 0x180004a33
lea rax, [rbp - 0x7c]
jmp 0x180004ac7
mov ecx, 0xfffe
cmp ax, cx
jne 0x180004a70
lea rax, [rbp - 0x80]
lea rdx, [rbp - 0x80]
nop word [rax + rax]
movzx ecx, byte [rdx + 3]
lea rdx, [rdx + 2]
mov byte [rax], cl
lea rax, [rax + 2]
movzx ecx, byte [rdx]
mov byte [rax - 1], cl
cmp word [rdx], r14w
jne 0x180004a50
lea rax, [rbp - 0x80]
jmp 0x180004ac7
mov ecx, 0xbbef
cmp ax, cx
jne 0x180004a85
lea r8, [rbp - 0x7e]
mov ecx, 0xfde9
jmp 0x180004a96
lea r8, [rbp - 0x80]
cmp al, 0xbf
jne 0x180004a94
mov ecx, 0xfde9
jmp 0x180004a96
xor ecx, ecx
lea rax, [rbp + 0x190]
mov dword [rsp + 0x28], 0x190
mov r9d, 0xffffffff
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rax, [rbp + 0x190]
mov word [rbp + 0x4ae], r14w
test esi, esi
je 0x180004b0e
mov rcx, qword [0x1800cc980]
lea r8, str.___S_access_locked:___S__
mov r9, rdi
mov qword [rsp + 0x20], rax
mov edx, 1
call fcn.1800073b0
jmp 0x180004b0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1800cc980]
lea r8, str.___S_access_locked_
mov r9, rdi
mov edx, 1
call fcn.1800073b0
mov eax, esi
mov rcx, qword [rbp + 0x6c0]
xor rcx, rsp
call fcn.180032180
mov rbx, qword [rsp + 0x810]
add rsp, 0x7d0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.1800322e0
int3