Function at 0x14002ffc4
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 [0x1400e5430]
xor rax, rsp
mov qword [rbp + 0x2f0], rax
mov rdi, rcx
lea rcx, [0x1400b5648]
mov r15, rdx
mov qword [rsp + 0x60], rdx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor ebx, ebx
test rax, rax
je 0x14003002a
lea rdx, str.CancelIo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x78], rax
jmp 0x14003002f
mov qword [rsp + 0x78], rbx
mov r14, qword [r15 + 0x10]
xor r9d, r9d
mov qword [rsp + 0x30], rbx
lea rcx, [0x1400ea720]
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 0x140030552
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.140055b1c
mov rsi, rax
test rax, rax
je 0x14003053d
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 0x14003052e
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 fcn.1400809a0
mov al, byte [rbp + 0x1e0]
lea rcx, [rbp + 0x1e0]
sub al, 0x30
cmp al, 9
ja 0x140030125
call qword [sym.imp.WS2_32.dll_inet_addr]
xor edi, edi
jmp 0x14003014f
call qword [sym.imp.WS2_32.dll_gethostbyname]
xor edi, edi
test rax, rax
je 0x14003014c
mov rdx, qword [rax + 0x18]
movsx r8, word [rax + 0x12]
lea rcx, [rbp + 4]
mov rdx, qword [rdx]
call fcn.14007e7a0
mov eax, dword [rbp + 4]
jmp 0x140030152
or eax, 0xffffffff
mov dword [rbp + 4], eax
cmp eax, 0xffffffff
je 0x140030521
movzx ecx, word [0x1400e9278]
mov eax, 2
mov word [rbp], ax
call qword [sym.imp.WS2_32.dll_htons]
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 0x140030521
lea rcx, [rbp - 0x70]
mov edx, 0x100
mov r8d, 1
call fcn.14002cd54
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 0x1400301fa
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r12, qword [rsp + 0x40]
xor r15d, r15d
mov ebx, eax
jmp 0x14003046d
test r14, r14
je 0x140030213
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 0x14003025f
mov rcx, qword [rsp + 0x60]
call fcn.14002ff68
mov ebx, eax
test eax, eax
jne 0x1400304a1
lea r8, [rbp + 0x10]
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
cmp eax, 0xffffffff
je 0x1400301e5
mov ebx, dword [rbp + 0x24]
test ebx, ebx
jne 0x1400304a1
mov dword [rsp + 0x50], 1
test r14, r14
je 0x140030280
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 0x1400301e5
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, [0x1400e9280]
mov qword [rsp + 0x48], rax
mov dword [rax + rsi], ecx
add qword [rsp + 0x48], 4
lea rcx, [rbp - 0x80]
call fcn.14003d880
test al, al
jne 0x140030310
mov r12, qword [rsp + 0x40]
mov ebx, 0x54f
jmp 0x140030490
lea r9, [rsp + 0x48]
lea rdx, [0x1400e9490]
lea rcx, [rbp - 0x80]
mov r8, rsi
mov qword [rsp + 0x20], r12
call fcn.14003d880
test al, al
je 0x140030301
call fcn.14003c028
lea r9, [rsp + 0x48]
lea rcx, [rbp - 0x80]
mov r8, rsi
mov rdx, rax
mov qword [rsp + 0x20], r12
call fcn.14003d880
test al, al
je 0x140030301
lea r9, [rsp + 0x48]
lea rdx, [0x1400e9cd0]
lea rcx, [rbp - 0x80]
mov r8, rsi
mov qword [rsp + 0x20], r12
call fcn.14003d880
test al, al
je 0x140030301
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 fcn.1400809a0
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 0x14003042b
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 0x14003041c
mov rcx, qword [rsp + 0x60]
call fcn.14002ff68
mov ebx, eax
test eax, eax
jne 0x140030490
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 0x14003047f
mov ecx, dword [rsp + 0x54]
add qword [rsp + 0x70], rcx
sub dword [rsp + 0x68], ecx
jne 0x1400303af
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 0x140030454
mov eax, dword [rsp + 0x58]
test eax, eax
jne 0x1400303a2
test r14, r14
je 0x14003046d
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8003
mov rcx, r14
call qword [sym.imp.USER32.dll_PostMessageW]
test ebx, ebx
jne 0x140030489
lea edx, [rbx + 2]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_shutdown]
jmp 0x1400304cf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
jmp 0x14003046d
cmp dword [rsp + 0x50], r15d
je 0x1400304a6
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x1400304a6
mov rcx, rdi
call rax
jmp 0x1400304a6
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, [0x1400b4f60]
mov qword [rbp - 0x70], rax
lea rax, [0x1400b4f78]
mov qword [rbp - 0x60], rax
mov rax, qword [rbp - 0x68]
movsxd rcx, dword [rax + 4]
lea rax, [0x1400b4fa0]
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 fcn.14007efdc
mov r15, qword [rsp + 0x60]
jmp 0x140030526
mov r12, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x140030533
mov r12, qword [rsp + 0x40]
mov rcx, rsi
call fcn.14007efdc
jmp 0x140030547
mov r12, qword [rsp + 0x40]
mov ebx, 8
mov rcx, r12
call qword [0x1400b4580]
jmp 0x14003055a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
je 0x140030568
mov edx, ebx
mov rcx, r15
call fcn.14002f1a0
mov eax, ebx
mov rcx, qword [rbp + 0x2f0]
xor rcx, rsp
call fcn.14007e1c0
mov rbx, qword [rsp + 0x450]
add rsp, 0x400
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret