Function at 0x407298
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.00407fa4
cmp eax, 0xffffffff
je 0x4072c9
test al, 0x10
je 0x4072c9
mov al, 1
jmp 0x40761f
mov rcx, rbx
call fcn.0040a610
test al, al
je 0x4072dc
xor al, al
jmp 0x40761f
mov rcx, rbx
call fcn.0040a764
mov r12d, eax
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.004034c8
nop
lea rcx, [rsp + 0x20]
call fcn.00403a1c
mov esi, 1
test eax, eax
js 0x40732b
mov edx, dword [rsp + 0x28]
lea ecx, [rdx - 1]
cmp eax, ecx
jne 0x40732b
cmp edx, esi
jne 0x40731c
jmp 0x4075c7
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.004035b8
nop
mov edi, dword [rsp + 0x28]
mov r13d, 0xb7
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call fcn.0040a9fc
mov ebp, eax
cmp eax, esi
je 0x40737a
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x407536
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, r13d
je 0x407450
test ebp, ebp
je 0x407450
lea rcx, [rsp + 0x40]
call fcn.0040345c
nop
cmp ebp, esi
setne r8b
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.0040b078
test al, al
je 0x407446
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40752c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, r13d
je 0x4073d7
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_free
jmp 0x4074ba
lea rcx, [rsp + 0x58]
call fcn.00407b6c
lea rcx, [rsp + 0x80]
call fcn.0040345c
nop
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
call fcn.004081d0
test al, al
jne 0x407422
mov rcx, qword [rsp + 0x80]
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_free
jmp 0x4074ba
mov ebx, dword [rsp + 0x78]
shr ebx, 4
and bl, sil
mov rcx, qword [rsp + 0x80]
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_free
jmp 0x4074b6
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_free
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, r13d
jne 0x4074ba
lea rcx, [rsp + 0x90]
call fcn.00407b6c
lea rcx, [rsp + 0xb8]
call fcn.0040345c
nop
xor r8d, r8d
mov rdx, rbx
lea rcx, [rsp + 0x90]
call fcn.004081d0
test al, al
jne 0x40749c
mov rcx, qword [rsp + 0xb8]
call sub.msvcrt.dll_free
jmp 0x4074ba
mov ebx, dword [rsp + 0xb0]
shr ebx, 4
and bl, sil
mov rcx, qword [rsp + 0xb8]
call sub.msvcrt.dll_free
test bl, bl
jne 0x407536
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, r13d
je 0x4075b9
lea rcx, [rsp + 0x20]
call fcn.00403a1c
mov edi, eax
test eax, eax
js 0x407608
test eax, eax
je 0x407608
mov rbx, qword [rsp + 0x20]
cmp edi, esi
jne 0x407502
cmp word [rbx], 0x5c
je 0x4075d6
cmp word [rbx], 0x2f
je 0x4075d6
lea eax, [rdi + 1]
cmp r12d, eax
jae 0x4075ef
cmp edi, dword [rsp + 0x28]
jae 0x40734a
mov dword [rsp + 0x28], edi
mov word [rbx + rdi*2], 0
mov rbx, qword [rsp + 0x20]
jmp 0x40734a
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_free
cmp edi, dword [rsp + 0x38]
jge 0x40759f
lea ecx, [rdi + 1]
mov rax, qword [rsp + 0x30]
lea rcx, [rax + rcx*2]
call fcn.0040a314
test eax, eax
jns 0x407557
mov edi, dword [rsp + 0x38]
jmp 0x40755b
lea edi, [rdi + rax + 1]
mov r8d, edi
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x20]
call fcn.00403704
mov rcx, qword [rsp + 0x20]
call fcn.00406e50
test al, al
je 0x407583
cmp edi, dword [rsp + 0x38]
jl 0x40753c
jmp 0x40759f
mov rcx, qword [rsp + 0x30]
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x20]
call sub.msvcrt.dll_free
xor al, al
jmp 0x40761f
mov rcx, qword [rsp + 0x30]
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x20]
call sub.msvcrt.dll_free
mov al, sil
jmp 0x40761f
mov rcx, qword [rsp + 0x30]
call sub.msvcrt.dll_free
nop
xor sil, sil
mov rcx, qword [rsp + 0x20]
call sub.msvcrt.dll_free
mov al, sil
jmp 0x40761f
mov rcx, qword [rsp + 0x30]
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x20]
call sub.msvcrt.dll_free
xor al, al
jmp 0x40761f
mov rcx, qword [rsp + 0x30]
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x20]
call sub.msvcrt.dll_free
xor al, al
jmp 0x40761f
mov rcx, qword [rsp + 0x30]
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x20]
call sub.msvcrt.dll_free
xor al, al
add rsp, 0xd8
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret