Function at 0x140002a18
Capabilities:
Write file on windows

Disassembly:
jmp 0x1400f5498
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
xor edi, edi
mov r15d, r8d
movsxd r12, ecx
mov rsi, rdx
test r8d, r8d
jne 0x1400f54c6
xor eax, eax
jmp 0x1400f5761
test rdx, rdx
jne 0x1400f54ea
call fcn.140004e0d
mov dword [rax], edi
call fcn.1400033cd
mov dword [rax], socket
call fcn.140004845
or eax, 0xffffffff
jmp 0x1400f5761
mov r14, r12
lea rax, [0x1401850b0]
and r14d, 0x3f
mov r13, r12
sar r13, 6
shl r14, 6
mov qword [rbp - 0x10], r13
mov rcx, qword [rax + r13*8]
mov bl, byte [rcx + r14 + 0x39]
lea eax, [rbx - 1]
cmp al, 1
ja 0x1400f5520
mov eax, r15d
not eax
test al, 1
je 0x1400f54cb
test byte [rcx + r14 + 0x38], 0x20
je 0x1400f5536
xor edx, edx
mov ecx, r12d
lea r8d, [rdx + 2]
call fcn.14000573b
mov ecx, r12d
mov qword [rbp - 0x20], rdi
call fcn.1400023ab
test eax, eax
je 0x1400f564b
lea rax, [0x1401850b0]
mov rax, qword [rax + r13*8]
test byte [rax + r14 + 0x38], 0x80
je 0x1400f564b
call fcn.140002ab8
mov rcx, qword [rax + 0x90]
cmp qword [rcx + 0x138], rdi
jne 0x1400f558c
lea rax, [0x1401850b0]
mov rax, qword [rax + r13*8]
cmp byte [rax + r14 + 0x39], dil
je 0x1400f564b
lea rax, [0x1401850b0]
mov rcx, qword [rax + r13*8]
lea rdx, [rbp - 8]
mov rcx, qword [rcx + r14 + 0x28]
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x1400f564b
test bl, bl
je 0x1400f562d
dec bl
cmp bl, 1
ja 0x1400f56e8
and dword [rbp - 0x30], edi
lea r12, [rsi + r15]
xor ebx, ebx
mov r15, rsi
mov dword [rbp - 0x2c], ebx
cmp rsi, r12
jae 0x1400f56de
movzx r13d, word [r15]
movzx ecx, r13w
call fcn.14000407a
cmp ax, r13w
jne 0x1400f561b
add ebx, 2
mov dword [rbp - 0x2c], ebx
cmp r13w, 0xa
jne 0x1400f5610
mov r13d, reloc.WSOCK32.dll_listen
mov ecx, r13d
call fcn.14000407a
cmp ax, r13w
jne 0x1400f561b
inc ebx
mov dword [rbp - 0x2c], ebx
inc edi
add r15, 2
cmp r15, r12
jae 0x1400f5624
jmp 0x1400f55d5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x30], eax
mov r13, qword [rbp - 0x10]
jmp 0x1400f56de
mov r9d, r15d
lea rcx, [rbp - 0x30]
mov r8, rsi
mov edx, r12d
call fcn.1400f4afc
movsd xmm0, qword [rax]
mov edi, dword [rax + 8]
jmp 0x1400f56e3
lea rax, [0x1401850b0]
mov rcx, qword [rax + r13*8]
test byte [rcx + r14 + 0x38], 0x80
je 0x1400f56ab
movsx ecx, bl
test bl, bl
je 0x1400f5697
sub ecx, 1
je 0x1400f5683
cmp ecx, 1
jne 0x1400f56e8
mov r9d, r15d
lea rcx, [rbp - 0x30]
mov r8, rsi
mov edx, r12d
call fcn.1400f503c
jmp 0x1400f563f
mov r9d, r15d
lea rcx, [rbp - 0x30]
mov r8, rsi
mov edx, r12d
call fcn.1400f51a0
jmp 0x1400f563f
mov r9d, r15d
lea rcx, [rbp - 0x30]
mov r8, rsi
mov edx, r12d
call fcn.1400f4ef4
jmp 0x1400f563f
mov rcx, qword [rcx + r14 + 0x28]
lea r9, [rbp - 0x2c]
and dword [rbp - 0x30], edi
xor eax, eax
and qword [rsp + 0x20], rax
mov r8d, r15d
mov rdx, rsi
mov qword [rbp - 0x2c], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400f56db
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x30], eax
mov edi, dword [rbp - 0x28]
movsd xmm0, qword [rbp - 0x30]
movsd qword [rbp - 0x20], xmm0
mov rax, qword [rbp - 0x20]
shr rax, 0x20
test eax, eax
jne 0x1400f575c
mov eax, dword [rbp - 0x20]
test eax, eax
je 0x1400f5728
cmp eax, 5
jne 0x1400f571b
call fcn.1400033cd
mov dword [rax], 9
call fcn.140004e0d
mov dword [rax], 5
jmp 0x1400f54e2
mov ecx, dword [rbp - 0x20]
call fcn.140004138
jmp 0x1400f54e2
lea rax, [0x1401850b0]
mov rax, qword [rax + r13*8]
test byte [rax + r14 + 0x38], 0x40
je 0x1400f5744
cmp byte [rsi], 0x1a
je 0x1400f54bf
call fcn.1400033cd
mov dword [rax], 0x1c
call fcn.140004e0d
and dword [rax], 0
jmp 0x1400f54e2
mov eax, dword [rbp - 0x1c]
sub eax, edi
mov rbx, qword [rsp + 0xb8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret