Function at 0x1800022e0
Capabilities:
Get file size
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 - 0x3d0]
sub rsp, 0x4d0
mov rax, qword [0x18004f040]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
mov rax, qword [rcx + 8]
lea r8, [rcx + 0x10]
mov r15, rcx
mov qword [rsp + 0x40], rax
mov r9, rdx
xor edi, edi
mov qword [rcx + 8], rdi
lea rdx, [0x1800459b4]
lea rcx, [rbp + 0x2b0]
call fcn.1800029c0
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp rax, 0xffffffffffffffff
jne 0x1800023af
mov rsi, qword [r15]
lea r8, [rsp + 0x50]
mov rcx, rsi
mov dword [rsp + 0x48], 2
mov edx, 0x8004667e
mov dword [rsp + 0x50], edi
lea ebx, [rdi + 4]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
nop dword [rax]
movsxd rax, edi
lea rdx, [rsp + 0x48]
add rdx, rax
xor r9d, r9d
mov r8d, ebx
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x180002666
add edi, eax
sub ebx, eax
test ebx, ebx
jg 0x180002380
jmp 0x180002666
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [rsp + 0x60]
mov r13, 0xffffffffffffffff
mov ecx, dword [rsp + 0x7c]
mov rdx, r13
mov dword [rbp + 0x180], eax
mov rax, qword [rsp + 0x64]
mov qword [rbp + 0x184], rax
mov rax, qword [rsp + 0x6c]
mov qword [rbp + 0x18c], rax
mov rax, qword [rsp + 0x74]
mov qword [rbp + 0x194], rax
mov eax, dword [rbp - 0x80]
shl rcx, 0x20
add rcx, rax
lea rax, [rbp - 0x74]
mov qword [rbp + 0x1a0], rcx
nop dword [rax]
inc rdx
cmp byte [rax + rdx], dil
jne 0x180002410
inc rdx
lea r8, [rbp - 0x74]
lea rcx, [rbp + 0x1a8]
call fcn.18001ac84
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
lea rcx, [rbp + 0x2b0]
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, r13
jne 0x1800024bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rsi, qword [r15]
lea r8, [rsp + 0x48]
mov rcx, rsi
mov dword [rsp + 0x50], eax
mov edx, 0x8004667e
mov dword [rsp + 0x48], edi
mov ebx, 4
call qword [sym.imp.WS2_32.dll_ioctlsocket]
nop dword [rax + rax]
movsxd rax, edi
lea rdx, [rsp + 0x50]
add rdx, rax
xor r9d, r9d
mov r8d, ebx
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x180002666
add edi, eax
sub ebx, eax
test ebx, ebx
jg 0x180002490
jmp 0x180002666
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r12, qword [r15]
lea r8, [rsp + 0x48]
mov ebx, 4
mov dword [rsp + 0x50], edi
mov rcx, r12
mov dword [rsp + 0x48], edi
mov edx, 0x8004667e
mov esi, ebx
mov r14d, edi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
movsxd rax, r14d
lea rdx, [rsp + 0x50]
add rdx, rax
xor r9d, r9d
mov r8d, esi
mov rcx, r12
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x180002517
add r14d, eax
sub esi, eax
test esi, esi
jg 0x1800024f0
test byte [rbp + 0x180], 0x10
je 0x18000252a
mov eax, 1
jmp 0x180002668
mov r14, qword [r15]
lea rcx, [rsp + 0x60]
xor edx, edx
mov r8d, 0x218
call fcn.1800388f0
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
lea rcx, [rbp + 0x2b0]
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, r13
jne 0x180002585
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x180002666
xor r9d, r9d
mov dword [rsp + 0x48], edi
lea r8, [rsp + 0x48]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1800025fe
lea rdx, [rbp + 0x2b0]
lea rcx, [rsp + 0x60]
call fcn.1800016b0
mov r12, qword [rsp + 0x40]
xor r9d, r9d
mov rdx, r12
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1800025fe
mov r8, qword [rsp + 0x50]
mov rdx, rsi
sub r8, r12
mov rcx, r14
mov qword [rsp + 0x50], r8
call fcn.180003ff0
cmp rax, qword [rsp + 0x50]
cmovne rax, r13
mov r13, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_closesocket]
cmp r13d, 0xffffffff
je 0x180002666
mov rsi, qword [r15]
lea r8, [rsp + 0x48]
mov rcx, rsi
mov dword [rsp + 0x50], edi
mov edx, 0x8004667e
mov dword [rsp + 0x48], edi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
nop word [rax + rax]
movsxd rax, edi
lea rdx, [rsp + 0x50]
add rdx, rax
xor r9d, r9d
mov r8d, ebx
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x180002666
add edi, eax
sub ebx, eax
test ebx, ebx
jg 0x180002640
xor eax, eax
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.180011100
mov rbx, qword [rsp + 0x520]
add rsp, 0x4d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret