Function at 0x1400e57e0
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 qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x300]
sub rsp, 0x400
mov rax, qword [0x14017da30]
xor rax, rsp
mov qword [rbp + 0x2f0], rax
mov rdi, rcx
lea rcx, [0x1401378e8]
mov r15, rdx
mov qword [rsp + 0x60], rdx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor ebx, ebx
test rax, rax
je 0x1400e5846
lea rdx, str.CancelIo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x78], rax
jmp 0x1400e584b
mov qword [rsp + 0x78], rbx
mov r14, qword [r15 + 0x10]
xor r9d, r9d
mov qword [rsp + 0x30], rbx
lea rcx, [0x140194440]
lea r8d, [r9 + 1]
mov edx, 0x80000000
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x40], rax
cmp rax, 0xffffffffffffffff
je 0x1400e5d6e
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r13d, 0x19000
cmp eax, r13d
mov dword [rsp + 0x54], eax
cmovb r13d, eax
mov eax, 0xc6d
cmp r13d, eax
cmovb r13d, eax
mov ecx, r13d
mov r12d, r13d
call fcn.140109e80
mov rsi, rax
test rax, rax
je 0x1400e5d59
lea rdx, [rbp + 0x40]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov ebx, eax
xor eax, eax
test ebx, ebx
jne 0x1400e5d4a
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x1e0]
or r9d, 0xffffffff
mov r8, rdi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea r8d, [rbx + 0x10]
lea rcx, [rbp]
xor edx, edx
call sub.MSVCR120.dll_memset
mov al, byte [rbp + 0x1e0]
lea rcx, [rbp + 0x1e0]
sub al, 0x30
cmp al, 9
ja 0x1400e5941
call qword [sym.imp.WS2_32.dll_inet_addr]
xor edi, edi
jmp 0x1400e596b
call qword [sym.imp.WS2_32.dll_gethostbyname]
xor edi, edi
test rax, rax
je 0x1400e5968
mov rdx, qword [rax + 0x18]
movsx r8, word [rax + 0x12]
lea rcx, [rbp + 4]
mov rdx, qword [rdx]
call sub.MSVCR120.dll_memcpy
mov eax, dword [rbp + 4]
jmp 0x1400e596e
or eax, 0xffffffff
mov dword [rbp + 4], eax
cmp eax, 0xffffffff
je 0x1400e5d3d
movzx ecx, word [0x140192f98]
mov eax, 2
mov word [rbp], ax
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
xor r9d, r9d
mov word [rbp + 2], ax
mov eax, 1
mov dword [rsp + 0x28], eax
lea r8d, [rax + 5]
lea ecx, [rax + 1]
mov edx, eax
mov dword [rsp + 0x20], edi
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400e5d3d
lea rcx, [rbp - 0x70]
mov edx, 0x100
mov r8d, 1
call fcn.1400e2544
mov r15, qword [r15 + 8]
and dword [rsp + 0x50], 0
lea rax, [rbp - 0x70]
mov r8d, setsockopt
mov rdx, r15
mov qword [rbp - 0x80], rax
lea rax, [rbp - 0x60]
mov rcx, rdi
mov qword [rbp - 0x78], rax
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x1400e5a16
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r12, qword [rsp + 0x40]
xor r15d, r15d
mov ebx, eax
jmp 0x1400e5c89
test r14, r14
je 0x1400e5a2f
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8001
mov rcx, r14
call qword [sym.imp.USER32.dll_PostMessageW]
lea rdx, [rbp]
mov r8d, setsockopt
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1400e5a7b
mov rcx, qword [rsp + 0x60]
call fcn.1400e5784
mov ebx, eax
test eax, eax
jne 0x1400e5cbd
lea r8, [rbp + 0x10]
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
cmp eax, 0xffffffff
je 0x1400e5a01
mov ebx, dword [rbp + 0x24]
test ebx, ebx
jne 0x1400e5cbd
mov dword [rsp + 0x50], 1
test r14, r14
je 0x1400e5a9c
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 0x1400e5a01
xor ecx, ecx
lea r9, [rsp + 0x48]
mov r8, rsi
mov qword [rsp + 0x48], rcx
mov dword [rsi], 0x31305442
mov rax, qword [rsp + 0x48]
add rax, 4
lea edx, [rcx + 1]
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x48], rax
mov dword [rax + rsi], ecx
mov rax, qword [rsp + 0x48]
add rax, 4
mov qword [rsp + 0x48], rax
mov byte [rax + rsi], dl
mov rax, qword [rsp + 0x48]
add rax, rdx
lea rdx, [0x140192fa0]
mov qword [rsp + 0x48], rax
mov dword [rax + rsi], ecx
add qword [rsp + 0x48], 4
lea rcx, [rbp - 0x80]
call fcn.1400f30f0
test al, al
jne 0x1400e5b2c
mov r12, qword [rsp + 0x40]
mov ebx, 0x54f
jmp 0x1400e5cac
lea r9, [rsp + 0x48]
lea rdx, [0x1401931b0]
lea rcx, [rbp - 0x80]
mov r8, rsi
mov qword [rsp + 0x20], r12
call fcn.1400f30f0
test al, al
je 0x1400e5b1d
call fcn.1400f18a8
lea r9, [rsp + 0x48]
lea rcx, [rbp - 0x80]
mov r8, rsi
mov rdx, rax
mov qword [rsp + 0x20], r12
call fcn.1400f30f0
test al, al
je 0x1400e5b1d
lea r9, [rsp + 0x48]
lea rdx, [0x1401939f0]
lea rcx, [rbp - 0x80]
mov r8, rsi
mov qword [rsp + 0x20], r12
call fcn.1400f30f0
test al, al
je 0x1400e5b1d
mov ecx, dword [rsp + 0x54]
xor edx, edx
add ecx, dword [rsp + 0x48]
lea r8d, [rdx + 0x20]
mov dword [rsi + 4], ecx
lea rcx, [rbp - 0x20]
call sub.MSVCR120.dll_memset
mov eax, dword [rsp + 0x48]
mov r12, qword [rsp + 0x40]
mov qword [rbp - 8], r15
mov dword [rsp + 0x58], eax
xor r15d, r15d
mov qword [rsp + 0x70], rsi
mov dword [rsp + 0x68], eax
test eax, eax
je 0x1400e5c47
lea rax, [rbp - 0x20]
mov qword [rsp + 0x30], r15
lea r9, [rsp + 0x54]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x68]
mov r8d, 1
mov rcx, rdi
mov dword [rsp + 0x20], r15d
mov dword [rsp + 0x54], r15d
call qword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x1400e5c38
mov rcx, qword [rsp + 0x60]
call fcn.1400e5784
mov ebx, eax
test eax, eax
jne 0x1400e5cac
lea rax, [rsp + 0x40]
lea r8, [rsp + 0x54]
lea rdx, [rbp - 0x20]
xor r9d, r9d
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
je 0x1400e5c9b
mov ecx, dword [rsp + 0x54]
add qword [rsp + 0x70], rcx
sub dword [rsp + 0x68], ecx
jne 0x1400e5bcb
lea r9, [rsp + 0x58]
mov r8d, r13d
mov rdx, rsi
mov rcx, r12
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400e5c70
mov eax, dword [rsp + 0x58]
test eax, eax
jne 0x1400e5bbe
test r14, r14
je 0x1400e5c89
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8003
mov rcx, r14
call qword [sym.imp.USER32.dll_PostMessageW]
test ebx, ebx
jne 0x1400e5ca5
lea edx, [rbx + 2]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_shutdown]
jmp 0x1400e5ceb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
jmp 0x1400e5c89
cmp dword [rsp + 0x50], r15d
je 0x1400e5cc2
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x1400e5cc2
mov rcx, rdi
call rax
jmp 0x1400e5cc2
mov r12, qword [rsp + 0x40]
lea r9, [rsp + 0x50]
mov edx, 0xffff
mov r8d, pe_nt_image_headers64
mov rcx, rdi
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
lea rax, [0x1401371f8]
mov qword [rbp - 0x70], rax
lea rax, [0x140137210]
mov qword [rbp - 0x60], rax
mov rax, qword [rbp - 0x68]
movsxd rcx, dword [rax + 4]
lea rax, [0x140137238]
mov qword [rbp + rcx - 0x68], rax
mov rax, qword [rbp - 0x68]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x40]
mov dword [rbp + rcx - 0x6c], edx
mov rcx, qword [rbp - 0x38]
call sub.MSVCR120.dll_void___cdecl_operator_delete___void____ptr64_
mov r15, qword [rsp + 0x60]
jmp 0x1400e5d42
mov r12, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x1400e5d4f
mov r12, qword [rsp + 0x40]
mov rcx, rsi
call sub.MSVCR120.dll_void___cdecl_operator_delete___void____ptr64_
jmp 0x1400e5d63
mov r12, qword [rsp + 0x40]
mov ebx, 8
mov rcx, r12
call qword [0x14011e328]
jmp 0x1400e5d76
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
je 0x1400e5d84
mov edx, ebx
mov rcx, r15
call fcn.1400e49b0
mov eax, ebx
mov rcx, qword [rbp + 0x2f0]
xor rcx, rsp
call fcn.14010a480
mov rbx, qword [rsp + 0x450]
add rsp, 0x400
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret