Function at 0x1402a3ef8
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, 0x60
xor r13d, r13d
mov esi, r8d
movsxd r15, ecx
mov rdi, rdx
test r8d, r8d
jne 0x1402a3f27
xor eax, eax
jmp 0x1402a41d9
test rdx, rdx
jne 0x1402a3f4c
call fcn.1402946a4
mov dword [rax], r13d
call fcn.1402946c4
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1402904fc
or eax, 0xffffffff
jmp 0x1402a41d9
mov r14, r15
lea rax, [0x1403f1e60]
and r14d, 0x3f
mov r12, r15
sar r12, 6
shl r14, 6
mov qword [rbp - 8], r12
mov rcx, qword [rax + r12*8]
mov bl, byte [rcx + r14 + 0x39]
lea eax, [rbx - 1]
cmp al, 1
ja 0x1402a3f81
mov eax, esi
not eax
test al, 1
je 0x1402a3f2c
test byte [rcx + r14 + 0x38], 0x20
je 0x1402a3f97
xor edx, edx
mov ecx, r15d
lea r8d, [rdx + 2]
call fcn.1402a2d9c
xor eax, eax
mov dword [rbp - 0x20], r13d
mov ecx, r15d
mov qword [rbp - 0x1c], rax
call fcn.1402b56dc
test eax, eax
je 0x1402a40bd
lea rax, [0x1403f1e60]
mov rax, qword [rax + r12*8]
test byte [rax + r14 + 0x38], 0x80
je 0x1402a40bd
call fcn.1402ae784
mov rcx, qword [rax + 0x90]
cmp qword [rcx + 0x138], r13
jne 0x1402a3ff3
lea rax, [0x1403f1e60]
mov rax, qword [rax + r12*8]
cmp byte [rax + r14 + 0x39], r13b
je 0x1402a40bd
lea rax, [0x1403f1e60]
mov rcx, qword [rax + r12*8]
lea rdx, [rbp - 0x10]
mov rcx, qword [rcx + r14 + 0x28]
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x1402a40bd
test bl, bl
je 0x1402a409f
dec bl
cmp bl, 1
ja 0x1402a40f5
xor eax, eax
mov dword [rbp - 0x30], r13d
lea r15, [rdi + rsi]
mov qword [rbp - 0x2c], rax
mov ebx, dword [rbp - 0x28]
mov r12, rdi
cmp rdi, r15
jae 0x1402a4096
mov esi, eax
movzx r13d, word [r12]
movzx ecx, r13w
call fcn.1402b573c
cmp ax, r13w
jne 0x1402a408a
add esi, 2
mov dword [rbp - 0x2c], esi
cmp r13w, 0xa
jne 0x1402a407f
mov r13d, reloc.WS2_32.dll_listen
mov ecx, r13d
call fcn.1402b573c
cmp ax, r13w
jne 0x1402a408a
inc esi
mov dword [rbp - 0x2c], esi
inc ebx
add r12, 2
cmp r12, r15
jae 0x1402a4093
jmp 0x1402a4043
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x30], eax
xor r13d, r13d
mov r12, qword [rbp - 8]
jmp 0x1402a4156
mov r9d, esi
lea rcx, [rbp - 0x30]
mov r8, rdi
mov edx, r15d
call fcn.1402a3850
movsd xmm0, qword [rax]
mov ebx, dword [rax + 8]
jmp 0x1402a415b
lea rax, [0x1403f1e60]
mov rcx, qword [rax + r12*8]
test byte [rcx + r14 + 0x38], 0x80
je 0x1402a4122
movsx ecx, bl
test bl, bl
je 0x1402a410e
sub ecx, 1
je 0x1402a40fa
cmp ecx, 1
jne 0x1402a40f5
mov r9d, esi
lea rcx, [rbp - 0x30]
mov r8, rdi
mov edx, r15d
call fcn.1402a3b7c
jmp 0x1402a40b1
mov ebx, dword [rbp - 0x18]
jmp 0x1402a4160
mov r9d, esi
lea rcx, [rbp - 0x30]
mov r8, rdi
mov edx, r15d
call fcn.1402a3c98
jmp 0x1402a40b1
mov r9d, esi
lea rcx, [rbp - 0x30]
mov r8, rdi
mov edx, r15d
call fcn.1402a3a78
jmp 0x1402a40b1
mov rcx, qword [rcx + r14 + 0x28]
lea r9, [rbp - 0x2c]
xor eax, eax
mov dword [rbp - 0x30], r13d
mov r8d, esi
mov qword [rbp - 0x2c], rax
mov rdx, rdi
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1402a4153
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x30], eax
mov ebx, 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 0x1402a41d4
mov eax, dword [rbp - 0x20]
test eax, eax
je 0x1402a41a0
cmp eax, 5
jne 0x1402a4193
call fcn.1402946c4
mov dword [rax], 9
call fcn.1402946a4
mov dword [rax], 5
jmp 0x1402a3f44
mov ecx, dword [rbp - 0x20]
call fcn.140294654
jmp 0x1402a3f44
lea rax, [0x1403f1e60]
mov rax, qword [rax + r12*8]
test byte [rax + r14 + 0x38], 0x40
je 0x1402a41bc
cmp byte [rdi], 0x1a
je 0x1402a3f20
call fcn.1402946c4
mov dword [rax], 0x1c
call fcn.1402946a4
mov dword [rax], r13d
jmp 0x1402a3f44
mov eax, dword [rbp - 0x1c]
sub eax, ebx
mov rbx, qword [rsp + 0xb8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret