Function at 0x140154620
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rdi
push r14
sub rsp, 0x160
mov rax, qword [0x1403aa6c8]
xor rax, rsp
mov qword [rsp + 0x150], rax
and edx, 7
mov rbx, rcx
cmp edx, 2
jne 0x14015496a
mov rax, qword [0x1404cc270]
mov rdx, rcx
movzx ecx, byte [rcx]
xor edi, edi
mov byte [rax], cl
test cl, cl
je 0x14015468e
nop word [rax + rax]
mov rcx, qword [0x1404cc270]
lea rdx, [rdx + 1]
inc rcx
mov qword [0x1404cc270], rcx
movzx eax, byte [rdx]
mov byte [rcx], al
test al, al
jne 0x140154670
mov rcx, qword [0x1404cc260]
call fcn.140153e80
test eax, eax
jne 0x1401546d0
movzx ecx, byte [rbx]
mov rax, qword [0x1404cc278]
mov byte [rax], cl
test cl, cl
je 0x1401546df
nop
mov rcx, qword [0x1404cc278]
lea rbx, [rbx + 1]
inc rcx
mov qword [0x1404cc278], rcx
movzx eax, byte [rbx]
mov byte [rcx], al
test al, al
jne 0x1401546b0
jmp 0x1401546df
lea rdx, [0x1404cc278]
mov rcx, rbx
call fcn.140155a80
mov rax, qword [0x1404cc270]
lea rdx, [0x1404cbf48]
sub rax, qword [0x1404cc260]
mov ebp, 1
mov rcx, qword [0x1404cc268]
cmp rax, 0x101
cmovg edi, ebp
call fcn.140156d70
test eax, eax
je 0x1401548b5
cmp dword [0x1403dbde0], 0
jne 0x140154743
mov rcx, qword [0x1404cc260]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [0x1404cc268]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 0x200
jmp 0x140154ee6
test edi, edi
je 0x1401547b4
mov r8d, 0x4000
mov rcx, qword [0x1404cc260]
lea rdx, [0x1404c3e38]
call fcn.14019d4e0
mov r8, rax
lea rdx, str.checkdir_error:__path_too_long:__s_n
lea rcx, [0x1404bbe38]
call fcn.1401066c0
mov r8d, eax
lea rdx, [0x1404bbe38]
mov r9d, ebp
lea rcx, [0x1403dbd40]
call qword [0x1404cc1f8]
mov rcx, qword [0x1404cc260]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [0x1404cc268]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 0x400
jmp 0x140154ee6
mov rcx, qword [0x1404cc268]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir]
cmp eax, 0xffffffff
jne 0x14015486f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r14d, 0x4000
lea rdx, [0x1404c3e38]
mov r8d, r14d
lea rcx, [0x1404cbfdc]
mov rbx, rax
call fcn.14019d4e0
mov ecx, dword [rbx]
mov rdi, rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov rcx, qword [0x1404cc268]
lea rdx, [0x1404c7e38]
mov r8d, r14d
mov rbx, rax
call fcn.14019d4e0
mov r8, rax
mov qword [rsp + 0x20], rdi
mov r9, rbx
lea rdx, str.checkdir_error:__cannot_create__s_n__________________s_n_________________unable_to_process__s._n
lea rcx, [0x1404bbe38]
call fcn.1401066c0
mov r8d, eax
lea rdx, [0x1404bbe38]
mov r9d, ebp
lea rcx, [0x1403dbd40]
call qword [0x1404cc1f8]
mov rcx, qword [0x1404cc260]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [0x1404cc268]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 0x300
jmp 0x140154ee6
mov dword [0x1404cc23c], ebp
mov rax, qword [0x1404cc270]
mov byte [rax], 0x2f
mov rax, qword [0x1404cc278]
inc qword [0x1404cc270]
mov byte [rax], 0x2f
mov rax, qword [0x1404cc278]
inc rax
mov qword [0x1404cc278], rax
mov byte [rax], 0
mov rax, qword [0x1404cc270]
mov byte [rax], 0
xor eax, eax
jmp 0x140154ee6
movzx eax, word [0x1404cbf4e]
mov ecx, 0xf000
and ax, cx
mov r14d, 0x4000
cmp ax, r14w
je 0x14015495a
mov r8d, r14d
lea rdx, [0x1404c3e38]
lea rcx, [0x1404cbfdc]
call fcn.14019d4e0
mov rcx, qword [0x1404cc268]
lea rdx, [0x1404c7e38]
mov r8d, r14d
mov rbx, rax
call fcn.14019d4e0
mov r8, rax
lea rdx, str.checkdir_error:___s_exists_but_is_not_directory_n_________________unable_to_process__s._n
mov r9, rbx
lea rcx, [0x1404bbe38]
call fcn.1401066c0
mov r8d, eax
lea rdx, [0x1404bbe38]
mov r9d, ebp
lea rcx, [0x1403dbd40]
call qword [0x1404cc1f8]
mov rcx, qword [0x1404cc260]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [0x1404cc268]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 0x300
jmp 0x140154ee6
test edi, edi
je 0x140154875
mov r8, r14
jmp 0x14015474d
cmp edx, 4
jne 0x1401549d0
mov rcx, qword [0x1404cc268]
nop word [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x140154980
mov rcx, qword [0x1404cc268]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [0x1404cc260]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor edi, edi
mov qword [0x1404cc278], rdi
xor eax, eax
mov qword [0x1404cc270], rdi
mov qword [0x1404cc268], rdi
mov qword [0x1404cc260], rdi
jmp 0x140154ee6
cmp edx, 3
jne 0x140154b26
mov rax, qword [0x1404cc270]
mov rdx, rcx
movzx ecx, byte [rcx]
xor edi, edi
mov byte [rax], cl
test cl, cl
je 0x140154a0e
nop
mov rcx, qword [0x1404cc270]
lea rdx, [rdx + 1]
inc rcx
mov qword [0x1404cc270], rcx
movzx eax, byte [rdx]
mov byte [rcx], al
test al, al
jne 0x1401549f0
mov rax, qword [0x1404cc270]
mov rcx, qword [0x1404cc260]
sub rax, rcx
cmp rax, 0x104
jl 0x140154aa5
mov byte [rcx + 0x103], dil
lea rdx, [0x1404c7e38]
mov rcx, qword [0x1404cc260]
mov r14d, 0x4000
mov r8d, r14d
call fcn.14019d4e0
mov r8d, r14d
lea rdx, [0x1404c3e38]
lea rcx, [0x1404cbfdc]
mov rdi, rax
call fcn.14019d4e0
mov r8, rax
lea rdx, str.checkdir_warning:__path_too_long__truncating_n________________s_n____________________s_n
mov r9, rdi
lea rcx, [0x1404bbe38]
call fcn.1401066c0
mov r8d, eax
lea rdx, [0x1404bbe38]
mov r9d, 1
lea rcx, [0x1403dbd40]
call qword [0x1404cc1f8]
mov rcx, qword [0x1404cc260]
mov edi, 0x100
mov rax, qword [0x1404bbe30]
test byte [rax + 0x28], 0x20
jne 0x140154acc
call fcn.140153e80
test eax, eax
je 0x140154acc
lea rdx, [0x1404cc278]
mov rcx, rbx
call fcn.140155a80
jmp 0x140154afe
movzx ecx, byte [rbx]
mov rax, qword [0x1404cc278]
mov byte [rax], cl
test cl, cl
je 0x140154afe
nop dword [rax]
mov rax, qword [0x1404cc278]
lea rbx, [rbx + 1]
inc rax
mov qword [0x1404cc278], rax
movzx ecx, byte [rbx]
mov byte [rax], cl
test cl, cl
jne 0x140154ae0
mov rcx, qword [0x1404cc278]
mov rax, qword [0x1404cc268]
sub rcx, rax
cmp rcx, 0x104
jl 0x140154b1f
mov byte [rax + 0x103], 0
mov eax, edi
jmp 0x140154ee6
cmp edx, 1
jne 0x140154d91
mov ecx, dword [0x1404cc244]
mov eax, dword [0x1404cc394]
inc eax
add ecx, eax
movsxd rcx, ecx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [0x1404cc260], rax
test rax, rax
je 0x140154b86
mov ecx, dword [0x1404cc244]
mov eax, dword [0x1404cc394]
inc eax
add ecx, eax
movsxd rcx, ecx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [0x1404cc268], rax
test rax, rax
jne 0x140154b90
mov rcx, qword [0x1404cc260]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 0xa00
jmp 0x140154ee6
mov rax, qword [0x1404bbe30]
test byte [rax + 0x28], 0x20
je 0x140154cc9
cmp dword [0x1404cc240], 0
je 0x140154bc7
cmp byte [rbx + 1], 0x3a
jne 0x140154bf1
movsx ecx, byte [rbx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov rcx, qword [0x1404cc260]
mov byte [rcx], al
jmp 0x140154c6b
cmp dword [0x1404cc394], 1
jle 0x140154bf1
mov rax, qword [0x1404cc258]
cmp byte [rax + 1], 0x3a
jne 0x140154bf1
movsx ecx, byte [rax]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov rcx, qword [0x1404cc260]
mov byte [rcx], al
jmp 0x140154c6b
lea r9, [rsp + 0x30]
mov edx, 0x104
lea r8, [rsp + 0x40]
lea rcx, [0x14032a254]
call qword [sym.imp.KERNEL32.dll_GetFullPathNameA]
cmp eax, 0x104
jbe 0x140154c4e
lea rdx, str.checkdir_warning:_current_dir_path_too_long_n
lea rcx, [0x1404bbe38]
call fcn.1401066c0
mov r8d, eax
lea rdx, [0x1404bbe38]
mov r9d, 1
lea rcx, [0x1403dbd40]
call qword [0x1404cc1f8]
mov eax, 0x100
jmp 0x140154ee6
movsx eax, byte [rsp + 0x40]
sub eax, 0x60
mov dword [0x1404cc248], eax
movzx ecx, al
mov rax, qword [0x1404cc260]
add cl, 0x60
mov byte [rax], cl
mov rcx, qword [0x1404cc260]
mov edx, dword [0x1403dbd8c]
movsx eax, byte [rcx]
sub eax, 0x60
mov dword [0x1404cc248], eax
test edx, edx
je 0x140154cac
cmp byte [rcx], 0x61
jl 0x140154cac
cmp edx, 1
jne 0x140154ca4
mov ecx, eax
call fcn.140155a40
mov rcx, qword [0x1404cc260]
test eax, eax
je 0x140154cac
mov byte [rcx], 0
jmp 0x140154d2d
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [0x1404cc268]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 0x1100
jmp 0x140154ee6
cmp dword [0x1404cc240], 0
je 0x140154cf3
mov rcx, qword [0x1404cc260]
nop dword [rax]
movzx eax, byte [rbx]
lea rbx, [rbx + 1]
mov byte [rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x140154ce0
jmp 0x140154d2d
cmp dword [0x1404cc394], 0
jle 0x140154d23
mov rcx, qword [0x1404cc258]
mov rdx, qword [0x1404cc260]
nop word [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140154d10
jmp 0x140154d2d
mov rax, qword [0x1404cc260]
mov byte [rax], 0
mov rax, qword [0x1404cc260]
mov rcx, qword [0x1404cc268]
mov qword [0x1404cc278], rcx
mov qword [0x1404cc270], rax
movzx eax, byte [rax]
mov byte [rcx], al
mov rcx, qword [0x1404cc278]
cmp byte [rcx], 0
je 0x1401548ae
nop
mov rax, qword [0x1404cc270]
inc rcx
inc rax
mov qword [0x1404cc278], rcx
mov qword [0x1404cc270], rax
movzx eax, byte [rax]
mov byte [rcx], al
test al, al
je 0x1401548ae
mov rcx, qword [0x1404cc278]
jmp 0x140154d60
test edx, edx
jne 0x140154fd1
test rcx, rcx
je 0x140154fec
cmp dword [0x1404cc394], edx
jg 0x1401548ae
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x140154db2
mov qword [rsp + 0x188], rsi
mov qword [rsp + 0x190], r15
mov dword [0x1404cc394], eax
test eax, eax
jle 0x140154fca
add eax, 3
xor edi, edi
movsxd rcx, eax
mov r15d, edi
mov r14d, edi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140154fba
mov rcx, rax
sub rcx, rbx
nop
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x140154e00
movzx ecx, byte [rsi]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalpha]
mov ebp, 1
test eax, eax
je 0x140154e28
cmp byte [rsi + 1], 0x3a
cmove r14d, ebp
movsxd rcx, dword [0x1404cc394]
movzx edx, byte [rcx + rsi - 1]
cmp dl, 0x2f
je 0x140154e3e
cmp dl, 0x5c
jne 0x140154e56
dec ecx
mov r15d, ebp
movsxd rax, ecx
mov dword [0x1404cc394], ecx
mov byte [rax + rsi], dil
mov ecx, dword [0x1404cc394]
test r14d, r14d
je 0x140154e80
cmp ecx, 2
jne 0x140154e80
test r15d, r15d
jne 0x140154f76
mov byte [rsi + 2], 0x2e
mov ecx, dword [0x1404cc394]
inc ecx
mov dword [0x1404cc394], ecx
jmp 0x140154f76
test ecx, ecx
jle 0x140154f76
lea rdx, [0x1404cbf48]
mov rcx, rsi
call fcn.140156d70
mov r14d, 0x4000
test eax, eax
jne 0x140154eba
movzx eax, word [0x1404cbf4e]
mov ecx, 0xf000
and ax, cx
cmp ax, r14w
je 0x140154f70
cmp dword [0x1403dbde0], edi
mov rcx, rsi
jne 0x140154f0a
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 0x200
mov dword [0x1404cc394], edi
mov rsi, qword [rsp + 0x188]
mov r15, qword [rsp + 0x190]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140229810
mov rbx, qword [rsp + 0x198]
add rsp, 0x160
pop r14
pop rdi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir]
cmp eax, 0xffffffff
jne 0x140154f70
mov r8, r14
lea rdx, [0x1404c3e38]
mov rcx, rsi
call fcn.14019d4e0
mov r8, rax
lea rdx, str.checkdir:__cannot_create_extraction_directory:__s_n
lea rcx, [0x1404bbe38]
call fcn.1401066c0
mov r8d, eax
lea rdx, [0x1404bbe38]
mov r9d, ebp
lea rcx, [0x1403dbd40]
call qword [0x1404cc1f8]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 0x300
mov dword [0x1404cc394], edi
jmp 0x140154ed6
mov ecx, dword [0x1404cc394]
movsxd rax, ecx
mov rcx, rsi
mov byte [rax + rsi], 0x2f
mov eax, dword [0x1404cc394]
inc eax
mov dword [0x1404cc394], eax
cdqe
mov byte [rax + rsi], dil
mov eax, dword [0x1404cc394]
inc eax
movsxd rdx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov qword [0x1404cc258], rax
test rax, rax
jne 0x140154fca
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [0x1404cc394], edi
mov eax, 0xa00
jmp 0x140154ed6
xor eax, eax
jmp 0x140154ed6
cmp edx, 5
jne 0x140154ffb
cmp dword [0x1404cc394], 0
jle 0x140154ff4
mov rcx, qword [0x1404cc258]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor edi, edi
mov dword [0x1404cc394], edi
xor eax, eax
jmp 0x140154ee6
mov eax, 0x6300
jmp 0x140154ee6