Function at 0x14002b840
Capabilities:
Create directory
Write file on windows

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 - 0xfd0]
mov eax, 0x10d0
call fcn.140134690
sub rsp, rax
mov rsi, rcx
mov rcx, qword [rcx + 0x50]
call fcn.14000f7b0
xor r13d, r13d
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x58], r13b
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], r13b
jne 0x14002b8a0
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.1400157e0
nop
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 0x10
cmovae rcx, qword [rsp + 0x58]
mov r15, qword [rsp + 0x68]
add r15, rcx
lea r14, [rsp + 0x58]
cmp qword [rsp + 0x70], 0x10
cmovae r14, qword [rsp + 0x58]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r13
mov rdi, r15
sub rdi, r14
je 0x14002b974
movabs rax, 0x7fffffffffffffff
cmp rdi, rax
ja 0x14002bbfa
cmp rdi, 0x1000
jb 0x14002b93c
lea rcx, [rdi + 0x27]
cmp rcx, rdi
jbe 0x14002bc00
call fcn.140133e2c
test rax, rax
je 0x14002bc0c
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x14002b947
mov rcx, rdi
call fcn.140133e2c
mov rbx, rax
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbx
lea rcx, [rbx + rdi]
mov qword [rsp + 0x50], rcx
mov r8, rdi
mov rdx, r14
mov rcx, rbx
call fcn.1401378a0
sub rbx, r14
lea rax, [rbx + r15]
mov qword [rsp + 0x48], rax
cmp byte [rsi + 9], 0
je 0x14002ba16
lea rcx, [rsp + 0x78]
call fcn.14002b2a0
nop
lea rdx, [rsi + 0x10]
mov r9b, 1
lea r8, [rsp + 0x78]
lea rcx, [rbp - 0x70]
call fcn.14000eb50
nop
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x70]
call fcn.14000eba0
nop
lea rcx, [rbp - 0x70]
call fcn.14002aed0
movzx eax, byte [rbp + 0x1000]
mov byte [rsp + 0x20], al
mov r9, qword [rbp - 0x80]
mov r8, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.14002ab30
nop
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14002ba16
mov rdx, qword [rbp - 0x78]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002ba11
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002bc06
call fcn.140133e68
cmp byte [rsi + 8], 0
je 0x14002ba2f
mov rcx, qword [rsi + 0x48]
test rcx, rcx
je 0x14002ba2f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0x48], r13
mov rdi, qword [rsp + 0x40]
cmp rdi, qword [rsp + 0x48]
jne 0x14002ba43
xor r14b, r14b
jmp 0x14002bb4b
mov r12, qword [rsp + 0x48]
sub r12, rdi
lea rbx, [rsi + 0x28]
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14002ba5c
mov rcx, qword [rbx]
mov rax, qword [rbx + 0x10]
lea r14, [rax + rax]
lea r8, [r14 + rcx]
mov rdx, rbx
jb 0x14002ba70
mov rdx, qword [rbx]
sub r8, rdx
lea rcx, [rbp - 0x30]
call fcn.1401378a0
mov word [rbp + r14 - 0x30], r13w
lea rcx, [rbp - 0x30]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x14002ba9c
xor edx, edx
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor r14b, r14b
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14002baac
mov rcx, qword [rbx]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x14002bb05
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0x1000]
mov r8d, r12d
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne r14b
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [rsi + 8], 0
je 0x14002bb46
cmp qword [rsi + 0x48], 0
jne 0x14002bb46
cmp qword [rbx + 0x18], 8
jb 0x14002bb1c
mov rbx, qword [rbx]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsi + 0x48], rax
mov rdi, qword [rsp + 0x40]
test rdi, rdi
je 0x14002bb93
mov rdx, qword [rsp + 0x50]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x14002bb7d
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002bc0c
mov rcx, rdi
call fcn.140133e68
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r13
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x14002bbcf
inc rdx
mov r8, qword [rsp + 0x58]
mov rax, r8
cmp rdx, 0x1000
jb 0x14002bbc7
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002bbf4
mov rcx, r8
call fcn.140133e68
movzx eax, r14b
lea r11, [rsp + 0x10d0]
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
call fcn.1401462a8
nop
call fcn.14000f400
nop
call fcn.14000f3e0
nop
call fcn.1401462a8
nop
call fcn.1401462a8
int3