Function at 0x180019e64
Capabilities:
Connect socket
Get file size
Initialize winsock library
Read and send data from client to server
Read file on windows
Resolve dns
Send data
Send data on socket
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x318]
sub rsp, 0x3f0
mov rax, qword [0x18004a010]
xor rax, rsp
mov qword [rbp + 0x2e0], rax
lea rcx, [0x180041768]
mov r13, rdx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor ebx, ebx
test rax, rax
je 0x180019ec9
lea rdx, str.CancelIo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x68], rax
jmp 0x180019ece
mov qword [rsp + 0x68], rbx
mov r14, qword [r13 + 0x10]
lea rcx, [0x180176580]
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x60], rax
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18001a395
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov dword [rsp + 0x40], eax
mov eax, 0x19000
cmp ecx, eax
cmovb eax, ecx
mov ecx, 0xc6d
cmp eax, ecx
cmovb eax, ecx
mov ecx, eax
mov dword [rsp + 0x5c], eax
mov r12d, eax
call fcn.180021c94
mov rsi, rax
test rax, rax
je 0x18001a385
mov ecx, 2
lea rdx, [rbp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov ebx, eax
xor eax, eax
test ebx, ebx
jne 0x18001a37b
mov qword [rsp + 0x38], rax
lea r8, [0x180176bc0]
mov qword [rsp + 0x30], rax
or r9d, 0xffffffff
lea rax, [rbp + 0x1d0]
mov dword [rsp + 0x28], 0x104
xor edx, edx
mov qword [rsp + 0x20], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor eax, eax
lea rcx, [rbp + 0x1d0]
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rax
mov al, byte [rbp + 0x1d0]
sub al, 0x30
cmp al, 9
ja 0x180019fc7
call qword [sym.imp.WS2_32.dll_inet_addr]
xor r15d, r15d
jmp 0x180019ff2
call qword [sym.imp.WS2_32.dll_gethostbyname]
xor r15d, r15d
test rax, rax
je 0x180019fef
mov rdx, qword [rax + 0x18]
lea rcx, [rbp - 0xc]
movsx r8, word [rax + 0x12]
mov rdx, qword [rdx]
call fcn.180025930
mov eax, dword [rbp - 0xc]
jmp 0x180019ff5
or eax, 0xffffffff
mov dword [rbp - 0xc], eax
cmp eax, 0xffffffff
je 0x18001a375
movzx ecx, word [0x1801769a8]
mov edi, 2
mov word [rbp - 0x10], di
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp - 0xe], ax
xor r9d, r9d
lea r8d, [rdi + 4]
mov ecx, edi
lea eax, [rdi - 1]
mov dword [rsp + 0x28], eax
mov edx, eax
mov dword [rsp + 0x20], r15d
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18001a370
mov edx, 0x100
lea rcx, [rbp - 0x60]
call fcn.180003088
lea rax, [rbp - 0x60]
mov dword [rsp + 0x44], r15d
mov r15, qword [r13 + 8]
mov r8d, setsockopt
mov qword [rsp + 0x70], rax
mov rdx, r15
lea rax, [rbp - 0x50]
mov rcx, rdi
mov qword [rsp + 0x78], rax
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x18001a08f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
jmp 0x18001a2d1
test r14, r14
je 0x18001a0a8
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8001
mov rcx, r14
call qword [sym.imp.USER32.dll_PostMessageW]
mov r8d, setsockopt
lea rdx, [rbp - 0x10]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x18001a0f2
mov rcx, r13
call fcn.180019e0c
mov ebx, eax
test eax, eax
jne 0x18001a2fc
lea r8, [rbp]
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
cmp eax, 0xffffffff
je 0x18001a082
mov ebx, dword [rbp + 0x14]
test ebx, ebx
jne 0x18001a2fc
mov dword [rsp + 0x44], 1
test r14, r14
je 0x18001a113
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8002
mov rcx, r14
call qword [sym.imp.USER32.dll_PostMessageW]
xor r8d, r8d
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x18001a082
mov qword [rsi], 0x31305442
lea r9, [rsp + 0x48]
xor eax, eax
mov byte [rsi + 8], 1
mov r8, rsi
mov dword [rsi + 9], eax
lea rdx, [0x180176fe0]
mov qword [rsp + 0x48], setsockopt
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x20], r12
call fcn.18001cee4
test al, al
jne 0x18001a170
mov ebx, 0x54f
jmp 0x18001a2ed
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], r12
mov r8, rsi
lea rdx, [0x180176dd0]
lea rcx, [rsp + 0x70]
call fcn.18001cee4
test al, al
je 0x18001a166
call fcn.180013f5c
mov rdx, rax
mov qword [rsp + 0x20], r12
lea rcx, [rsp + 0x70]
mov r8, rsi
lea r9, [rsp + 0x48]
call fcn.18001cee4
test al, al
je 0x18001a166
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], r12
mov r8, rsi
lea rdx, [0x180177610]
lea rcx, [rsp + 0x70]
call fcn.18001cee4
test al, al
je 0x18001a166
mov rcx, qword [rsp + 0x48]
xorps xmm0, xmm0
mov eax, dword [rsp + 0x40]
mov r12, qword [rsp + 0x60]
add eax, ecx
and qword [rbp - 0x80], 0
mov qword [rbp - 0x68], r15
mov r15d, dword [rsp + 0x5c]
mov dword [rsi + 4], eax
movdqu xmmword [rbp - 0x78], xmm0
mov dword [rsp + 0x58], ecx
mov qword [rsp + 0x50], rsi
mov dword [rsp + 0x48], ecx
test ecx, ecx
je 0x18001a28d
xor ecx, ecx
lea rax, [rbp - 0x80]
mov qword [rsp + 0x30], rcx
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x48]
mov dword [rsp + 0x40], ecx
lea r8d, [rcx + 1]
mov dword [rsp + 0x20], ecx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x18001a27e
mov rcx, r13
call fcn.180019e0c
mov ebx, eax
test eax, eax
jne 0x18001a2ed
lea rax, [rsp + 0x5c]
xor r9d, r9d
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x80]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
je 0x18001a082
mov ecx, dword [rsp + 0x40]
add qword [rsp + 0x50], rcx
sub dword [rsp + 0x48], ecx
jne 0x18001a211
xor ecx, ecx
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], rcx
mov r8d, r15d
mov rcx, r12
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18001a2b8
mov ecx, dword [rsp + 0x58]
test ecx, ecx
jne 0x18001a204
test r14, r14
je 0x18001a2d1
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8003
mov rcx, r14
call qword [sym.imp.USER32.dll_PostMessageW]
xor r14d, r14d
test ebx, ebx
jne 0x18001a2e6
lea edx, [rbx + 2]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_shutdown]
jmp 0x18001a325
cmp dword [rsp + 0x44], r14d
je 0x18001a2fc
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x18001a2fc
mov rcx, rdi
call rax
lea r9, [rsp + 0x44]
mov dword [rsp + 0x44], 1
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x80
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
lea rax, [0x1800413a8]
mov qword [rbp - 0x60], rax
lea rax, [0x180041380]
mov qword [rbp - 0x50], rax
mov rax, qword [rbp - 0x58]
movsxd rcx, dword [rax + 4]
lea rax, [0x180041338]
mov qword [rbp + rcx - 0x58], rax
mov rax, qword [rbp - 0x58]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x40]
mov dword [rbp + rcx - 0x5c], edx
mov rcx, qword [rbp - 0x28]
call fcn.180021cd4
mov rdi, qword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rcx, rsi
call fcn.180021cd4
jmp 0x18001a38a
mov ebx, 8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18001a39d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
je 0x18001a3ab
mov edx, ebx
mov rcx, r13
call fcn.180019d84
mov eax, ebx
mov rcx, qword [rbp + 0x2e0]
xor rcx, rsp
call fcn.180021cb0
lea r11, [rsp + 0x3f0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret