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

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x250
mov rax, qword [0x140462840]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rsi, rcx
mov ebx, edx
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, Ordinal_521
call sub.MSVCR120.dll_memset
test ebx, ebx
je 0x140190721
dec ebx
je 0x1401905aa
lea rcx, str._bm3_
mov edx, 0x4674
call fcn.1401ad480
xor al, al
jmp 0x140190700
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
call fcn.1401a9700
cmp eax, 0x1000
ja 0x1401906a0
lea rcx, str.shell32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x14019076d
lea rdx, str.SHGetKnownFolderPath
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140190764
lea r9, [rsp + 0x20]
lea rcx, [0x14038cfb0]
xor r8d, r8d
mov edx, 0x8000
mov qword [rsp + 0x20], 0
call rax
test eax, eax
jne 0x14019076d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r8d, Ordinal_261
call qword [sym.imp.MSVCR120.dll_wcsncpy]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rdx, str.Temp_
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], 0
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x14019076d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14019068b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140190824
lea rcx, [rsp + 0x30]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], 0
jne 0x140190694
jmp 0x1401906c7
lea rdx, [rsp + 0x30]
mov ecx, Ordinal_261
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, eax
test rax, rax
je 0x14019076d
cmp rax, 0x104
jae 0x140190866
cmp rax, 0xf6
jae 0x140190866
lea r9, [rsp + 0x30]
lea rdx, [0x140330ed8]
lea rcx, [rsp + 0x30]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x14019076d
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14018e7a0
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140289bf0
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
call fcn.1401a9700
cmp eax, 0x1000
ja 0x14019083f
lea rcx, str.shell32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x14019076d
lea rdx, str.SHGetKnownFolderPath
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x14019078e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._bm3_
mov r8d, 0x4674
mov edx, eax
call fcn.1401ad4c0
xor al, al
jmp 0x140190700
lea r9, [rsp + 0x20]
lea rcx, [0x14038cfb0]
xor r8d, r8d
mov edx, 0x8000
mov qword [rsp + 0x20], 0
call rax
test eax, eax
jne 0x14019076d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r8d, Ordinal_261
call qword [sym.imp.MSVCR120.dll_wcsncpy]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rdx, str.Temp_
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], 0
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x14019076d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1401906f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1401906f1
lea rcx, str._bm3_
mov r8d, 0x4674
mov edx, eax
call fcn.1401ad4c0
xor al, al
jmp 0x140190700
lea rdx, [rsp + 0x30]
mov ecx, Ordinal_261
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, eax
test rax, rax
je 0x14019076d
cmp rax, 0x104
jb 0x1401906f1
lea rcx, str._bm3_
mov edx, 0x4674
call fcn.1401ad480
xor al, al
jmp 0x140190700