Function at 0x140129128
Capabilities:
Create directory

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x308]
sub rsp, 0x418
mov rax, qword [0x1401e7e78]
xor rax, rsp
mov qword [rbp + 0x2f0], rax
xor r12d, r12d
mov r14d, r9d
mov esi, r8d
mov rbx, rdx
mov rdi, rcx
test rcx, rcx
je 0x140129518
mov rcx, qword [rcx + 0x38]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140129185
mov qword [rdi + 0x38], r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x1401291a8
mov rcx, rdi
call fcn.1401290c4
mov r8d, esi
mov rdx, rbx
mov rcx, rdi
call fcn.1401296bc
test eax, eax
js 0x140129518
lea r13, [rdi + 0x18]
mov rcx, r13
call fcn.140120ef0
test al, al
je 0x140129518
mov rcx, r13
call fcn.140058574
cmp word [rax], r12w
je 0x140129518
or r15d, 0xffffffff
xorps xmm0, xmm0
mov esi, r15d
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
test r14d, r14d
je 0x1401291f8
mov r8d, r14d
lea rdx, [0x1401a1f08]
lea rcx, [rbp - 0x40]
call fcn.14000cfdc
xorps xmm0, xmm0
lea rbx, [0x14015a140]
mov rdx, rbx
lea rcx, [rbp - 0x50]
mov r8d, 8
movups xmmword [rbp - 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
lea rcx, [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
cmp word [rbp - 0x50], r12w
je 0x140129238
cmp word [rbp - 0x4e], r12w
je 0x140129238
lea rbx, [0x140167eec]
movzx ecx, word [rdi + 0x4c]
lea r14, [rbp - 0x40]
movzx edx, word [rdi + 0x4a]
movzx eax, word [rdi + 0x4e]
movzx r10d, word [rdi + 0x48]
movzx r11d, word [rdi + 0x46]
movzx r9d, word [rdi + 0x42]
movzx r8d, word [rdi + 0x40]
mov qword [rsp + 0x80], r14
lea r14, [0x14015a140]
mov qword [rsp + 0x78], r14
lea r14, [0x14017292c]
mov qword [rsp + 0x70], r14
lea r14, [rbp - 0x50]
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x58], 0x12
mov dword [rsp + 0x50], 0xc
mov dword [rsp + 0x48], 0x16
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], ecx
lea rcx, [rbp - 0x20]
mov dword [rsp + 0x30], edx
lea rdx, str._i__02i__02i__i:_02i:_02i._03i_ConEmu__u_02u_02u_s_s__s_s__log_s
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], r11d
call fcn.1400011e8
lea r14, [rdi + 8]
mov rcx, r14
call fcn.140120ef0
test al, al
jne 0x14012955f
mov qword [rdi + 0x38], r12
lea r12, [rdi + 0x28]
mov rcx, r12
call fcn.140120ef0
xor ebx, ebx
test al, al
je 0x1401293ab
mov rcx, r12
call fcn.140058574
cmp word [rax], bx
je 0x1401293ab
mov rcx, r13
call fcn.140058574
mov rcx, r12
mov rbx, rax
call fcn.140058574
mov rdx, rax
lea rcx, [rbp - 0x80]
xor r9d, r9d
mov r8, rbx
call fcn.1401254e8
mov rdx, rax
mov rcx, r14
call fcn.140120e10
lea rcx, [rbp - 0x80]
call fcn.140120ddc
mov rcx, r14
call fcn.140120ef0
xor r12d, r12d
test al, al
je 0x140129518
mov rcx, r14
call fcn.140058574
mov qword [rsp + 0x30], r12
lea r8d, [r12 + 1]
mov rcx, rax
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 0x38], rax
inc rax
test rax, 0xfffffffffffffffe
jne 0x1401293ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, r14
mov qword [rdi + 0x38], r12
mov esi, eax
call fcn.1401214e4
jmp 0x1401293ae
xor r12d, r12d
mov rax, qword [rdi + 0x38]
test rax, rax
jne 0x1401295ba
xor edx, edx
lea rcx, [rbp + 0xe0]
mov r8d, 0x20a
call fcn.14013b230
lea rdx, str.Shell32.dll
lea rcx, [rbp - 0x80]
call fcn.1401238d8
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14012953e
lea rdx, [0x1401b4d08]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14012953e
lea rcx, [rbp + 0xe0]
mov dword [rbp - 0x74], r12d
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor ecx, ecx
xor r8d, r8d
mov edx, 0x8010
call rax
test eax, eax
jne 0x140129547
xor r9d, r9d
lea r8, str.ConEmuLogs
lea rdx, [rbp + 0xe0]
lea rcx, [rbp - 0x70]
call fcn.1401254e8
lea rcx, [rbp - 0x70]
call fcn.140120ef0
test al, al
je 0x140129506
lea rcx, [rbp - 0x70]
call fcn.140058574
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rcx, r13
call fcn.140058574
lea rcx, [rbp - 0x70]
mov rbx, rax
call fcn.140058574
mov rdx, rax
lea rcx, [rbp - 0x60]
xor r9d, r9d
mov r8, rbx
call fcn.1401254e8
mov rdx, rax
mov rcx, r14
call fcn.140120e10
lea rcx, [rbp - 0x60]
call fcn.140120ddc
mov rcx, r14
call fcn.140120ef0
test al, al
je 0x140129506
mov rcx, r14
call fcn.140058574
xor r9d, r9d
mov qword [rsp + 0x30], r12
mov rcx, rax
mov dword [rsp + 0x28], 0x80
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 0x38], rax
inc rax
test rax, 0xfffffffffffffffe
jne 0x1401294fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov qword [rdi + 0x38], r12
lea rcx, [rbp - 0x70]
call fcn.140120ddc
jmp 0x140129547
lea rcx, [rbp - 0x70]
call fcn.140120ddc
lea rcx, [rbp - 0x80]
call fcn.14012390c
or eax, 0xffffffff
mov rcx, qword [rbp + 0x2f0]
xor rcx, rsp
call fcn.140139b10
add rsp, 0x418
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x74], eax
lea rcx, [rbp - 0x80]
call fcn.14012390c
mov rax, qword [rdi + 0x38]
test rax, rax
je 0x1401295e6
jmp 0x1401295ba
mov rcx, r14
call fcn.140120ef0
test al, al
je 0x140129518
mov rcx, r14
call fcn.140058574
cmp word [rax], r12w
je 0x140129518
mov rcx, r14
call fcn.140058574
xor r9d, r9d
mov qword [rsp + 0x30], r12
mov rcx, rax
mov dword [rsp + 0x28], 0x80
mov edx, 0x40000000
mov dword [rsp + 0x20], 4
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 0x38], rax
test rax, rax
je 0x1401295de
cmp rax, 0xffffffffffffffff
je 0x1401295de
cmp rax, 0xffffffffffffffff
je 0x1401295e6
xor r9d, r9d
mov byte [rsp + 0x20], 1
xor r8d, r8d
lea rdx, [rbp - 0x20]
mov rcx, rdi
call fcn.1401298e4
xor eax, eax
jmp 0x14012951b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
mov qword [rdi + 0x38], r12
cmovne r15d, esi
mov eax, r15d
jmp 0x14012951b