Function at 0x180026500
Capabilities:
Create directory

Disassembly:
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x168
mov qword [rsp + 0xa8], 0xfffffffffffffffe
mov rax, qword [0x1800881a0]
xor rax, rsp
mov qword [rsp + 0x158], rax
mov dword [rsp + 0x20], 0
cmp qword [rsp + 0x170], 0
je 0x180026560
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x170]
movzx eax, word [rcx + rax]
test eax, eax
jne 0x180026567
xor al, al
jmp 0x180026bb1
mov dword [rsp + 0x30], 0
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180087a10]
mov eax, dword [rcx + rax]
xor edx, edx
mov ecx, SafeArrayGetElement
div rcx
mov rax, rdx
mov dword [rsp + 0x44], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180087a10]
movsxd rdx, dword [rsp + 0x44]
lea r8, [0x180087a10]
mov eax, dword [rcx + rax]
mov dword [r8 + rdx*4], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180087a10]
mov eax, dword [rcx + rax]
inc eax
mov ecx, 4
imul rcx, rcx, 0
lea rdx, [0x180087a10]
mov dword [rdx + rcx], eax
movzx eax, byte [rsp + 0x180]
test eax, eax
je 0x1800269ca
mov dword [rsp + 0x50], 1
mov eax, dword [rsp + 0x50]
cdq
sub eax, edx
sar eax, 1
cmp eax, 0x32
jle 0x18002661d
xor r9d, r9d
lea r8, [0x180089ffc]
lea rdx, [0x18008a004]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov edx, 1
lea rcx, [rsp + 0x110]
call fcn.180019030
mov r8, 0xffffffffffffffff
mov rdx, qword [rsp + 0x170]
lea rcx, [rsp + 0x110]
call fcn.18001be50
nop
mov edx, 1
lea rcx, [rsp + 0x128]
call fcn.180019030
lea rcx, [rsp + 0x128]
call fcn.18001bf00
nop
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180087a10]
mov eax, dword [rcx + rax]
xor edx, edx
mov ecx, SafeArrayGetElement
div rcx
mov rax, rdx
mov dword [rsp + 0x4c], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180087a10]
movsxd rdx, dword [rsp + 0x4c]
lea r8, [0x180087a10]
mov eax, dword [rcx + rax]
mov dword [r8 + rdx*4], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180087a10]
mov eax, dword [rcx + rax]
inc eax
mov ecx, 4
imul rcx, rcx, 0
lea rdx, [0x180087a10]
mov dword [rdx + rcx], eax
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0xf8]
mov qword [rsp + 0xa0], rax
mov r8, 0xffffffffffffffff
lea rdx, [0x18008a910]
mov rcx, qword [rsp + 0xa0]
call fcn.18001be50
mov qword [rsp + 0x60], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x110]
call fcn.180022220
mov qword [rsp + 0x38], rax
mov edx, 1
lea rcx, [rsp + 0x140]
call fcn.180019030
cmp qword [rsp + 0x38], 0
jle 0x180026799
lea rcx, [rsp + 0x110]
call fcn.1800324e0
mov r8, qword [rsp + 0x38]
mov rdx, rax
lea rcx, [rsp + 0xc8]
call fcn.18001be50
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x98], rax
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x58], rax
jmp 0x1800267d8
lea rdx, [rsp + 0x110]
lea rcx, [rsp + 0xb0]
call fcn.18001bd80
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x70], rax
mov eax, dword [rsp + 0x20]
or eax, 2
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x80], rax
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x140]
call fcn.18001bd80
nop
mov eax, dword [rsp + 0x20]
and eax, 2
test eax, eax
je 0x180026819
and dword [rsp + 0x20], 0xfffffffd
lea rcx, [rsp + 0xb0]
call fcn.180011730
nop
mov eax, dword [rsp + 0x20]
and eax, 1
test eax, eax
je 0x180026836
and dword [rsp + 0x20], 0xfffffffe
lea rcx, [rsp + 0xc8]
call fcn.180011730
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0x128]
call fcn.180020f20
lea rcx, [rsp + 0x128]
call fcn.1800324c0
xor edx, edx
mov rcx, rax
call fcn.1800273c0
movzx eax, al
test eax, eax
jne 0x1800268a4
lea rcx, [rsp + 0x128]
call fcn.1800324c0
mov rdx, qword [rsp + 0x178]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x1800268a4
lea rcx, [rsp + 0x140]
call fcn.180011730
jmp 0x1800269ad
lea rcx, [rsp + 0x110]
call fcn.1800324e0
mov rcx, qword [rsp + 0x38]
lea rax, [rax + rcx*2 + 2]
mov r8, 0xffffffffffffffff
mov rdx, rax
lea rcx, [rsp + 0xe0]
call fcn.18001be50
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x110]
call fcn.18001c490
nop
lea rcx, [rsp + 0xe0]
call fcn.180011730
cmp qword [rsp + 0x38], 0
jle 0x180026994
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180087a10]
mov eax, dword [rcx + rax]
xor edx, edx
mov ecx, SafeArrayGetElement
div rcx
mov rax, rdx
mov dword [rsp + 0x54], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180087a10]
movsxd rdx, dword [rsp + 0x54]
lea r8, [0x180087a10]
mov eax, dword [rcx + rax]
mov dword [r8 + rdx*4], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180087a10]
mov eax, dword [rcx + rax]
inc eax
mov ecx, 4
imul rcx, rcx, 0
lea rdx, [0x180087a10]
mov dword [rdx + rcx], eax
mov dx, 0x5c
lea rcx, [rsp + 0x128]
call fcn.180023840
nop
lea rcx, [rsp + 0x140]
call fcn.180011730
cmp qword [rsp + 0x38], 0
jg 0x1800266e4
lea rcx, [rsp + 0x128]
call fcn.180011730
nop
lea rcx, [rsp + 0x110]
call fcn.180011730
jmp 0x180026a43
xor edx, edx
mov rcx, qword [rsp + 0x170]
call fcn.1800273c0
movzx eax, al
test eax, eax
jne 0x1800269fc
mov rdx, qword [rsp + 0x178]
mov rcx, qword [rsp + 0x170]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [rsp + 0x30], eax
jmp 0x180026a43
mov eax, reloc.OLEAUT32.dll_SafeArrayDestroy
mov word [rsp + 0x2c], ax
movsx rax, word [rsp + 0x2c]
lea rcx, [0x180087a10]
cmp dword [rcx + rax*4], 1
jne 0x180026a3b
movsx rax, word [rsp + 0x2c]
lea rcx, [0x180087a10]
mov eax, dword [rcx + rax*4]
inc eax
movsx rcx, word [rsp + 0x2c]
lea rdx, [0x180087a10]
mov dword [rdx + rcx*4], eax
mov dword [rsp + 0x30], 1
cmp dword [rsp + 0x30], 0
je 0x180026a6a
mov r8, qword [rsp + 0x170]
lea rdx, [0x18008a918]
mov ecx, 2
call fcn.180040a70
mov al, 1
jmp 0x180026bb1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0xb7
jne 0x180026b11
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180087a10]
mov eax, dword [rcx + rax]
xor edx, edx
mov ecx, SafeArrayGetElement
div rcx
mov rax, rdx
mov dword [rsp + 0x48], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180087a10]
movsxd rdx, dword [rsp + 0x48]
lea r8, [0x180087a10]
mov eax, dword [rcx + rax]
mov dword [r8 + rdx*4], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180087a10]
mov eax, dword [rcx + rax]
inc eax
mov ecx, 4
imul rcx, rcx, 0
lea rdx, [0x180087a10]
mov dword [rdx + rcx], eax
mov r8, qword [rsp + 0x170]
lea rdx, [0x18008a938]
mov ecx, 2
call fcn.180040a70
mov al, 1
jmp 0x180026bb1
mov r9d, dword [rsp + 0x40]
mov r8, qword [rsp + 0x170]
lea rdx, [0x18008a968]
mov ecx, 3
call fcn.180040a70
mov eax, 1
mov word [rsp + 0x28], ax
movsx rax, word [rsp + 0x28]
lea rcx, [0x180087a10]
cmp dword [rcx + rax*4], 1
jne 0x180026b6e
movsx rax, word [rsp + 0x28]
lea rcx, [0x180087a10]
mov eax, dword [rcx + rax*4]
inc eax
movsx rcx, word [rsp + 0x28]
lea rdx, [0x180087a10]
mov dword [rdx + rcx*4], eax
xor al, al
jmp 0x180026bb1
mov rcx, qword [rsp + 0x158]
xor rcx, rsp
call fcn.18004d370
add rsp, 0x168
ret