Function at 0x18015dfa0
Capabilities:
Create directory
Get common file path

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x600]
sub rsp, 0x700
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x1804e0010]
xor rax, rsp
mov qword [rbp + 0x5f0], rax
mov rdi, r8
mov rsi, rdx
mov rdx, rcx
lea rcx, [rbp - 0x80]
call fcn.180005900
nop
xor r14d, r14d
cmp qword [rbp - 0x70], r14
jne 0x18015e153
mov qword [rsp + 0x58], r14
lea rax, [0x1804f21b8]
mov qword [rsp + 0x58], rax
mov rcx, qword [0x1804f21b8]
test rcx, rcx
je 0x18015e014
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov r8, qword [0x1804e2c38]
test r8, r8
je 0x18015e05c
lea rdx, [0x1804e2c28]
cmp qword [0x1804e2c40], 8
cmovae rdx, qword [0x1804e2c28]
lea rcx, [rbp - 0x80]
call fcn.180005cd0
nop
mov rcx, qword [0x1804f21b8]
test rcx, rcx
je 0x18015e14e
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x18015e14e
xor edx, edx
mov r8d, 0x20c
lea rcx, [rbp - 0x40]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp - 0x40]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x18015e126
mov word [rbp + 0x1ca], r14w
xor edx, edx
mov r8d, 0x412
lea rcx, [rbp + 0x1d0]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x208
lea rdx, [rbp + 0x1d0]
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea ecx, [rax - 1]
cmp ecx, 0x207
ja 0x18015e107
mov eax, eax
add rax, rax
cmp rax, 0x412
jae 0x18015e514
mov word [rbp + rax + 0x1d0], r14w
lea rax, [rbp + 0x1d0]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x18015e0f0
lea rdx, [rbp + 0x1d0]
jmp 0x18015e037
lea rax, [rbp - 0x40]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x18015e112
lea rdx, [rbp - 0x40]
jmp 0x18015e037
mov rcx, qword [0x1804f21b8]
test rcx, rcx
je 0x18015e138
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbp - 0x70], r14
lea rax, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rax, qword [rbp - 0x80]
mov word [rax], r14w
mov qword [rsp + 0x58], r14
mov ecx, dword [0x1804f1778]
mov rax, qword gs:[0x58]
mov edx, 4
mov rbx, qword [rax + rcx*8]
add rbx, rdx
mov eax, dword [rbx]
cmp dword [0x1804f3208], eax
jg 0x18015e51a
mov eax, dword [rbx]
cmp dword [0x1804f3204], eax
jg 0x18015e556
mov eax, dword [rbx]
cmp dword [0x1804f320c], eax
jg 0x18015e4bc
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x48], r14
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x48], 7
mov word [rbp - 0x60], r14w
mov eax, dword [0x1804f31fc]
nop word [rax + rax]
mov ecx, dword [0x1804f3200]
inc ecx
mov dword [0x1804f3200], ecx
mov r8, rsi
cmp qword [rsi + 0x18], 8
jb 0x18015e1db
mov r8, qword [rsi]
mov dword [rsp + 0x20], ecx
mov r9d, eax
lea rdx, str._sD._.03d._.03d
lea rcx, [rbp - 0x60]
call fcn.18015a250
cmp qword [rbp - 0x50], 0
je 0x18015e3f2
lea r8, [rbp - 0x60]
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x30]
call fcn.180160610
mov rbx, rax
cmp rdi, rax
je 0x18015e23d
mov rcx, rdi
call fcn.180005c50
movups xmm0, xmmword [rbx]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 7
mov word [rbx], r14w
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x18015e27f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18015e27a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18015e37a
call fcn.180393fb0
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r14w
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x18015e2a0
mov rcx, qword [rdi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x18015e3da
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], r14w
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.18017ae70
test al, al
je 0x18015e300
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rcx, qword [rsp + 0x60]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x18015e381
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x18015e342
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18015e33d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18015e3eb
call fcn.180393fb0
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], r14w
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x18015e3f2
mov eax, dword [0x1804f31fc]
inc eax
mov dword [0x1804f31fc], eax
jmp 0x18015e1c0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x18015e3c6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18015e3c1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18015e3c1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], r14w
mov edx, 0x10
mov rcx, rdi
call fcn.18015fbe0
mov bl, 1
jmp 0x18015e3f4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
xor bl, bl
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x18015e437
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18015e432
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18015e432
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x48], 7
mov word [rbp - 0x60], r14w
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x18015e48b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18015e486
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18015e486
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], r14w
movzx eax, bl
mov rcx, qword [rbp + 0x5f0]
xor rcx, rsp
call fcn.180393f50
add rsp, 0x700
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rcx, [0x1804f320c]
call fcn.180394d6c
cmp dword [0x1804f320c], 0xffffffff
jne 0x18015e198
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov r9d, eax
mov eax, 0x68db8bad
imul r9d
sar edx, 0xb
mov r8d, edx
shr r8d, 0x1f
add edx, r8d
imul edx, edx, 0x1388
sub r9d, edx
mov dword [0x1804f3200], r9d
lea rcx, [0x1804f320c]
call fcn.180394d0c
jmp 0x18015e198
call fcn.1803945d8
nop
lea rcx, [0x1804f3208]
call fcn.180394d6c
cmp dword [0x1804f3208], 0xffffffff
jne 0x18015e17c
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
nop
lea rcx, [0x1804f3208]
call fcn.180394d0c
jmp 0x18015e17c
lea rcx, [0x1804f3204]
call fcn.180394d6c
cmp dword [0x1804f3204], 0xffffffff
jne 0x18015e18a
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov r9d, eax
mov eax, 0x10624dd3
imul r9d
sar edx, 6
mov r8d, edx
shr r8d, 0x1f
add edx, r8d
imul edx, edx, 0x3e8
sub r9d, edx
mov dword [0x1804f31fc], r9d
lea rcx, [0x1804f3204]
call fcn.180394d0c
jmp 0x18015e18a