Function at 0x1400217f0
Capabilities:
Create directory

Disassembly:
push rbp
push rbx
push r12
push r15
lea rbp, [rsp - 0x7a8]
sub rsp, 0x8a8
mov rax, qword [0x14016b140]
xor rax, rsp
mov qword [rbp + 0x790], rax
mov rbx, rcx
mov byte [0x140173880], dl
test rcx, rcx
mov byte [0x140173881], r8b
mov edx, 0x104
lea rcx, [rsp + 0x60]
je 0x140021847
mov r9, rbx
lea r8, str.SoftwareKyocera_Mita_s
call fcn.140003710
jmp 0x140021853
lea r8, str.SoftwareKyocera_MitaDebug
call fcn.1400c3900
xor r15d, r15d
mov dword [rsp + 0x28], 0x20019
lea r9, str.Debug
mov dword [rsp + 0x20], r15d
lea r8, [rsp + 0x60]
mov rdx, 0xffffffff80000002
xor ecx, ecx
call fcn.1400225c0
movzx ecx, byte [0x140173880]
lea r8, str.Dbg2Log
test eax, eax
mov dword [rsp + 0x20], 0x20019
mov r12d, 1
lea rdx, [rsp + 0x60]
cmovne ecx, r12d
xor r9d, r9d
mov byte [0x140173880], cl
mov rcx, 0xffffffff80000002
call fcn.1400224b0
movzx ecx, byte [0x140173881]
test eax, eax
cmovne ecx, r12d
mov byte [0x140173881], cl
test rbx, rbx
je 0x1400218ea
mov r9, rbx
lea r8, str.SoftwareKDS_s
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.140003710
mov dword [rsp + 0x28], 0x20019
lea r9, str.Debug
lea r8, [rsp + 0x60]
mov dword [rsp + 0x20], r15d
mov rdx, 0xffffffff80000002
xor ecx, ecx
call fcn.1400225c0
movzx ecx, byte [0x140173880]
lea r8, str.Dbg2Log
test eax, eax
mov dword [rsp + 0x20], 0x20019
lea rdx, [rsp + 0x60]
cmovne ecx, r12d
xor r9d, r9d
mov byte [0x140173880], cl
mov rcx, 0xffffffff80000002
call fcn.1400224b0
movzx ebx, byte [0x140173881]
lea rcx, [rbp + 0x580]
test eax, eax
mov r8d, 0x208
cmovne ebx, r12d
xor edx, edx
mov byte [0x140173881], bl
call fcn.1400c0ac0
test bl, bl
je 0x140021c72
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rcx, [rsp + 0x40]
mov dword [0x140173994], eax
call fcn.140021700
lea rcx, [0x14016b078]
mov rbx, rax
cmp rcx, rax
je 0x1400219c5
call fcn.140007940
movups xmm0, xmmword [rbx]
movups xmmword [0x14016b078], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [0x14016b088], xmm1
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 7
mov word [rbx], r15w
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x140021a07
mov rcx, qword [rsp + 0x40]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021a02
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140021c8f
call fcn.1400277b4
mov qword [rsp + 0x8d8], rsi
lea r9, [rbp + 0x580]
mov qword [rsp + 0x8e0], rdi
lea r8, str.LogFolder
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x8a0], r14
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], 0x20019
call fcn.1400226d0
mov r14d, 0x5c
test eax, eax
je 0x140021a59
lea r8, [rbp + 0x580]
jmp 0x140021aa1
xor edx, edx
lea rcx, [rbp + 0x170]
mov r8d, 0x208
call fcn.1400c0ac0
mov r8d, 0x104
lea rdx, [rbp + 0x170]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, r14d
lea rcx, [rbp + 0x170]
call fcn.1400c14b4
test rax, rax
je 0x140021a9a
mov word [rax], r15w
lea r8, [rbp + 0x170]
lea rbx, [0x140173cc0]
mov edx, 0x104
mov rcx, rbx
call fcn.1400c3900
call qword [sym.imp.KERNEL32.dll_GetACP]
mov edi, eax
mov r9, 0xffffffffffffffff
inc r9
cmp word [rbx + r9*2], r15w
jne 0x140021ac4
mov qword [rsp + 0x38], r15
lea rsi, [0x140173890]
mov qword [rsp + 0x30], r15
mov r8, rbx
mov dword [rsp + 0x28], r15d
xor edx, edx
mov ecx, edi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov r9, 0xffffffffffffffff
nop dword [rax]
inc r9
cmp word [rbx + r9*2], r15w
jne 0x140021b00
mov qword [rsp + 0x38], r15
mov r8, rbx
mov qword [rsp + 0x30], r15
xor edx, edx
mov dword [rsp + 0x28], eax
mov ecx, edi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rcx, eax
mov r8, rbx
mov edx, 0x208
mov byte [rcx + rsi], r15b
lea rcx, [rbp + 0x170]
call fcn.1400c3900
mov r8d, 2
lea rdx, [0x1401065d0]
lea rcx, [rbp + 0x170]
xor dil, dil
xor bl, bl
call fcn.1400d14f8
test eax, eax
movzx esi, bl
mov edx, r14d
lea rcx, [rbp + 0x170]
cmove esi, r12d
call fcn.1400c05e8
mov rbx, rax
test rax, rax
je 0x140021c5a
nop word [rax + rax]
mov word [rbx], r15w
lea rax, [rbp + 0x170]
mov rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], r15w
jne 0x140021ba2
cmp rcx, 2
jbe 0x140021bfe
xor edx, edx
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140021bfe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
sub edx, 5
je 0x140021bea
sub edx, 0x76
je 0x140021be3
sub edx, 0x26
je 0x140021bfe
cmp edx, 0x16
jne 0x140021c4c
jmp 0x140021bfe
test sil, sil
je 0x140021c5a
jmp 0x140021bfe
mov edx, r14d
lea rcx, [rbp + 0x170]
call fcn.1400c05e8
test rax, rax
jne 0x140021c5a
mov word [rbx], r14w
lea rcx, [rbx + 2]
cmp word [rbx + 2], r15w
mov edx, r14d
movzx edi, dil
cmovne edi, r12d
call fcn.1400c05e8
mov rbx, rax
test rax, rax
jne 0x140021b90
test dil, dil
je 0x140021c5a
xor edx, edx
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140021c5a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140021c5a
mov edx, eax
lea rcx, str.CreateLogFolder___failed__ld_n
call fcn.140020f50
mov rdi, qword [rsp + 0x8e0]
mov rsi, qword [rsp + 0x8d8]
mov r14, qword [rsp + 0x8a0]
mov rcx, qword [rbp + 0x790]
xor rcx, rsp
call fcn.140027790
add rsp, 0x8a8
pop r15
pop r12
pop rbx
pop rbp
ret
call fcn.1400c6d18
int3