Function at 0x1402e9fb0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x5c0]
sub rsp, 0x6c0
mov rax, qword [0x140601e40]
xor rax, rsp
mov qword [rbp + 0x5b0], rax
cmp word [rcx], 0
je 0x1402ea3a7
mov rdx, rcx
lea rcx, [rsp + 0x30]
call fcn.1402e7ac0
nop
movsx rsi, byte [rsp + 0x47]
movzx eax, sil
shr al, 7
mov rdx, qword [rsp + 0x38]
test al, 1
je 0x1402ea01b
mov rcx, rdx
jmp 0x1402ea023
mov ecx, reloc.WS2_32.dll_inet_addr
sub rcx, rsi
mov r15, qword [rsp + 0x30]
test rcx, rcx
je 0x1402ea070
movzx eax, sil
shr al, 7
test al, 1
je 0x1402ea03e
lea rcx, [r15 + rdx*2]
jmp 0x1402ea04c
mov rax, rsi
add rax, rax
lea rcx, [rsp + 0x46]
sub rcx, rax
movzx eax, word [rcx - 2]
cmp ax, 0x5c
je 0x1402ea060
cmp ax, 0x2f
je 0x1402ea060
xor eax, eax
jmp 0x1402ea065
mov eax, 1
test al, al
je 0x1402ea070
mov eax, 1
jmp 0x1402ea072
xor eax, eax
test al, al
jne 0x1402ea098
mov edx, 1
lea r8d, [rdx + 0x5b]
lea rcx, [rsp + 0x30]
call fcn.1402dd8a0
movzx esi, byte [rsp + 0x47]
mov rdx, qword [rsp + 0x38]
mov r15, qword [rsp + 0x30]
mov byte [rsp + 0x20], 1
movzx eax, sil
shr al, 7
test al, 1
je 0x1402ea0ae
lea rdx, [r15 + rdx*2]
jmp 0x1402ea0bd
movsx rax, sil
add rax, rax
lea rdx, [rsp + 0x46]
sub rdx, rax
movzx eax, sil
shr al, 7
lea rcx, [rsp + 0x30]
test al, al
cmovne rcx, r15
mov r8d, 1
call fcn.1402ec590
mov r14, rax
xor r12d, r12d
movabs rdi, 0x200000000801
movzx eax, sil
shr al, 7
lea rcx, [rsp + 0x30]
test al, al
cmovne rcx, r15
mov rax, r14
sub rax, rcx
sar rax, 1
inc eax
cmp eax, 0x100
jae 0x1402ea2d1
shr sil, 7
lea rdx, [rsp + 0x30]
test sil, sil
cmovne rdx, r15
mov r8d, eax
lea rcx, [rbp + 0x190]
call fcn.1402fabd0
movzx eax, word [rbp + 0x190]
test ax, ax
je 0x1402ea171
lea r8, [rbp + 0x160]
xor edx, edx
lea rcx, [rbp + 0x190]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x1402ea16a
mov eax, dword [rbp + 0x160]
cmp eax, 0xffffffff
je 0x1402ea16a
test al, 0x10
jne 0x1402ea1f6
movzx eax, word [rbp + 0x190]
lea rbx, [rbp + 0x190]
test ax, ax
je 0x1402ea2c7
lea rcx, [rbp + 0x190]
call fcn.1402facc0
mov r8, rax
movzx eax, word [rbp + rax*2 + 0x18e]
add eax, 0xffffffd1
cmp eax, 0x2d
ja 0x1402ea1af
cdqe
bt rdi, rax
jae 0x1402ea1af
mov eax, 1
jmp 0x1402ea1b1
xor eax, eax
test al, al
je 0x1402ea1cf
lea rdx, [rbp + 0x190]
lea rcx, [rbp + 0x3a0]
call fcn.1402fabd0
lea rbx, [rbp + 0x3a0]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1402ea1ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1402ea2c7
test r12, r12
cmove r12, r14
movsx rsi, byte [rsp + 0x47]
movzx eax, sil
shr al, 7
mov r13, qword [rsp + 0x38]
mov r15, qword [rsp + 0x30]
test al, 1
je 0x1402ea217
lea rbx, [r15 + r13*2]
jmp 0x1402ea225
mov rax, rsi
add rax, rax
lea rbx, [rsp + 0x46]
sub rbx, rax
cmp rbx, qword [0x14062f870]
jne 0x1402ea24a
mov rbx, r14
cmp word [r14], 0
je 0x1402ea24a
nop dword [rax + rax]
add rbx, 2
cmp word [rbx], 0
jne 0x1402ea240
mov edi, 2
mov rcx, r14
cmp r14, rbx
jae 0x1402ea297
test edi, edi
jle 0x1402ea26f
mov rdx, rbx
call fcn.1402eb900
mov rcx, rax
dec edi
cmp rax, rbx
jb 0x1402ea257
test edi, edi
jne 0x1402ea297
cmp rcx, r14
jbe 0x1402ea297
movzx eax, word [rcx - 2]
cmp ax, 0x5c
je 0x1402ea28a
cmp ax, 0x2f
je 0x1402ea28a
xor eax, eax
jmp 0x1402ea28f
mov eax, 1
test al, al
je 0x1402ea297
sub rcx, 2
mov r14, rcx
movzx eax, sil
shr al, 7
test al, 1
je 0x1402ea2ab
lea rdx, [r15 + r13*2]
jmp 0x1402ea2b9
mov rax, rsi
add rax, rax
lea rdx, [rsp + 0x46]
sub rdx, rax
cmp rcx, rdx
je 0x1402ea349
jmp 0x1402ea0e0
movzx esi, byte [rsp + 0x47]
mov r15, qword [rsp + 0x30]
mov byte [rsp + 0x20], 0
test r12, r12
je 0x1402ea349
movzx eax, sil
shr al, 7
lea rcx, [rsp + 0x30]
test al, al
cmovne rcx, r15
sub r12, rcx
sar r12, 1
lea r8, [r12 + 1]
shr sil, 7
lea rdx, [rsp + 0x30]
test sil, sil
cmovne rdx, r15
lea rcx, [rbp + 0x190]
call fcn.1402fabd0
mov r8d, 0x104
lea rdx, [rbp + 0x190]
lea rcx, [rbp + 0x3a0]
call fcn.1402fabd0
lea rcx, [rbp + 0x3a0]
call fcn.1402facc0
mov rdx, rax
lea rcx, [rbp + 0x3a0]
call fcn.1402ef420
nop
movzx ecx, byte [rsp + 0x47]
movzx eax, cl
shr al, 7
test al, 1
je 0x1402ea3a0
mov r8, qword [rsp + 0x40]
movabs rax, 0x7fffffffffffffff
and r8, rax
inc r8
shr cl, 7
test cl, 1
je 0x1402ea386
mov rdx, qword [rsp + 0x30]
test rdx, rdx
jne 0x1402ea38b
movzx eax, byte [rsp + 0x20]
jmp 0x1402ea3a9
lea rdx, [rsp + 0x30]
cmp rdx, qword [rsp + 0x58]
je 0x1402ea3a0
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
add r8, r8
call qword [rax + 0x18]
movzx eax, byte [rsp + 0x20]
jmp 0x1402ea3a9
xor al, al
mov rcx, qword [rbp + 0x5b0]
xor rcx, rsp
call fcn.140284180
lea r11, [rsp + 0x6c0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret