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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2e0]
sub rsp, 0x3e0
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x430], rbx
mov rax, qword [0x14016ca00]
xor rax, rsp
mov qword [rbp + 0x2d0], rax
mov rdi, rdx
mov qword [rsp + 0x38], rdx
mov r15, rcx
xor eax, eax
mov qword [rbp - 0x28], rax
lea rdx, [rcx + 8]
lea rcx, [rbp - 0x28]
call fcn.140015bf0
nop
xor eax, eax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
xor r14d, r14d
mov qword [rbp - 0x10], r14
lea rdx, [rbp - 0x20]
mov rcx, qword [r15]
call fcn.1400735d0
test al, al
jne 0x1400749c4
xor sil, sil
mov r12, qword [rbp - 0x20]
jmp 0x140075183
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r14
movdqa xmmword [rsp + 0x60], xmm0
movdqa xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], r14
mov dword [rbp - 0x78], 0xffffffff
mov rbx, qword [r15]
mov rax, qword [rbx + 0x40]
cmp qword [rbx + 0x38], rax
je 0x140074a2e
lea rdx, [rbx + 0x38]
lea rcx, [rsp + 0x40]
call fcn.140075290
lea rdx, [rbx + 0x50]
lea rcx, [rsp + 0x58]
call fcn.140075290
lea rdx, [rbx + 0x68]
lea rcx, [rsp + 0x70]
call fcn.140075290
mov eax, dword [rbx + 0x80]
mov dword [rbp - 0x78], eax
lea r8, [rbp - 0x20]
lea rdx, [rsp + 0x40]
call fcn.140072d20
mov r12, qword [rbp - 0x20]
test al, al
jne 0x140074a4c
xor sil, sil
jmp 0x140075178
xor eax, eax
mov qword [rbp + 0x40], rax
mov qword [rbp + 0x48], rax
mov qword [rbp + 0x50], rax
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x40], xmm0
mov qword [rbp + 0x50], r14
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.140071f00
mov r13, qword [rbp + 0x40]
mov rsi, qword [rbp + 0x48]
cmp r13, rsi
jne 0x140074a89
xor sil, sil
jmp 0x14007515f
mov qword [rbp + 0x30], r14
mov qword [rbp + 0x38], r14
mov qword [rbp + 0x38], 7
mov qword [rbp + 0x30], r14
mov word [rbp + 0x20], r14w
lea rdx, [rbp + 0x20]
mov rcx, rdi
call fcn.140062b00
mov qword [rbp - 0x38], r14
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], r14
mov word [rbp - 0x48], r14w
xor r8d, r8d
lea rdx, [0x1400f50d8]
lea rcx, [rbp - 0x48]
call fcn.140006900
nop
mov byte [rbp + 0x60], 0
mov qword [rbp + 0x78], r14
mov qword [rbp + 0x80], r14
mov qword [rbp + 0x80], 7
mov qword [rbp + 0x78], r14
mov word [rbp + 0x68], r14w
mov qword [rbp + 0x98], r14
mov qword [rbp + 0xa0], r14
mov qword [rbp + 0xa0], 7
mov qword [rbp + 0x98], r14
mov word [rbp + 0x88], r14w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x48]
lea rcx, [rbp + 0x88]
call fcn.140006b90
nop
cmp qword [rbp + 0x98], 0
jne 0x140074b62
mov r8d, 3
lea rdx, [0x14012e550]
lea rcx, [rbp + 0x88]
call fcn.140006900
nop
cmp qword [rbp - 0x30], 8
jb 0x140074b72
mov rcx, qword [rbp - 0x48]
call fcn.1400bd20c
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], r14
mov word [rbp - 0x48], r14w
mov qword [rbp + 0x10], r14
mov qword [rbp + 0x18], r14
mov qword [rbp + 0x18], 7
mov qword [rbp + 0x10], r14
mov word [rbp], r14w
cmp qword [rbp + 0x30], 0
jne 0x140074bc4
lea r8, [rbp]
lea rdx, [rbp + 0x88]
lea rcx, [rbp + 0x60]
call fcn.140068400
test al, al
je 0x140075110
jmp 0x140074c93
cmp byte [rbp + 0x60], 0
je 0x140074bdb
lea rcx, [rbp + 0x68]
call fcn.140079320
test al, al
sete cl
mov byte [rbp + 0x60], cl
mov word [rbp + 0xc0], r14w
xor edx, edx
mov r8d, 0x20a
lea rcx, [rbp + 0xc2]
call fcn.1400c2130
lea rdx, [rbp + 0x88]
cmp qword [rbp + 0xa0], 8
cmovae rdx, qword [rbp + 0x88]
lea rcx, [rbp + 0x20]
cmp qword [rbp + 0x38], 8
cmovae rcx, qword [rbp + 0x20]
lea r9, [rbp + 0xc0]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x140075110
mov word [rbp + 0x2ca], r14w
cmp word [rbp + 0xc0], 0
jne 0x140074c4b
mov r8, r14
jmp 0x140074c6b
lea rax, [rbp + 0xc0]
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140074c60
lea rdx, [rbp + 0xc0]
lea rcx, [rbp]
call fcn.140006900
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp]
lea rcx, [rbp + 0x68]
call fcn.140006b90
mov byte [rbp + 0x60], 1
mov ecx, 8
call fcn.1400bd270
mov qword [rbp - 0x60], rax
test rax, rax
je 0x140074caf
mov qword [rax], 0xffffffffffffffff
jmp 0x140074cb2
mov rax, r14
mov qword [rbp - 0x50], rax
mov dword [rsp + 0x20], 2
mov r9d, 1
mov r8d, 0x40000000
lea rdx, [rbp]
lea rcx, [rbp - 0x50]
call fcn.14006fad0
test al, al
je 0x140075102
mov dword [rbp - 0x68], r14d
mov rdi, rsi
sub rdi, r13
mov rbx, qword [rbp - 0x50]
test rbx, rbx
je 0x140075102
test r13, r13
je 0x1400750e8
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x140075102
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x68]
mov r8d, edi
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400750e8
mov eax, dword [rbp - 0x68]
cmp edi, eax
jne 0x1400750e8
sub esi, r13d
cmp eax, esi
jne 0x1400750e8
mov rdi, qword [rbp - 0x18]
mov esi, edi
sub esi, r12d
mov dword [rbp - 8], esi
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x140075102
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x68]
mov r8d, 4
lea rdx, [rbp - 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400750e8
cmp dword [rbp - 0x68], 4
jne 0x1400750e8
cmp r12, rdi
je 0x140074dd1
sub rdi, r12
test r12, r12
je 0x1400750e8
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x140075102
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x68]
mov r8d, edi
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400750e8
mov eax, dword [rbp - 0x68]
cmp edi, eax
jne 0x1400750e8
cmp eax, esi
jne 0x1400750e8
mov edi, 1
cmp qword [rbx], 0xffffffffffffffff
je 0x140074e1c
mov qword [rbp - 0x60], 0
mov r9d, edi
lea r8, [rbp - 0x5c]
xor edx, edx
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rbp - 0x60], eax
cmp eax, 0xffffffff
jne 0x140074e08
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140074e1c
mov r14, qword [rbp - 0x60]
mov rdx, r14
lea rcx, [rbp - 0x50]
call fcn.14006fc90
mov rbx, qword [rbp - 0x50]
test rbx, rbx
je 0x140074e3b
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x140074e3b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140074e3b
mov qword [rbx], 0xffffffffffffffff
mov rax, qword [rbp - 0x28]
test rax, rax
je 0x140074e5a
mov rcx, qword [rax]
test rcx, rcx
je 0x140074e52
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbp - 0x28], 0
xor eax, eax
mov qword [rbp + 0xb0], rax
mov qword [rbp + 0xb8], rax
lea rdx, [r15 + 0x10]
lea rcx, [rbp + 0xb0]
call fcn.14000c3d0
nop
xor sil, sil
xor r15b, r15b
mov ecx, 8
call fcn.1400bd270
mov qword [rbp - 0x60], rax
test rax, rax
je 0x140074e9b
mov qword [rax], 0xffffffffffffffff
mov qword [rbp - 0x60], rax
mov dword [rsp + 0x20], 3
mov r9d, edi
mov r8d, 0x80000000
lea rdx, [rbp]
lea rcx, [rbp - 0x60]
call fcn.14006fad0
test al, al
je 0x140074ece
lea rcx, [rbp - 0x60]
call fcn.14006fc10
test al, al
jne 0x140074ed1
mov r15b, 1
mov ecx, 8
call fcn.1400bd270
mov rbx, rax
mov qword [rbp - 0x58], rax
test rax, rax
je 0x140074ef0
mov qword [rax], 0xffffffffffffffff
jmp 0x140074ef2
xor ebx, ebx
mov qword [rbp - 0x58], rbx
mov rdi, qword [rbp - 0x60]
test r15b, r15b
mov r15, qword [rsp + 0x38]
jne 0x140075038
mov dword [rsp + 0x20], 4
mov r9d, 1
mov r8d, 0x40000000
mov rdx, r15
lea rcx, [rbp - 0x58]
call fcn.14006fad0
test al, al
je 0x140075034
xor ebx, ebx
mov dword [rbp - 0x68], ebx
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x38], rbx
mov byte [rsp + 0x30], al
lea rdx, [r14 + 8]
lea r8, [rsp + 0x30]
lea rcx, [rbp - 0x48]
call fcn.140075490
mov r15, qword [rbp - 0x48]
test rdi, rdi
je 0x140075012
test r15, r15
je 0x140075012
cmp qword [rdi], 0xffffffffffffffff
je 0x140075012
mov dword [rbp - 0x68], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x68]
mov r8d, r14d
mov rdx, r15
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140075012
mov eax, dword [rbp - 0x68]
cmp r14, rax
jne 0x140075012
lea rcx, [rbp - 0x58]
call fcn.14006fc10
test al, al
je 0x140075012
mov dword [rbp - 0x68], ebx
mov rbx, qword [rbp - 0x58]
test rbx, rbx
je 0x140075016
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x140075016
mov qword [rsp + 0x20], 0
lea r9, [rbp - 0x68]
mov r8d, r14d
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140075016
mov eax, dword [rbp - 0x68]
cmp r14d, eax
jne 0x140075016
cmp rax, r14
jne 0x140075016
mov rdx, r14
lea rcx, [rbp - 0x58]
call fcn.14006fc90
movzx esi, sil
test al, al
mov eax, 1
cmovne esi, eax
mov rbx, qword [rbp - 0x58]
test r15, r15
je 0x14007503d
mov rcx, r15
call fcn.1400bd20c
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x48], xmm0
xor r14d, r14d
mov qword [rbp - 0x38], r14
jmp 0x140075040
mov rbx, qword [rbp - 0x58]
xor r14d, r14d
jmp 0x140075045
xor r14d, r14d
mov r15, qword [rsp + 0x38]
test rbx, rbx
je 0x140075064
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x140075064
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140075064
mov qword [rbx], 0xffffffffffffffff
test rdi, rdi
je 0x140075083
mov rcx, qword [rdi]
cmp rcx, 0xffffffffffffffff
je 0x140075083
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140075083
mov qword [rdi], 0xffffffffffffffff
test sil, sil
jne 0x1400750c6
mov rbx, r14
nop dword [rax + rax]
mov rdx, r15
lea rcx, [rbp]
call fcn.140078da0
movzx esi, al
call qword [sym.imp.KERNEL32.dll_GetLastError]
test sil, sil
jne 0x1400750c6
add eax, 0xffffffe0
cmp eax, 1
ja 0x1400750bd
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
cmp rbx, 0xa
jb 0x140075090
lea rcx, [rbp - 0x58]
call fcn.14006fa80
nop
lea rcx, [rbp - 0x60]
call fcn.14006fa80
nop
lea rcx, [rbp + 0xb0]
call fcn.14000c430
jmp 0x140075105
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x140075102
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140075102
mov qword [rbx], 0xffffffffffffffff
xor sil, sil
lea rcx, [rbp - 0x50]
call fcn.14006fa80
jmp 0x140075113
xor sil, sil
cmp qword [rbp + 0x18], 8
jb 0x140075123
mov rcx, qword [rbp]
call fcn.1400bd20c
mov qword [rbp + 0x18], 7
mov qword [rbp + 0x10], r14
mov word [rbp], r14w
lea rcx, [rbp + 0x60]
call fcn.140068380
nop
cmp qword [rbp + 0x38], 8
jb 0x14007514e
mov rcx, qword [rbp + 0x20]
call fcn.1400bd20c
mov qword [rbp + 0x38], 7
mov qword [rbp + 0x30], r14
mov word [rbp + 0x20], r14w
test r13, r13
je 0x140075178
mov rcx, r13
call fcn.1400bd20c
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x40], xmm0
mov qword [rbp + 0x50], r14
lea rcx, [rsp + 0x40]
call fcn.140073c80
nop
test r12, r12
je 0x14007519c
mov rcx, r12
call fcn.1400bd20c
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], r14
lea rcx, [rbp - 0x28]
call fcn.140015c20
movzx eax, sil
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.1400bcae0
mov rbx, qword [rsp + 0x430]
add rsp, 0x3e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret