Function at 0x407bcc
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.004089cc
cmp eax, 0xffffffff
je 0x407bfd
test al, 0x10
je 0x407bfd
mov al, 1
jmp 0x407f53
mov rcx, rbx
call fcn.0040b0bc
test al, al
je 0x407c10
xor al, al
jmp 0x407f53
mov rcx, rbx
call fcn.0040b218
mov r12d, eax
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.004036c8
nop
lea rcx, [rsp + 0x20]
call fcn.00403c20
mov esi, 1
test eax, eax
js 0x407c5f
mov edx, dword [rsp + 0x28]
lea ecx, [rdx - 1]
cmp eax, ecx
jne 0x407c5f
cmp edx, esi
jne 0x407c50
jmp 0x407efb
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.004037b8
nop
mov edi, dword [rsp + 0x28]
mov r13d, 0xb7
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call fcn.0040b47c
mov ebp, eax
cmp eax, esi
je 0x407cae
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x407e6a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, r13d
je 0x407d84
test ebp, ebp
je 0x407d84
lea rcx, [rsp + 0x40]
call fcn.0040365c
nop
cmp ebp, esi
setne r8b
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.0040bb48
test al, al
je 0x407d7a
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x407e60
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, r13d
je 0x407d0b
mov rcx, qword [rsp + 0x40]
call fcn.00402344
jmp 0x407dee
lea rcx, [rsp + 0x58]
call fcn.004084d0
lea rcx, [rsp + 0x80]
call fcn.0040365c
nop
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
call fcn.00408bdc
test al, al
jne 0x407d56
mov rcx, qword [rsp + 0x80]
call fcn.00402344
nop
mov rcx, qword [rsp + 0x40]
call fcn.00402344
jmp 0x407dee
mov ebx, dword [rsp + 0x78]
shr ebx, 4
and bl, sil
mov rcx, qword [rsp + 0x80]
call fcn.00402344
nop
mov rcx, qword [rsp + 0x40]
call fcn.00402344
jmp 0x407dea
mov rcx, qword [rsp + 0x40]
call fcn.00402344
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, r13d
jne 0x407dee
lea rcx, [rsp + 0x90]
call fcn.004084d0
lea rcx, [rsp + 0xb8]
call fcn.0040365c
nop
xor r8d, r8d
mov rdx, rbx
lea rcx, [rsp + 0x90]
call fcn.00408bdc
test al, al
jne 0x407dd0
mov rcx, qword [rsp + 0xb8]
call fcn.00402344
jmp 0x407dee
mov ebx, dword [rsp + 0xb0]
shr ebx, 4
and bl, sil
mov rcx, qword [rsp + 0xb8]
call fcn.00402344
test bl, bl
jne 0x407e6a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, r13d
je 0x407eed
lea rcx, [rsp + 0x20]
call fcn.00403c20
mov edi, eax
test eax, eax
js 0x407f3c
test eax, eax
je 0x407f3c
mov rbx, qword [rsp + 0x20]
cmp edi, esi
jne 0x407e36
cmp word [rbx], 0x5c
je 0x407f0a
cmp word [rbx], 0x2f
je 0x407f0a
lea eax, [rdi + 1]
cmp r12d, eax
jae 0x407f23
cmp edi, dword [rsp + 0x28]
jae 0x407c7e
mov dword [rsp + 0x28], edi
mov word [rbx + rdi*2], 0
mov rbx, qword [rsp + 0x20]
jmp 0x407c7e
mov rcx, qword [rsp + 0x40]
call fcn.00402344
cmp edi, dword [rsp + 0x38]
jge 0x407ed3
lea ecx, [rdi + 1]
mov rax, qword [rsp + 0x30]
lea rcx, [rax + rcx*2]
call fcn.0040add4
test eax, eax
jns 0x407e8b
mov edi, dword [rsp + 0x38]
jmp 0x407e8f
lea edi, [rdi + rax + 1]
mov r8d, edi
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x20]
call fcn.00403900
mov rcx, qword [rsp + 0x20]
call fcn.004075f8
test al, al
je 0x407eb7
cmp edi, dword [rsp + 0x38]
jl 0x407e70
jmp 0x407ed3
mov rcx, qword [rsp + 0x30]
call fcn.00402344
nop
mov rcx, qword [rsp + 0x20]
call fcn.00402344
xor al, al
jmp 0x407f53
mov rcx, qword [rsp + 0x30]
call fcn.00402344
nop
mov rcx, qword [rsp + 0x20]
call fcn.00402344
mov al, sil
jmp 0x407f53
mov rcx, qword [rsp + 0x30]
call fcn.00402344
nop
xor sil, sil
mov rcx, qword [rsp + 0x20]
call fcn.00402344
mov al, sil
jmp 0x407f53
mov rcx, qword [rsp + 0x30]
call fcn.00402344
nop
mov rcx, qword [rsp + 0x20]
call fcn.00402344
xor al, al
jmp 0x407f53
mov rcx, qword [rsp + 0x30]
call fcn.00402344
nop
mov rcx, qword [rsp + 0x20]
call fcn.00402344
xor al, al
jmp 0x407f53
mov rcx, qword [rsp + 0x30]
call fcn.00402344
nop
mov rcx, qword [rsp + 0x20]
call fcn.00402344
xor al, al
add rsp, 0xd8
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret