Function at 0x207971760
Capabilities:
Create directory

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb08
xor ebx, ebx
mov rax, rbx
lea rdi, [rsp + 0x70]
mov r12, rcx
mov ecx, 0x40
mov rsi, rdx
mov qword [rsp + 0x38], rdi
mov r14, rdi
lea rdx, [rsp + 0x280]
rep stosq qword [rdi], rax
mov ecx, 0x40
mov qword [rsp + 0xb60], r8
mov qword [rsp + 0xb68], r9
mov byte [rdi], 0
mov rdi, rdx
rep stosq qword [rdi], rax
mov rcx, rsi
mov byte [rdi], 0
call sub.msvcrt.dll_strlen
lea r8, [rax + 1]
mov qword [rsp + 0x48], rax
mov r9, rax
cmp r8, 0x200
ja 0x207971cd4
lea rax, [rsp + 0x6a0]
mov ecx, 0x8b
mov rdi, rax
mov qword [rsp + 0x68], rax
mov rax, rbx
rep stosq qword [rdi], rax
mov rdi, r14
cmp r8d, 8
jb 0x20797180a
mov ecx, r8d
shr ecx, 3
rep movsq qword [rdi], qword [rsi]
xor eax, eax
test r8b, 4
jne 0x207971cb4
test r8b, 2
jne 0x207971c9c
test r8b, 1
jne 0x207971c90
movzx eax, byte [rsp + r9 + 0x6f]
cmp al, 0x2f
je 0x207971843
cmp al, 0x5c
je 0x207971843
mov byte [rsp + r9 + 0x70], 0x5c
mov qword [rsp + 0x48], r8
mov eax, 0x200
sub rax, qword [rsp + 0x48]
mov qword [rsp + 0x58], rax
mov eax, dword [r12 + 0x10]
test eax, eax
je 0x207971b67
mov qword [rsp + 0x60], rax
mov rbp, qword [sym.imp.msvcrt.dll__mkdir]
xor ebx, ebx
nop dword [rax]
mov rax, qword [r12 + 0x68]
mov dword [rsp + 0x44], ebx
test rax, rax
je 0x207971bd8
cmp dword [r12 + 0x10], ebx
jbe 0x207971bd8
mov rdx, qword [rax + 0x20]
lea rdi, [rbx*4]
mov qword [rsp + 0x50], rdi
mov r8d, dword [rdx + rbx*4]
add r8, qword [rax]
je 0x207971bd8
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x68]
mov edx, ebx
mov rcx, r12
call fcn.207967a50
test eax, eax
je 0x207971cdf
lea rsi, [rsp + 0x6f8]
mov rcx, rsi
call sub.msvcrt.dll_strlen
mov r8, rax
test rax, rax
je 0x207971c50
movzx eax, byte [rsp + 0x6f8]
cmp al, 0x5c
je 0x2079718fb
cmp al, 0x2f
jne 0x207971c88
mov rax, rsi
nop
movzx edx, byte [rax + 1]
add rax, 1
cmp dl, 0x2f
je 0x207971900
cmp dl, 0x5c
je 0x207971900
add r8, rax
xor r10d, r10d
xor ecx, ecx
jmp 0x207971940
lea rdi, [r10 + 0xb00]
add rcx, 1
lea r11, [rsp + rdi]
mov byte [rcx + r11 - 0x409], dl
add rax, 1
cmp r8, rax
je 0x207971980
movzx edx, byte [rax]
lea r9, [rsi + r10]
cmp dl, 0x2f
je 0x207971951
cmp dl, 0x5c
jne 0x207971920
test rcx, rcx
je 0x207971937
cmp byte [r9], 0x2e
jne 0x207971a68
cmp byte [r9 + 1], 0
jne 0x207971a68
add rax, 1
xor ecx, ecx
cmp r8, rax
jne 0x207971940
nop word cs:[rax + rax]
test rcx, rcx
je 0x20797199a
cmp byte [r9], 0x2e
jne 0x207971c60
cmp byte [r9 + 1], 0
jne 0x207971c60
mov byte [r9], 0
mov r8, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x38]
mov rdx, rsi
add rcx, qword [rsp + 0x48]
call sub.msvcrt.dll_strncpy
movzx edx, byte [rsp + 0x70]
mov eax, edx
and eax, 0xffffffdf
sub eax, 0x41
cmp al, 0x19
ja 0x2079719d1
cmp byte [rsp + 0x71], 0x3a
je 0x207971b90
mov ecx, 0x40
xor eax, eax
mov r14, qword [rsp + 0x38]
xor r8d, r8d
lea r13, [rsp + 0x490]
mov esi, 1
mov rdi, r13
rep stosq qword [rdi], rax
mov byte [rdi], 0
xor edi, edi
test dl, dl
je 0x207971aa0
movsxd r15, r8d
jmp 0x207971a2e
add r14, 1
lea eax, [r15 + 1]
mov byte [r13 + r15], dl
movzx edx, byte [r14]
cmp eax, 0x1ff
setle cl
test dl, dl
setne al
add r15, 1
test cl, al
je 0x207971aa0
cmp dl, 0x2f
je 0x207971a38
cmp dl, 0x5c
jne 0x207971a08
mov eax, r15d
test r15d, r15d
jle 0x207971a45
test sil, sil
jne 0x207971a4f
cmp eax, 2
jle 0x207971a08
test dil, dil
je 0x207971a08
mov rcx, r13
call rbp
cmp eax, 0xffffffff
je 0x207971b70
movzx edx, byte [r14]
jmp 0x207971a08
cmp byte [r9], 0x2e
jne 0x207971a80
cmp byte [r9 + 1], 0x2e
jne 0x207971a80
cmp byte [r9 + 2], 0
je 0x20797196b
add rcx, r10
lea r10, [rcx + 1]
mov byte [rsp + rcx + 0x6f8], dl
xor ecx, ecx
lea r9, [rsi + r10]
jmp 0x207971937
movzx eax, byte [rsp + 0x6b1]
and eax, 0xffffffef
cmp ax, 3
jne 0x207971abb
test byte [rsp + 0x6df], 0x20
jne 0x207971b35
mov rdx, qword [r12 + 0x68]
test rdx, rdx
je 0x207971c40
mov eax, dword [rsp + 0x44]
cmp dword [r12 + 0x10], eax
jbe 0x207971c40
mov rax, qword [rdx + 0x20]
mov rdi, qword [rsp + 0x50]
mov eax, dword [rax + rdi]
add rax, qword [rdx]
je 0x207971c40
movzx edx, word [rax + 0x1c]
test dx, dx
je 0x207971afd
cmp byte [rax + rdx + 0x2d], 0x2f
je 0x207971b1f
test byte [rax + 0x26], 0x10
jne 0x207971b1f
mov r8, qword [rsp + 0x38]
mov edx, dword [rsp + 0x44]
xor r9d, r9d
mov rcx, r12
call fcn.2079715d0
test eax, eax
je 0x207971cc9
movzx edx, word [rsp + 0x6de]
lea eax, [rdx - 1]
cmp eax, 0xfffe
jbe 0x207971c20
cmp qword [rsp + 0xb60], 0
je 0x207971b58
mov rdx, qword [rsp + 0xb68]
mov rcx, qword [rsp + 0x38]
call qword [rsp + 0xb60]
test eax, eax
js 0x207971b67
add rbx, 1
cmp qword [rsp + 0x60], rbx
jne 0x207971870
xor r13d, r13d
jmp 0x207971be7
call qword [sym.imp.msvcrt.dll__errno]
cmp dword [rax], 0x11
je 0x207971a5d
mov r13d, 0xffffffe9
jmp 0x207971be7
mov ecx, 0x40
xor eax, eax
xor esi, esi
mov r8d, 2
lea r13, [rsp + 0x490]
lea r14, [rsp + 0x72]
mov rdi, r13
rep stosq qword [rdi], rax
mov byte [rsp + 0x490], dl
movzx edx, byte [rsp + 0x72]
mov byte [rsp + 0x491], 0x3a
mov byte [rdi], 0
mov edi, 1
jmp 0x2079719f8
mov dword [r12 + 0x1c], 0x18
mov r13d, 0xfffffffd
mov edx, 1
mov rcx, r12
call fcn.2079629b0
test eax, eax
mov eax, 0xffffffe7
cmove r13d, eax
mov eax, r13d
add rsp, 0xb08
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rsp + 0x38]
call sub.msvcrt.dll__chmod
test eax, eax
jns 0x207971b35
mov r13d, 0xffffffec
jmp 0x207971be7
mov dword [r12 + 0x1c], 0x18
jmp 0x207971b03
mov r13d, 0xfffffffe
jmp 0x207971be7
cmp byte [r9], 0x2e
jne 0x20797199e
cmp byte [r9 + 1], 0x2e
jne 0x20797199e
cmp byte [r9 + 2], 0
je 0x20797199a
jmp 0x20797199e
mov rax, rsi
jmp 0x207971912
movzx edx, byte [rsi + rax]
mov byte [rdi + rax], dl
jmp 0x20797182a
movzx edx, word [rsi + rax]
mov word [rdi + rax], dx
add rax, 2
test r8b, 1
je 0x20797182a
jmp 0x207971c90
mov eax, dword [rsi]
mov dword [rdi], eax
mov eax, 4
test r8b, 2
je 0x207971820
jmp 0x207971c9c
mov r13d, 0xffffffed
jmp 0x207971be7
mov r13d, 0xfffffffe
jmp 0x207971bff
mov r13d, 0xfffffffd
jmp 0x207971be7