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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x6a0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x6f8], rbx
mov rax, qword [0x1800ac2b8]
xor rax, rsp
mov qword [rsp + 0x690], rax
mov r14, r8
mov r12, rdx
mov rbx, rcx
mov qword [rsp + 0x58], 7
xor edi, edi
mov qword [rsp + 0x50], rdi
mov word [rsp + 0x40], di
mov rcx, qword [rcx + 0x80]
sub rcx, qword [rbx + 0x78]
movabs r15, 0x6666666666666667
mov rax, r15
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov ebp, edi
mov rsi, rdi
test edx, edx
jle 0x18001e3d8
movsxd r13, edx
nop dword [rax]
movsxd rcx, ebp
mov rax, qword [rbx + 0xb0]
sub rax, qword [rbx + 0xa8]
sar rax, 2
cmp rcx, rax
jb 0x18001e37f
call fcn.1800610c8
mov rcx, qword [rbx + 0x80]
sub rcx, qword [rbx + 0x78]
mov rax, r15
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rsi, rdx
jb 0x18001e3a8
call fcn.1800610c8
mov rax, qword [rbx + 0x78]
cmp qword [rdi + rax + 0x20], 8
jb 0x18001e3bb
mov rdx, qword [rdi + rax + 8]
jmp 0x18001e3c0
lea rdx, [rdi + rax + 8]
lea rcx, [rsp + 0x38]
call fcn.18001d140
inc ebp
inc rsi
add rdi, 0x28
cmp rsi, r13
jl 0x18001e360
lea r9, [0x18008c764]
or r8d, 0xffffffff
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.18001d330
test eax, eax
jne 0x18001e416
mov rcx, r12
call fcn.1800232b0
nop
cmp qword [rsp + 0x58], 8
jb 0x18001e40f
mov rcx, qword [rsp + 0x40]
call fcn.18005eeb4
xor eax, eax
jmp 0x18001e64a
mov r8d, 2
lea rdx, [0x18008c7dc]
mov rcx, r12
call fcn.180003900
mov r8d, 6
lea rdx, str._ieml.
mov rcx, r12
call fcn.180019270
lea rcx, case.0x180034a3c.6
mov rax, qword [case.0x180034a3c.6]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x20], rax
test r14, r14
je 0x18001e475
mov r8, r14
lea rdx, str.______s_
lea rcx, [rsp + 0x20]
call fcn.180011550
jmp 0x18001e486
lea rdx, [0x18008c810]
lea rcx, [rsp + 0x20]
call fcn.180011550
xor eax, eax
or rsi, 0xffffffffffffffff
mov rcx, rsi
mov rdx, qword [rsp + 0x20]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r12
call fcn.180019270
lea rdx, [rsp + 0x270]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r9, [rsp + 0x60]
xor r8d, r8d
lea rdx, [0x18008c820]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
xor edx, edx
mov word [rax], dx
lea rcx, case.0x180034a3c.6
mov rax, qword [case.0x180034a3c.6]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x28]
call fcn.180018990
mov r8, qword [rsp + 0x28]
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.180061594
xor edx, edx
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor r9d, r9d
mov r8d, 0x104
lea rdx, [rsp + 0x480]
mov rcx, rbx
call fcn.18001c320
lea rcx, [rsp + 0x480]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov rdx, rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x60]
call fcn.1800183c0
test eax, eax
je 0x18001e5ba
lea r8d, [rsi + 2]
lea rdx, str.___a
mov rcx, r12
call fcn.180019270
xor eax, eax
mov rcx, rsi
lea rdi, [rsp + 0x60]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x60]
mov rcx, r12
call fcn.180019270
lea r8d, [rsi + 2]
lea rdx, [0x18008c82c]
mov rcx, r12
call fcn.180019270
jmp 0x18001e5db
xor eax, eax
mov rcx, rsi
lea rdi, [rsp + 0x60]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x60]
mov rcx, r12
call fcn.180019270
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, qword [rsp + 0x40]
mov rcx, r12
call fcn.18001d140
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18001e615
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x18001e633
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
nop
cmp qword [rsp + 0x58], 8
jb 0x18001e645
mov rcx, qword [rsp + 0x40]
call fcn.18005eeb4
mov eax, 1
mov rcx, qword [rsp + 0x690]
xor rcx, rsp
call fcn.18005f4d0
mov rbx, qword [rsp + 0x6f8]
add rsp, 0x6a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret