Function at 0x140004a9e
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 0x140004af8
call sub.msvcrt.dll_strlen
cmp rax, 0x103
ja 0x140004cd3
test r12d, r12d
jne 0x140004b76
mov edx, 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x140004b30
mov edi, 0
mov ebx, 0
jmp 0x140004cdd
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 0x140004cdd
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 0x140004c4a
ja case.0x140004b74.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 0x140004bae
cmp dl, 0x2f
je 0x140004bae
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 0x140004bf6
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 0x140004b55
lea rax, [rsp + r13 + 0x30]
cmp rax, rbx
jb 0x140004b55
cmp rbx, rax
jae 0x140004b55
cmp byte [rbx], 0x5c
jne 0x140004bf2
mov byte [rbx], 0
lea rcx, [rsp + 0x30]
mov edx, 0
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x140004bef
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
cmp eax, 0xb7
je 0x140004bef
jmp 0x140004bc5
mov ebx, edi
jmp 0x140004cdd
cmp edi, 0x94
je 0x140004d2d
ja 0x140004c89
cmp edi, 0x7f
ja 0x140004c76
cmp edi, 0x7e
jae 0x140004d34
cmp edi, 0x50
jne 0x140004d3b
mov ebx, 0x40000007
jmp 0x140004cdd
cmp edi, 0x91
jne 0x140004d42
mov ebx, 0x4000000d
jmp 0x140004cdd
cmp edi, 0xb7
je 0x140004d49
cmp edi, 0x80070005
je 0x140004d50
cmp edi, 0xaa
je 0x140004cb0
mov ebx, 0x40000001
jmp 0x140004cdd
mov ebx, 0x4000000d
jmp 0x140004cdd
mov ebx, 0x40000003
jmp 0x140004cdd
mov ebx, 0x40000009
jmp 0x140004cdd
mov ebx, 0x4000000d
jmp 0x140004cdd
mov ebx, 0x40000001
jmp 0x140004cdd
mov edi, 0
mov ebx, 0
test rbp, rbp
je 0x140004ce5
mov dword [rbp], edi
test ebx, ebx
je 0x140004d60
mov eax, ebx
and eax, 0x3fffffff
test rsi, rsi
je 0x140004d57
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 0x140004cdd
mov ebx, 0x4000000d
jmp 0x140004cdd
mov ebx, 0x40000003
jmp 0x140004cdd
mov ebx, 0x40000001
jmp 0x140004cdd
mov ebx, 0x40000001
jmp 0x140004cdd
mov ebx, 0x40000007
jmp 0x140004cdd
mov ebx, 0x40000009
jmp 0x140004cdd
lea rsi, [0x14001139b]
jmp 0x140004cf5
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 0x140004d12