Function at 0x140004a4e
Capabilities:
Create directory

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x140
mov rsi, rcx
mov r12d, edx
mov rbp, r8
test rcx, rcx
je 0x140004aa8
call sub.msvcrt.dll_strlen
cmp rax, 0x103
ja 0x140004c83
test r12d, r12d
jne 0x140004b26
mov edx, 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x140004ae0
mov edi, 0
mov ebx, 0
jmp 0x140004c8d
mov dword [rsp + 0x20], 0x214
lea r9, str.C:_Projects_rdp_bot_codebase_fs.c
lea r8, str._path___NULL_
lea rdx, str.fs_dir_create
lea rcx, [0x1400113e0]
call fcn.140002ef2
mov edi, 0xa0
mov ebx, 0x40000001
jmp 0x140004c8d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [rsp + 0x20], eax
mov r9d, r12d
mov r8, rsi
lea rdx, str.fs_dir_create
lea rcx, str._E____s_____CreateDirectoryA_failed_path_s_recursive_d_gle_lu__n
call fcn.140002ef2
cmp edi, 0x20
ja 0x140004bfa
ja case.0x140004b24.1
mov eax, edi
lea rdx, [0x140011860]
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
lea rbx, [rsp + 0x30]
mov rdx, rsi
mov rcx, rbx
call sub.msvcrt.dll_strcpy
mov rcx, rbx
call sub.msvcrt.dll_strlen
movzx edx, byte [rsp + rax + 0x2f]
cmp dl, 0x5c
je 0x140004b5e
cmp dl, 0x2f
je 0x140004b5e
mov byte [rsp + rax + 0x31], 0
mov rcx, rbx
call sub.msvcrt.dll_strlen
mov byte [rbx + rax], 0x5c
lea rbx, [rsp + 0x30]
mov rcx, rbx
call sub.msvcrt.dll_strlen
mov r13, rax
mov edi, 0
jmp 0x140004ba6
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, r12d
mov r8, rsi
lea rdx, str.fs_dir_create
lea rcx, str._E____s_____CreateDirectoryA_failed_path_s_recursive_d_ptr_s_gle_lu__n
call fcn.140002ef2
mov edi, r14d
mov byte [rbx], 0x5c
add rbx, 1
test edi, edi
jne 0x140004b05
lea rax, [rsp + r13 + 0x30]
cmp rax, rbx
jb 0x140004b05
cmp rbx, rax
jae 0x140004b05
cmp byte [rbx], 0x5c
jne 0x140004ba2
mov byte [rbx], 0
lea rcx, [rsp + 0x30]
mov edx, 0
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x140004b9f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
cmp eax, 0xb7
je 0x140004b9f
jmp 0x140004b75
mov ebx, edi
jmp 0x140004c8d
cmp edi, 0x94
je 0x140004cdd
ja 0x140004c39
cmp edi, 0x7f
ja 0x140004c26
cmp edi, 0x7e
jae 0x140004ce4
cmp edi, 0x50
jne 0x140004ceb
mov ebx, 0x40000007
jmp 0x140004c8d
cmp edi, 0x91
jne 0x140004cf2
mov ebx, 0x4000000d
jmp 0x140004c8d
cmp edi, 0xb7
je 0x140004cf9
cmp edi, 0x80070005
je 0x140004d00
cmp edi, 0xaa
je 0x140004c60
mov ebx, 0x40000001
jmp 0x140004c8d
mov ebx, 0x4000000d
jmp 0x140004c8d
mov ebx, 0x40000003
jmp 0x140004c8d
mov ebx, 0x40000009
jmp 0x140004c8d
mov ebx, 0x4000000d
jmp 0x140004c8d
mov ebx, 0x40000001
jmp 0x140004c8d
mov edi, 0
mov ebx, 0
test rbp, rbp
je 0x140004c95
mov dword [rbp], edi
test ebx, ebx
je 0x140004d10
mov eax, ebx
and eax, 0x3fffffff
test rsi, rsi
je 0x140004d07
mov dword [rsp + 0x20], eax
mov r9d, r12d
mov r8, rsi
lea rdx, str.fs_dir_create
lea rcx, str._E____s_____Failed_path_s_recursive_d_err_08x__n
call fcn.140002ef2
mov eax, ebx
add rsp, 0x140
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov ebx, 0x40000008
jmp 0x140004c8d
mov ebx, 0x4000000d
jmp 0x140004c8d
mov ebx, 0x40000003
jmp 0x140004c8d
mov ebx, 0x40000001
jmp 0x140004c8d
mov ebx, 0x40000001
jmp 0x140004c8d
mov ebx, 0x40000007
jmp 0x140004c8d
mov ebx, 0x40000009
jmp 0x140004c8d
lea rsi, [0x14001139b]
jmp 0x140004ca5
mov r9d, r12d
mov r8, rsi
lea rdx, str.fs_dir_create
lea rcx, str._I____s_____Done_path_s_recursive_d__n
call fcn.140002ef2
jmp 0x140004cc2