Function at 0x1402a75d4
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov r14d, r8d
mov rdi, rdx
movsxd r15, ecx
test r8d, r8d
jne 0x1402a7600
xor eax, eax
jmp 0x1402a784e
test rdi, rdi
jne 0x1402a7625
call fcn.14028c77c
and dword [rax], 0
call fcn.14028c79c
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.14028c64c
or eax, 0xffffffff
jmp 0x1402a784e
mov rcx, r15
lea r13, [0x1403dc500]
and ecx, 0x3f
mov rax, r15
sar rax, 6
mov r12, r15
shl rcx, 6
mov rdx, qword [r13 + rax*8]
mov sil, byte [rdx + rcx + 0x39]
lea eax, [rsi - 1]
cmp al, 1
ja 0x1402a765a
mov eax, r14d
not eax
test al, 1
je 0x1402a7605
test byte [rdx + rcx + 0x38], 0x20
je 0x1402a766f
xor edx, edx
mov ecx, r15d
lea r8d, [rdx + 2]
call fcn.1402a6e30
xor ebx, ebx
mov ecx, r15d
mov qword [rbp - 0x10], rbx
call fcn.1402a709c
test al, al
je 0x1402a7727
test sil, sil
je 0x1402a7709
dec sil
cmp sil, 1
ja 0x1402a77cf
xor esi, esi
lea r15, [rdi + r14]
mov qword [rbp - 0x20], rsi
mov r14, rdi
cmp rdi, r15
jae 0x1402a7702
mov ebx, dword [rbp - 0x1c]
movzx r13d, word [r14]
movzx ecx, r13w
call fcn.1402b67e8
cmp ax, r13w
jne 0x1402a76f2
add ebx, 2
mov dword [rbp - 0x1c], ebx
cmp r13w, 0xa
jne 0x1402a76e7
mov r13d, reloc.WS2_32.dll_listen
mov ecx, r13d
call fcn.1402b67e8
cmp ax, r13w
jne 0x1402a76f2
inc ebx
mov dword [rbp - 0x1c], ebx
inc esi
add r14, 2
cmp r14, r15
jae 0x1402a76fb
jmp 0x1402a76ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x20], eax
lea r13, [0x1403dc500]
mov ebx, esi
jmp 0x1402a77c5
mov r9d, r14d
lea rcx, [rbp - 0x20]
mov r8, rdi
mov edx, r15d
call fcn.1402a6e38
movsd xmm0, qword [rax]
mov ebx, dword [rax + 8]
jmp 0x1402a77ca
mov rcx, r12
mov rax, r12
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rdx, qword [r13 + rax*8]
cmp byte [rdx + rcx + 0x38], bl
jge 0x1402a7792
movsx ecx, sil
test sil, sil
je 0x1402a777e
sub ecx, 1
je 0x1402a776a
cmp ecx, 1
jne 0x1402a77cf
mov r9d, r14d
lea rcx, [rbp - 0x20]
mov r8, rdi
mov edx, r15d
call fcn.1402a7244
jmp 0x1402a771b
mov r9d, r14d
lea rcx, [rbp - 0x20]
mov r8, rdi
mov edx, r15d
call fcn.1402a7360
jmp 0x1402a771b
mov r9d, r14d
lea rcx, [rbp - 0x20]
mov r8, rdi
mov edx, r15d
call fcn.1402a7140
jmp 0x1402a771b
mov rcx, qword [rdx + rcx + 0x28]
lea r9, [rbp - 0x1c]
xor eax, eax
mov rdx, rdi
and qword [rsp + 0x20], rax
mov r8d, r14d
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x18], eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1402a77c2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x20], eax
mov ebx, dword [rbp - 0x18]
movsd xmm0, qword [rbp - 0x20]
movsd qword [rbp - 0x10], xmm0
mov rax, qword [rbp - 0x10]
shr rax, 0x20
test eax, eax
jne 0x1402a7849
mov ecx, dword [rbp - 0x10]
test ecx, ecx
je 0x1402a780c
cmp ecx, 5
jne 0x1402a7802
call fcn.14028c79c
mov dword [rax], 9
call fcn.14028c77c
mov dword [rax], 5
jmp 0x1402a761d
call fcn.14028c72c
jmp 0x1402a761d
mov rax, r12
and r12d, 0x3f
sar rax, 6
shl r12, 6
mov rax, qword [r13 + rax*8]
test byte [rax + r12 + 0x38], 0x40
je 0x1402a7831
cmp byte [rdi], 0x1a
je 0x1402a75f9
call fcn.14028c79c
mov dword [rax], 0x1c
call fcn.14028c77c
and dword [rax], 0
jmp 0x1402a761d
mov eax, dword [rbp - 0xc]
sub eax, ebx
mov rbx, qword [rsp + 0xa8]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret