Function at 0x140085520
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xe0
lea rdi, [rsp + 0x20]
mov ecx, gethostbyname
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xf0]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x44], 0x5a
cmp qword [rsp + 0xf8], 0
jne 0x140085581
xor eax, eax
jmp 0x140085a50
cmp qword [rsp + 0x100], 0
je 0x140085597
cmp qword [rsp + 0x108], 0
jne 0x1400855a0
mov eax, dword [rsp + 0x44]
jmp 0x140085a50
mov r8d, 8
lea rdx, [0x1401e1d10]
mov rcx, qword [rsp + 0xf8]
call fcn.140154370
test eax, eax
jne 0x140085849
mov rax, qword [0x1401e1c30]
cmp qword [rax + 0xb8], 0
jne 0x1400855dc
mov eax, dword [rsp + 0x44]
jmp 0x140085a50
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call qword [fcn.140135cc0]
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0xa0], 0
jne 0x140085604
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x140085a50
mov r9d, reloc.WLDAP32.dll_Ordinal_32
mov r8, qword [rsp + 0xa0]
mov rdx, qword [rsp + 0x108]
mov rcx, qword [rsp + 0x100]
mov rax, qword [0x1401e1c30]
call qword [rax + 0xb8]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x140085643
mov eax, dword [rsp + 0x48]
jmp 0x140085a50
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x78]
mov edx, reloc.WLDAP32.dll_Ordinal_32
mov rcx, qword [rsp + 0xa0]
call fcn.1400c0d00
mov dword [rsp + 0x48], eax
mov rcx, qword [rsp + 0xa0]
call qword [fcn.14012be40]
mov qword [rsp + 0xa0], 0
xor eax, eax
test eax, eax
jne 0x140085663
cmp dword [rsp + 0x48], 0
je 0x140085693
mov eax, dword [rsp + 0x48]
jmp 0x140085a50
mov r8, qword [rsp + 0x78]
lea rdx, [0x1401e1d20]
mov rcx, qword [rsp + 0xf0]
call fcn.140094130
mov rcx, qword [rsp + 0xf8]
call fcn.14014af80
inc rax
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x68]
call qword [fcn.140135cc0]
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0
jne 0x140085703
mov rcx, qword [rsp + 0x78]
call qword [fcn.14012be40]
mov qword [rsp + 0x78], 0
xor eax, eax
test eax, eax
jne 0x1400856df
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x140085a50
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0x88]
call fcn.140114500
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x90], rax
lea rdx, [0x1401e1d40]
mov rcx, qword [rsp + 0x90]
call fcn.140113590
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0
je 0x140085769
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x98]
mov byte [rcx + rax], 0
mov rax, qword [rsp + 0x90]
add rax, 8
mov rcx, rax
call fcn.14014af80
cmp qword [rsp + 0x58], rax
jne 0x1400857b0
mov rax, qword [rsp + 0x90]
add rax, 8
mov r8, qword [rsp + 0x58]
mov rdx, rax
mov rcx, qword [rsp + 0x78]
call fcn.140114e20
test eax, eax
jne 0x1400857b0
mov dword [rsp + 0x44], 0
jmp 0x140085806
cmp qword [rsp + 0x98], 0
je 0x1400857ec
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x98]
mov byte [rcx + rax], Ordinal_60
lea rdx, [0x1401e1d50]
mov rcx, qword [rsp + 0x98]
call fcn.140113590
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x98], 0
je 0x140085806
cmp qword [rsp + 0x90], 0
jne 0x14008572d
mov rcx, qword [rsp + 0x78]
call qword [fcn.14012be40]
mov qword [rsp + 0x78], 0
xor eax, eax
test eax, eax
jne 0x140085806
mov rcx, qword [rsp + 0x88]
call qword [fcn.14012be40]
mov qword [rsp + 0x88], 0
xor eax, eax
test eax, eax
jne 0x140085820
mov eax, dword [rsp + 0x44]
jmp 0x140085a50
lea rdx, [0x1401e1cec]
mov rcx, qword [rsp + 0xf8]
call fcn.1400b61d0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140085873
mov eax, dword [rsp + 0x44]
jmp 0x140085a50
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x20]
call fcn.14011e330
test eax, eax
je 0x14008588e
jmp 0x140085a0e
mov rcx, qword [rsp + 0x20]
call fcn.14011c580
mov dword [rsp + 0xa8], eax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x20]
call fcn.14011e330
test eax, eax
je 0x1400858b7
jmp 0x140085a0e
cmp dword [rsp + 0xa8], 0
jl 0x1400858ce
cmp dword [rsp + 0xa8], 0x100000
jle 0x1400858d3
jmp 0x140085a0e
movsxd rax, dword [rsp + 0xa8]
mov rcx, rax
call fcn.140097e90
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
cmp qword [rsp + 0x108], rax
jbe 0x140085902
jmp 0x140085a0e
mov rax, qword [rsp + 0xb0]
inc rax
mov rcx, rax
call qword [fcn.140135cc0]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140085928
jmp 0x140085a0e
mov r9, qword [rsp + 0x20]
mov r8d, 1
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x28]
call fcn.14012c820
cmp eax, 1
je 0x14008594f
jmp 0x140085a0e
mov rax, qword [rsp + 0xb0]
cmp qword [rsp + 0x108], rax
jne 0x14008598c
mov r8, qword [rsp + 0x108]
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x100]
call fcn.140114e20
test eax, eax
jne 0x140085987
mov dword [rsp + 0x44], 0
jmp 0x140085a0e
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov byte [rax], 0
lea r8, [rsp + 0xc8]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
call fcn.1400872e0
mov dword [rsp + 0xd4], eax
cmp dword [rsp + 0xd4], 0
je 0x1400859cc
jmp 0x140085a0e
mov rax, qword [rsp + 0xc8]
cmp qword [rsp + 0x108], rax
jne 0x140085a04
mov r8, qword [rsp + 0x108]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x100]
call fcn.140114e20
test eax, eax
jne 0x140085a04
mov dword [rsp + 0x44], 0
xor eax, eax
test eax, eax
jne 0x140085873
mov rcx, qword [rsp + 0x28]
call qword [fcn.14012be40]
mov qword [rsp + 0x28], 0
xor eax, eax
test eax, eax
jne 0x140085a0e
mov rcx, qword [rsp + 0x38]
call qword [fcn.14012be40]
mov qword [rsp + 0x38], 0
xor eax, eax
test eax, eax
jne 0x140085a28
mov rcx, qword [rsp + 0x20]
call fcn.14011db30
mov eax, dword [rsp + 0x44]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_connect
call fcn.1401843c0
mov rax, rdi
add rsp, 0xe0
pop rdi
ret