Function at 0x180045070
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x130]
sub rsp, 0x230
mov rax, qword [0x1800a2010]
xor rax, rsp
mov qword [rbp + 0x128], rax
mov rbx, rdx
mov rdi, rcx
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
xor r12d, r12d
mov qword [rbp + 0x30], r12
mov qword [rbp + 0x38], 7
mov word [rbp + 0x20], r12w
mov qword [rbp + 0x40], r12
mov dword [rdx], r12d
lea r13, [0x1800a23c8]
mov qword [rdx + 8], r13
xor r15b, r15b
call fcn.180043cd0
add rax, qword [rdi + 0x20]
cmp qword [rdi + 0x10], rax
jbe 0x1800450ff
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1800450f2
mov rcx, qword [rdi]
cmp word [rcx + rax*2], 0x5c
mov r14d, 1
je 0x180045102
mov r14, r12
mov rcx, rdi
call fcn.180043cd0
add r14, rax
add r14, qword [rdi + 0x20]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
mov r8, r14
cmp qword [rdi + 0x10], r14
cmovb r8, qword [rdi + 0x10]
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x18004513b
mov rdx, qword [rdi]
lea rcx, [rsp + 0x40]
call fcn.18004e630
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x20]
call fcn.18004dea0
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x180045198
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180045193
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180045193
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180067b70
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
mov rax, qword [rdi + 0x10]
cmp rax, r14
jb 0x180045c16
sub rax, r14
mov r8, 0xffffffffffffffff
cmp rax, r8
cmovb r8, rax
cmp qword [rdi + 0x18], 8
jb 0x1800451d1
mov rdi, qword [rdi]
lea rdx, [rdi + r14*2]
lea rcx, [rsp + 0x40]
call fcn.18004e630
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbp - 0x28], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rbp - 0x18], xmm1
mov qword [rbp - 8], r12
mov edx, 2
lea rcx, [rbp - 0x28]
call fcn.180041880
xorps xmm0, xmm0
movups xmmword [rbp + 0x50], xmm0
movups xmmword [rbp + 0x60], xmm0
movups xmmword [rbp + 0x70], xmm0
movups xmmword [rbp + 0x80], xmm0
movups xmmword [rbp + 0x90], xmm0
lea rax, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rax, qword [rbp - 0x28]
mov qword [rbp - 0x30], rax
lea r8, [rbp - 0x30]
lea rdx, [rbp - 0x28]
lea rcx, [rbp + 0x50]
call fcn.180044540
xorps xmm0, xmm0
movups xmmword [rbp + 0xb0], xmm0
movups xmmword [rbp + 0xc0], xmm0
movups xmmword [rbp + 0xd0], xmm0
movups xmmword [rbp + 0xe0], xmm0
movups xmmword [rbp + 0xf0], xmm0
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rcx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x18]
lea rcx, [rcx + rax*2]
mov qword [rbp - 0x30], rcx
lea r8, [rbp - 0x30]
lea rdx, [rbp - 0x28]
lea rcx, [rbp + 0xb0]
call fcn.180044540
mov rax, qword [rbp + 0xd0]
cmp qword [rbp + 0x70], rax
je 0x180045ab5
lea rdx, [rbp + 0x78]
lea rcx, [rbp]
call fcn.18004cb60
lea rdx, [rbp]
cmp qword [rbp + 0x18], 8
cmovae rdx, qword [rbp]
mov rax, qword [rbp + 0x10]
lea r9, [rdx + rax*2]
lea rdx, [rbp]
cmovae rdx, qword [rbp]
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], r12
cmp rdx, r9
jne 0x1800452fc
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], r12w
jmp 0x18004530f
sub r9, rdx
sar r9, 1
mov r8, r9
lea rcx, [rsp + 0x60]
call fcn.18004e630
mov qword [rbp - 0x80], r12
mov edx, 2
lea rcx, [rsp + 0x60]
call fcn.180041880
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x20]
call fcn.180042a20
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x180045372
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004536d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004574f
call fcn.180067b70
mov qword [rbp + 0xa0], r12
mov qword [rbp + 0xa8], r13
mov dword [rsp + 0x38], r12d
lea r8, [rbp + 0xa0]
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x30]
call fcn.1800426e0
mov rax, qword [rbp - 0x30]
cmp dword [rbp + 0xa0], r12d
je 0x1800453af
cmp eax, 1
jne 0x180045756
cmp eax, 1
jbe 0x180045579
cmp eax, 3
je 0x1800456c2
mov dword [rsp + 0x40], 0xb7
mov qword [rsp + 0x48], r13
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbx], xmm0
mov rdx, qword [rbp + 0x18]
cmp rdx, 8
jb 0x180045416
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180045411
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180045572
call fcn.180067b70
mov qword [rbp + 0x10], r12
mov qword [rbp + 0x18], 7
mov word [rbp], r12w
mov rdx, qword [rbp + 0xf0]
cmp rdx, 8
jb 0x18004546d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xd8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180045468
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180045572
call fcn.180067b70
mov qword [rbp + 0xe8], r12
mov qword [rbp + 0xf0], 7
mov word [rbp + 0xd8], r12w
mov rdx, qword [rbp + 0x90]
cmp rdx, 8
jb 0x1800454ca
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800454c5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180045572
call fcn.180067b70
mov qword [rbp + 0x88], r12
mov qword [rbp + 0x90], 7
mov word [rbp + 0x78], r12w
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x18004551d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180045518
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180045572
call fcn.180067b70
movdqa xmm0, xmmword [0x1800939f0]
movdqu xmmword [rbp - 0x18], xmm0
mov word [rbp - 0x28], r12w
mov rdx, qword [rbp + 0x38]
cmp rdx, 8
jb 0x1800458fd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800458f8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800458f8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x60], 7
mov word [rbp - 0x78], r12w
mov qword [rbp - 0x58], r12
mov qword [rbp + 0x108], r12
mov qword [rbp + 0x110], r13
mov dword [rbx], r12d
mov qword [rbx + 8], r13
mov dword [rsp + 0x38], r12d
lea r8, [rbp + 0x108]
lea rdx, [rbp + 0x20]
lea rcx, [rbp + 0x100]
call fcn.1800426e0
cmp dword [rbp + 0x100], 3
je 0x180045642
cmp qword [rbp - 0x68], r12
je 0x180045611
lea rdx, [rbp + 0x20]
cmp qword [rbp + 0x38], 8
cmovae rdx, qword [rbp + 0x20]
lea rcx, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae rcx, qword [rbp - 0x78]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CreateDirectoryExW]
test eax, eax
jne 0x180045642
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x48], eax
mov qword [rbp - 0x40], r13
movups xmm0, xmmword [rbp - 0x48]
jmp 0x18004563f
lea rcx, [rbp + 0x20]
cmp qword [rbp + 0x38], 8
cmovae rcx, qword [rbp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x180045642
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x48], r13
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbx], xmm0
mov rdx, qword [rbp - 0x60]
cmp rdx, 8
jb 0x180045682
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004567d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180045904
call fcn.180067b70
cmp dword [rbx], r12d
je 0x1800456bf
mov qword [rbp + 0x118], r12
mov qword [rbp + 0x120], r13
mov dword [rsp + 0x38], r12d
lea r8, [rbp + 0x118]
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x50]
call fcn.1800426e0
cmp dword [rbp - 0x50], 3
jne 0x18004590b
mov dword [rbx], r12d
mov qword [rbx + 8], r13
mov r15b, 1
mov rdx, qword [rbp + 0x18]
cmp rdx, 8
jb 0x180045702
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800456fd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180045aae
call fcn.180067b70
lea r8, [rbp + 0x70]
lea rdx, [rbp - 0x38]
lea rcx, [rbp + 0x50]
call fcn.180044630
mov rax, qword [rax]
mov qword [rbp + 0x70], rax
mov rcx, qword [rbp + 0x58]
cmp rax, rcx
je 0x180045741
mov rdx, qword [rbp + 0x68]
cmp rax, rdx
je 0x180045741
cmp word [rax], 0x5c
jne 0x180045741
add rax, 2
cmp rax, rcx
je 0x180045741
mov qword [rbp + 0x70], rax
jmp 0x180045727
lea rcx, [rbp + 0x50]
call fcn.1800448b0
jmp 0x180045297
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
movups xmm0, xmmword [rbp + 0xa0]
movups xmmword [rbx], xmm0
mov rdx, qword [rbp + 0x18]
cmp rdx, 8
jb 0x1800457a0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004579b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180045572
call fcn.180067b70
mov qword [rbp + 0x10], r12
mov qword [rbp + 0x18], 7
mov word [rbp], r12w
mov rdx, qword [rbp + 0xf0]
cmp rdx, 8
jb 0x1800457f7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xd8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800457f2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180045572
call fcn.180067b70
mov qword [rbp + 0xe8], r12
mov qword [rbp + 0xf0], 7
mov word [rbp + 0xd8], r12w
mov rdx, qword [rbp + 0x90]
cmp rdx, 8
jb 0x180045854
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004584f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180045572
call fcn.180067b70
mov qword [rbp + 0x88], r12
mov qword [rbp + 0x90], 7
mov word [rbp + 0x78], r12w
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x1800458ab
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800458a6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180045572
call fcn.180067b70
movdqa xmm0, xmmword [0x1800939f0]
movdqu xmmword [rbp - 0x18], xmm0
mov word [rbp - 0x28], r12w
mov rdx, qword [rbp + 0x38]
cmp rdx, 8
jb 0x1800458fd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800458f8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180045572
call fcn.180067b70
xor al, al
jmp 0x180045bec
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, qword [rbp + 0x18]
cmp rdx, 8
jb 0x18004594b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180045946
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180045aa7
call fcn.180067b70
mov qword [rbp + 0x10], r12
mov qword [rbp + 0x18], 7
mov word [rbp], r12w
mov rdx, qword [rbp + 0xf0]
cmp rdx, 8
jb 0x1800459a2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xd8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004599d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180045aa7
call fcn.180067b70
mov qword [rbp + 0xe8], r12
mov qword [rbp + 0xf0], 7
mov word [rbp + 0xd8], r12w
mov rdx, qword [rbp + 0x90]
cmp rdx, 8
jb 0x1800459ff
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800459fa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180045aa7
call fcn.180067b70
mov qword [rbp + 0x88], r12
mov qword [rbp + 0x90], 7
mov word [rbp + 0x78], r12w
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x180045a52
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180045a4d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180045aa7
call fcn.180067b70
movdqa xmm0, xmmword [0x1800939f0]
movdqu xmmword [rbp - 0x18], xmm0
mov word [rbp - 0x28], r12w
mov rdx, qword [rbp + 0x38]
cmp rdx, 8
jb 0x1800458fd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800458f8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800458f8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, qword [rbp + 0xf0]
cmp rdx, 8
jb 0x180045af7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xd8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180045af2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180045b4b
call fcn.180067b70
mov qword [rbp + 0xe8], r12
mov qword [rbp + 0xf0], 7
mov word [rbp + 0xd8], r12w
mov rdx, qword [rbp + 0x90]
cmp rdx, 8
jb 0x180045b57
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180045b52
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180045b52
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180067b70
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x180045b93
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180045b8e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180045bdc
call fcn.180067b70
movdqa xmm0, xmmword [0x1800939f0]
movdqu xmmword [rbp - 0x18], xmm0
mov word [rbp - 0x28], r12w
mov rdx, qword [rbp + 0x38]
cmp rdx, 8
jb 0x180045be8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180045be3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180045be3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180067b70
movzx eax, r15b
mov rcx, qword [rbp + 0x128]
xor rcx, rsp
call fcn.1800675e0
mov rbx, qword [rsp + 0x280]
add rsp, 0x230
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.18001dae0
int3