Function at 0x407a94
Capabilities:
Create directory

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0xd8
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rbx, rcx
call fcn.00408780
cmp eax, 0xffffffff
je 0x407ac5
test al, 0x10
je 0x407ac5
mov al, 1
jmp 0x407e1b
mov rcx, rbx
call fcn.0040aeac
test al, al
je 0x407ad8
xor al, al
jmp 0x407e1b
mov rcx, rbx
call fcn.0040b000
mov r12d, eax
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.0040372c
nop
lea rcx, [rsp + 0x20]
call fcn.00403ca0
mov esi, 1
test eax, eax
js 0x407b27
mov edx, dword [rsp + 0x28]
lea ecx, [rdx - 1]
cmp eax, ecx
jne 0x407b27
cmp edx, esi
jne 0x407b18
jmp 0x407dc3
mov dword [rsp + 0x28], ecx
mov rax, qword [rsp + 0x20]
mov word [rax + rcx*2], 0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.0040381c
nop
mov edi, dword [rsp + 0x28]
mov r13d, 0xb7
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call fcn.0040b298
mov ebp, eax
cmp eax, esi
je 0x407b76
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x407d32
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, r13d
je 0x407c4c
test ebp, ebp
je 0x407c4c
lea rcx, [rsp + 0x40]
call fcn.004036c0
nop
cmp ebp, esi
setne r8b
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.0040b914
test al, al
je 0x407c42
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x407d28
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, r13d
je 0x407bd3
mov rcx, qword [rsp + 0x40]
call fcn.00404258
jmp 0x407cb6
lea rcx, [rsp + 0x58]
call fcn.00408348
lea rcx, [rsp + 0x80]
call fcn.004036c0
nop
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
call fcn.004089cc
test al, al
jne 0x407c1e
mov rcx, qword [rsp + 0x80]
call fcn.00404258
nop
mov rcx, qword [rsp + 0x40]
call fcn.00404258
jmp 0x407cb6
mov ebx, dword [rsp + 0x78]
shr ebx, 4
and bl, sil
mov rcx, qword [rsp + 0x80]
call fcn.00404258
nop
mov rcx, qword [rsp + 0x40]
call fcn.00404258
jmp 0x407cb2
mov rcx, qword [rsp + 0x40]
call fcn.00404258
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, r13d
jne 0x407cb6
lea rcx, [rsp + 0x90]
call fcn.00408348
lea rcx, [rsp + 0xb8]
call fcn.004036c0
nop
xor r8d, r8d
mov rdx, rbx
lea rcx, [rsp + 0x90]
call fcn.004089cc
test al, al
jne 0x407c98
mov rcx, qword [rsp + 0xb8]
call fcn.00404258
jmp 0x407cb6
mov ebx, dword [rsp + 0xb0]
shr ebx, 4
and bl, sil
mov rcx, qword [rsp + 0xb8]
call fcn.00404258
test bl, bl
jne 0x407d32
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, r13d
je 0x407db5
lea rcx, [rsp + 0x20]
call fcn.00403ca0
mov edi, eax
test eax, eax
js 0x407e04
test eax, eax
je 0x407e04
mov rbx, qword [rsp + 0x20]
cmp edi, esi
jne 0x407cfe
cmp word [rbx], 0x5c
je 0x407dd2
cmp word [rbx], 0x2f
je 0x407dd2
lea eax, [rdi + 1]
cmp r12d, eax
jae 0x407deb
cmp edi, dword [rsp + 0x28]
jae 0x407b46
mov dword [rsp + 0x28], edi
mov word [rbx + rdi*2], 0
mov rbx, qword [rsp + 0x20]
jmp 0x407b46
mov rcx, qword [rsp + 0x40]
call fcn.00404258
cmp edi, dword [rsp + 0x38]
jge 0x407d9b
lea ecx, [rdi + 1]
mov rax, qword [rsp + 0x30]
lea rcx, [rax + rcx*2]
call fcn.0040abb0
test eax, eax
jns 0x407d53
mov edi, dword [rsp + 0x38]
jmp 0x407d57
lea edi, [rdi + rax + 1]
mov r8d, edi
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x20]
call fcn.00403964
mov rcx, qword [rsp + 0x20]
call fcn.0040764c
test al, al
je 0x407d7f
cmp edi, dword [rsp + 0x38]
jl 0x407d38
jmp 0x407d9b
mov rcx, qword [rsp + 0x30]
call fcn.00404258
nop
mov rcx, qword [rsp + 0x20]
call fcn.00404258
xor al, al
jmp 0x407e1b
mov rcx, qword [rsp + 0x30]
call fcn.00404258
nop
mov rcx, qword [rsp + 0x20]
call fcn.00404258
mov al, sil
jmp 0x407e1b
mov rcx, qword [rsp + 0x30]
call fcn.00404258
nop
xor sil, sil
mov rcx, qword [rsp + 0x20]
call fcn.00404258
mov al, sil
jmp 0x407e1b
mov rcx, qword [rsp + 0x30]
call fcn.00404258
nop
mov rcx, qword [rsp + 0x20]
call fcn.00404258
xor al, al
jmp 0x407e1b
mov rcx, qword [rsp + 0x30]
call fcn.00404258
nop
mov rcx, qword [rsp + 0x20]
call fcn.00404258
xor al, al
jmp 0x407e1b
mov rcx, qword [rsp + 0x30]
call fcn.00404258
nop
mov rcx, qword [rsp + 0x20]
call fcn.00404258
xor al, al
add rsp, 0xd8
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret