Function at 0x1401259b0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov eax, dword [rsp + 0x60]
add eax, 8
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x24], 0
mov edx, reloc.WS2_32.dll_recv
mov rcx, qword [rsp + 0x50]
call fcn.140114170
mov ecx, 8
imul rcx, rcx, 0
mov rax, qword [rax + rcx]
mov qword [rsp + 0x30], rax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x30]
call fcn.1402796f0
mov r9, qword [rsp + 0x30]
mov r8d, reloc.WS2_32.dll_recv
mov edx, 1
mov rcx, qword [rsp + 0x50]
call fcn.14027bacc
cmp rax, 0x10
je 0x140125a30
mov eax, 1
jmp 0x140125cad
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0xc], 0
jne 0x140125a45
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
jmp 0x140125ac0
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xc]
add eax, 4
xor r8d, r8d
mov edx, eax
mov rcx, qword [rsp + 0x30]
call fcn.1402796f0
mov r9, qword [rsp + 0x30]
mov r8d, 4
mov edx, 1
lea rcx, [rsp + 0x20]
call fcn.14027bacc
cmp rax, 4
je 0x140125a89
mov eax, 1
jmp 0x140125cad
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xc]
mov ecx, dword [rsp + 0x20]
lea rax, [rcx + rax + 8]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x50]
cmp eax, dword [rcx + 4]
jbe 0x140125ac0
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 8]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x50]
cmp dword [rax + 8], 0
je 0x140125b3f
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 8]
cmp dword [rsp + 0x20], eax
ja 0x140125b3f
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x50]
cmp eax, dword [rcx + 8]
jbe 0x140125b3f
xor r8d, r8d
mov rax, qword [rsp + 0x50]
mov edx, dword [rax + 8]
mov rcx, qword [rsp + 0x30]
call fcn.1402796f0
mov rax, qword [rsp + 0x50]
add rax, 8
mov r9, qword [rsp + 0x30]
mov r8d, 4
mov edx, 1
mov rcx, rax
call fcn.14027bacc
cmp rax, 4
je 0x140125b35
mov eax, 1
jmp 0x140125cad
mov dword [rsp + 0x24], 1
jmp 0x140125ac0
mov rax, qword [rsp + 0x50]
cmp dword [rax + 8], 0
jne 0x140125b5e
mov rax, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x20]
mov dword [rax + 8], ecx
mov dword [rsp + 0x24], 1
cmp dword [rsp + 0x24], 0
je 0x140125bad
mov rax, qword [rsp + 0x50]
add rax, 8
sub rax, qword [rsp + 0x50]
xor r8d, r8d
mov edx, eax
mov rcx, qword [rsp + 0x30]
call fcn.1402796f0
mov rax, qword [rsp + 0x50]
add rax, 8
mov r9, qword [rsp + 0x30]
mov r8d, 4
mov edx, 1
mov rcx, rax
call fcn.14027a558
mov rcx, qword [rsp + 0x30]
call fcn.140282018
xor r8d, r8d
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
call fcn.1402796f0
mov dword [rsp + 0x2c], 0
mov r9, qword [rsp + 0x30]
mov r8d, 4
mov edx, 1
lea rcx, [rsp + 0x2c]
call fcn.14027a558
mov r9, qword [rsp + 0x30]
mov r8d, 4
mov edx, 1
lea rcx, [rsp + 0x60]
call fcn.14027a558
cmp dword [rsp + 0x60], 0
jbe 0x140125c1c
mov eax, dword [rsp + 0x60]
mov r9, qword [rsp + 0x30]
mov r8d, eax
mov edx, 1
mov rcx, qword [rsp + 0x58]
call fcn.14027a558
mov rcx, qword [rsp + 0x30]
call fcn.140282018
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0xc], 0
je 0x140125c6a
xor r8d, r8d
mov rax, qword [rsp + 0x50]
mov edx, dword [rax + 0xc]
mov rcx, qword [rsp + 0x30]
call fcn.1402796f0
mov r9, qword [rsp + 0x30]
mov r8d, 4
mov edx, 1
lea rcx, [rsp + 0x20]
call fcn.14027a558
mov rcx, qword [rsp + 0x30]
call fcn.140282018
mov rax, qword [rsp + 0x50]
add rax, 0xc
sub rax, qword [rsp + 0x50]
xor r8d, r8d
mov edx, eax
mov rcx, qword [rsp + 0x30]
call fcn.1402796f0
mov r9, qword [rsp + 0x30]
mov r8d, 4
mov edx, 1
lea rcx, [rsp + 0x20]
call fcn.14027a558
mov rcx, qword [rsp + 0x30]
call fcn.140282018
xor eax, eax
add rsp, 0x48
ret