Function at 0x1400f9180
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0xa0
lea rbp, [rsp + 0x20]
mov rax, qword [0x140325ed8]
xor rax, rbp
mov qword [rbp + 0x70], rax
mov qword [rbp + 0x28], 0
mov dword [rbp + 0x10], 0
mov r9d, 4
lea r8, str..exe
mov rdx, 0xffffffffffffffff
mov rcx, qword [rbp + 0x90]
call fcn.1401235e0
test eax, eax
jne 0x1400f924d
mov r9, qword [rbp + 0x90]
lea r8, [0x140333e04]
mov edx, 0x118
lea rcx, [0x1403decc0]
call fcn.140001420
mov dword [rbp], eax
mov r9, qword [rbp + 0x90]
lea r8, str._s.exe
mov edx, 0x1000
lea rcx, [0x1403bdcc0]
call fcn.140001420
xor r9d, r9d
xor r8d, r8d
mov edx, 0xffffffff
lea rcx, [0x1403bdcc0]
call fcn.140112d50
lea r8, [0x1403a7b50]
mov rdx, rax
lea rcx, [rbp + 8]
call fcn.140278e20
jmp 0x1400f9300
mov r9d, 1
lea r8, [0x140333de4]
mov rdx, 0xffffffffffffffff
mov rcx, qword [rbp + 0x90]
call fcn.140123990
mov dword [rbp], eax
cmp dword [rbp], 0
jle 0x1400f92c2
movsxd rax, dword [rbp]
mov rcx, qword [rbp + 0x90]
lea rax, [rcx + rax + 1]
mov r9, rax
lea r8, [0x140333dac]
mov edx, 0x118
lea rcx, [0x1403decc0]
call fcn.140001420
mov dword [rbp], eax
mov eax, dword [rbp]
sub eax, 4
cdqe
lea rcx, [0x1403decc0]
mov byte [rcx + rax], 0x5f
mov eax, dword [rbp]
sub eax, 3
mov dword [rbp], eax
jmp 0x1400f9300
mov r9, qword [rbp + 0x90]
lea r8, [0x140333d8c]
mov edx, 0x118
lea rcx, [0x1403decc0]
call fcn.140001420
mov dword [rbp], eax
mov eax, dword [rbp]
sub eax, 4
cdqe
lea rcx, [0x1403decc0]
mov byte [rcx + rax], 0x5f
mov eax, dword [rbp]
sub eax, 3
mov dword [rbp], eax
lea rdx, [rbp + 0x38]
mov rcx, qword [rbp + 0x90]
call fcn.140006430
test eax, eax
jne 0x1400f9360
movsxd rax, dword [rbp]
lea rcx, [0x1403decc0]
add rcx, rax
mov rax, rcx
mov r8, rax
mov edx, 0x30
lea rcx, [rbp + 0x38]
call fcn.14010fda0
movsxd rax, dword [rbp]
lea rcx, [0x1403decc0]
lea rax, [rcx + rax + 0x10]
mov r9d, 5
lea r8, [0x1403a7b48]
mov edx, 5
mov rcx, rax
call fcn.140001020
xor r9d, r9d
xor r8d, r8d
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x90]
call fcn.140112d50
lea r8, [0x1403a7b40]
mov rdx, rax
lea rcx, [rbp + 8]
call fcn.140278e20
cmp qword [rbp + 8], 0
je 0x1400f97cf
lea rax, [0x1403decc0]
mov qword [0x1403b96e8], rax
lea rax, [0x1403b9688]
mov qword [0x1403b96e0], rax
movsxd rax, dword [rbp]
lea rcx, [0x1403decc0]
add rcx, rax
mov rax, rcx
mov r9d, reloc.WS2_32.dll_recv
mov r8, rax
mov edx, reloc.WS2_32.dll_recvfrom
lea rcx, [0x1403b9688]
call fcn.140001020
mov qword [rbp + 0x18], 0
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 8]
call fcn.1402796f0
mov r9, qword [rbp + 8]
mov r8d, 2
mov edx, 1
lea rcx, [0x1403bdcc0]
call fcn.14027bacc
mov rcx, rax
call fcn.1400014e0
mov eax, 4
imul rax, rax, 0
lea rcx, [0x1403bdcc0]
movzx ecx, word [rcx + rax]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
cmp eax, 0x4d5a
jne 0x1400f97c6
xor r8d, r8d
mov edx, 0x3c
mov rcx, qword [rbp + 8]
call fcn.1402796f0
mov r9, qword [rbp + 8]
mov r8d, 4
mov edx, 1
lea rcx, [0x1403bdcc0]
call fcn.14027bacc
mov rcx, rax
call fcn.1400014e0
mov eax, 4
imul rax, rax, 0
lea rcx, [0x1403bdcc0]
xor r8d, r8d
mov edx, dword [rcx + rax]
mov rcx, qword [rbp + 8]
call fcn.1402796f0
mov r9, qword [rbp + 8]
mov r8d, 0x18
mov edx, 1
lea rcx, [0x1403bdcc0]
call fcn.14027bacc
mov rcx, rax
call fcn.1400014e0
mov eax, 4
imul rax, rax, 0
lea rcx, [0x1403bdcc0]
cmp dword [rcx + rax], 0x4550
jne 0x1400f97c6
mov eax, 2
imul rax, rax, 0xa
lea rcx, [0x1403bdcc0]
movzx eax, word [rcx + rax]
mov ecx, 0xffffffc7
cmp rax, rcx
jae 0x1400f9536
mov eax, 2
imul rax, rax, 0xa
lea rcx, [0x1403bdcc0]
movzx eax, word [rcx + rax]
add rax, 0x38
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x1400f951c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.14026deb0
sub rsp, rax
lea rax, [rsp + 0x20]
mov qword [rbp + 0x30], rax
jmp 0x1400f953e
mov qword [rbp + 0x30], 0
mov eax, 2
imul rax, rax, 0xa
lea rcx, [0x1403bdcc0]
movzx eax, word [rcx + rax]
mov r9d, 1
mov r8d, 8
mov edx, eax
mov rcx, qword [rbp + 0x30]
call fcn.140113960
mov rcx, rax
call fcn.140113430
mov qword [rbp + 0x18], rax
mov rax, qword [rbp + 0x18]
cmp qword [rax - 0x18], 4
jae 0x1400f958e
mov rcx, qword [rbp + 8]
call fcn.1402793a8
jmp 0x1400f97e9
mov r9, qword [rbp + 8]
mov rax, qword [rbp + 0x18]
mov r8, qword [rax - 0x18]
mov edx, 1
mov rcx, qword [rbp + 0x18]
call fcn.14027bacc
mov rcx, rax
call fcn.1400014e0
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rbp + 0x18]
movzx eax, word [rcx + rax]
mov dword [rbp + 0x20], eax
cmp dword [rbp + 0x20], 0x10b
je 0x1400f95db
cmp dword [rbp + 0x20], 0x20b
je 0x1400f964b
jmp 0x1400f96bb
mov rax, qword [rbp + 0x18]
cmp qword [rax - 0x18], 0x84
jae 0x1400f95f7
mov rcx, qword [rbp + 8]
call fcn.1402793a8
jmp 0x1400f97e9
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rbp + 0x18]
cmp dword [rcx + rax + 0x80], 0
je 0x1400f9635
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rbp + 0x18]
mov eax, dword [rcx + rax + 0x80]
sub eax, 0x10
xor r8d, r8d
mov edx, eax
mov rcx, qword [rbp + 8]
call fcn.1402796f0
jmp 0x1400f9649
mov r8d, 2
mov edx, 0xfffffff0
mov rcx, qword [rbp + 8]
call fcn.1402796f0
jmp 0x1400f96c9
mov rax, qword [rbp + 0x18]
cmp qword [rax - 0x18], 0x94
jae 0x1400f9667
mov rcx, qword [rbp + 8]
call fcn.1402793a8
jmp 0x1400f97e9
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rbp + 0x18]
cmp dword [rcx + rax + 0x90], 0
je 0x1400f96a5
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rbp + 0x18]
mov eax, dword [rcx + rax + 0x90]
sub eax, 0x10
xor r8d, r8d
mov edx, eax
mov rcx, qword [rbp + 8]
call fcn.1402796f0
jmp 0x1400f96b9
mov r8d, 2
mov edx, 0xfffffff0
mov rcx, qword [rbp + 8]
call fcn.1402796f0
jmp 0x1400f96c9
mov rcx, qword [rbp + 8]
call fcn.1402793a8
jmp 0x1400f97e9
mov r9, qword [rbp + 8]
mov r8d, reloc.WS2_32.dll_recv
mov edx, 1
lea rcx, [0x1403bdcc0]
call fcn.14027bacc
mov rcx, rax
call fcn.1400014e0
lea r8, [0x1403becc0]
mov edx, 0x20
lea rcx, str.B996015880544A19B7F7E9BE44914C18
call fcn.1401101f0
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [0x1403becc0]
lea rcx, [0x1403bdcc0]
call fcn.140270070
test eax, eax
jne 0x1400f97c6
mov r8d, 1
mov edx, 0xffffffec
mov rcx, qword [rbp + 8]
call fcn.1402796f0
mov r9, qword [rbp + 8]
mov r8d, 4
mov edx, 1
lea rcx, [rbp + 0x10]
call fcn.14027bacc
mov rcx, rax
call fcn.1400014e0
mov ecx, dword [rbp + 0x10]
call qword [sym.imp.WS2_32.dll_ntohl]
mov dword [rbp + 0x10], eax
mov eax, 0xfffffffc
sub eax, dword [rbp + 0x10]
mov r8d, 1
mov edx, eax
mov rcx, qword [rbp + 8]
call fcn.1402796f0
mov eax, dword [rbp + 0x10]
inc eax
cdqe
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call fcn.140113f90
mov qword [rbp + 0x28], rax
movsxd rax, dword [rbp + 0x10]
mov r9, qword [rbp + 8]
mov r8, rax
mov edx, 1
mov rcx, qword [rbp + 0x28]
call fcn.14027bacc
mov rcx, rax
call fcn.1400014e0
movsxd rax, dword [rbp + 0x10]
mov rcx, qword [rbp + 0x28]
mov byte [rcx + rax], 0
mov rcx, qword [rbp + 8]
call fcn.1402793a8
mov rax, qword [rbp + 0x98]
mov rcx, qword [rbp + 0x28]
mov qword [rax], rcx
mov rax, qword [rbp + 0xa0]
mov ecx, dword [rbp + 0x10]
mov dword [rax], ecx
mov rcx, qword [rbp + 0x70]
xor rcx, rbp
call fcn.14026d940
lea rsp, [rbp + 0x80]
pop rbp
ret