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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov rax, qword [0x04b74080]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rbx, rcx
mov qword [rsp + 0x38], rcx
xor esi, esi
lea rax, [rbp + 0xb0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
je 0x4a02005
lea rdx, [rbp - 0x60]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
xorps xmm0, xmm0
test eax, eax
jne 0x4a01eb7
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rsi
xor r8d, r8d
lea rdx, [0x04a2d230]
mov rcx, rbx
call fcn.04a04af0
jmp 0x4a02357
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
lea rax, [rbp - 0x60]
mov rdi, 0xffffffffffffffff
mov r8, rdi
inc r8
cmp byte [rax + r8], sil
jne 0x4a01ed3
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x60]
call fcn.04a04af0
nop
mov edx, 7
lea rcx, [rbp - 0x80]
call fcn.04a01cc0
nop
mov rdx, rax
cmp qword [rax + 0x18], 0xf
jbe 0x4a01f07
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
lea rcx, [rsp + 0x60]
call fcn.04a046a0
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 0xf
jbe 0x4a01f51
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x4a01f4c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x4a0239a
call fcn.04a06860
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0xf
cmova rcx, qword [rsp + 0x60]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4a01fef
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4a01fef
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rsi
lea rax, [rbp - 0x60]
inc rdi
cmp byte [rax + rdi], 0
jne 0x4a01f91
mov r8, rdi
lea rdx, [rbp - 0x60]
mov rcx, rbx
call fcn.04a04af0
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x4a02357
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x4a022e9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x4a02388
jmp 0x4a022e9
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x70]
movups xmmword [rbx + 0x10], xmm1
jmp 0x4a02357
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x70], xmm1
lea rax, [rbp + 0xb0]
mov rdi, 0xffffffffffffffff
mov r8, rdi
inc r8
cmp byte [rax + r8], sil
jne 0x4a02025
lea rdx, [rbp + 0xb0]
lea rcx, [rbp - 0x80]
call fcn.04a04af0
nop
mov r8d, 1
lea rdx, [0x04a2d2c0]
lea rcx, [rbp - 0x80]
call fcn.04a046a0
mov edx, 7
lea rcx, [rsp + 0x60]
call fcn.04a01cc0
nop
mov rdx, rax
cmp qword [rax + 0x18], 0xf
jbe 0x4a02072
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
lea rcx, [rbp - 0x80]
call fcn.04a046a0
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x4a020bd
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x4a020b8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x4a023a0
call fcn.04a06860
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0xf
cmova rcx, qword [rbp - 0x80]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4a02348
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4a02348
lea rdx, [rbp - 0x60]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
xorps xmm0, xmm0
test eax, eax
jne 0x4a02163
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rsi
xor r8d, r8d
lea rdx, [0x04a2d230]
mov rcx, rbx
call fcn.04a04af0
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 0xf
jbe 0x4a02357
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x4a022e9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x4a0238e
jmp 0x4a022e9
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
lea rax, [rbp - 0x60]
mov r8, rdi
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x4a02180
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x60]
call fcn.04a04af0
nop
mov edx, 7
lea rcx, [rsp + 0x40]
call fcn.04a01cc0
nop
mov rdx, rax
cmp qword [rax + 0x18], 0xf
jbe 0x4a021b6
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
lea rcx, [rsp + 0x60]
call fcn.04a046a0
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x4a02202
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x4a021fd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x4a023a6
call fcn.04a06860
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0xf
cmova rcx, qword [rsp + 0x60]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4a022f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4a022f0
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rsi
lea rax, [rbp - 0x60]
inc rdi
cmp byte [rax + rdi], 0
jne 0x4a02246
mov r8, rdi
lea rdx, [rbp - 0x60]
mov rcx, rbx
call fcn.04a04af0
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x4a0229c
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x4a02297
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x4a02382
call fcn.04a06860
movdqa xmm0, xmmword [0x04b6ea90]
movdqu xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x60], 0
mov rdx, qword [rbp - 0x68]
cmp rdx, 0xf
jbe 0x4a02357
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x4a022e9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x4a02394
call fcn.04a06860
jmp 0x4a02357
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x70]
movups xmmword [rbx + 0x10], xmm1
movdqa xmm0, xmmword [0x04b6ea90]
movdqu xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x60], 0
mov rdx, qword [rbp - 0x68]
cmp rdx, 0xf
jbe 0x4a02357
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x4a022e9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x4a02394
jmp 0x4a022e9
movups xmm0, xmmword [rbp - 0x80]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rbp - 0x70]
movups xmmword [rbx + 0x10], xmm1
mov rax, rbx
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.04a06840
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.04a0f13c
nop
call fcn.04a0f13c
int3
call fcn.04a0f13c
int3
call fcn.04a0f13c
nop
call fcn.04a0f13c
nop
call fcn.04a0f13c
nop
call fcn.04a0f13c
int3