Function at 0x5bae10
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library
Receive data
Receive data on socket
Reference http user-agent string
Send data
Send data on socket
Send http request
Send http request with host header
Set socket configuration

Disassembly:
push rbp
sub rsp, 0x2a0
mov rbp, rsp
mov qword [rbp + 0xc8], 0
mov qword [rbp + 0xc0], 0
mov qword [rbp + 0xb8], 0
mov qword [rbp + 0xb0], 0
mov qword [rbp + 0xa8], 0
mov qword [rbp + 0xa0], 0
mov qword [rbp + 0x288], 0
mov qword [rbp + 0x78], rbp
mov qword [rbp + 0x2b0], rcx
mov dword [rbp + 0x2b8], edx
mov qword [rbp + 0x2c0], r8
mov qword [rbp + 0x2c8], r9
mov rcx, qword [rbp + 0x2b0]
call fcn.0040ea30
mov rcx, qword [rbp + 0x2c0]
call fcn.0040ea10
mov rcx, qword [rbp + 0x2c8]
call fcn.0040ea10
nop
mov byte [rbp + 0x287], 0
nop
lea rcx, [rbp + 0xa8]
lea rdx, [0x005bb2c8]
call fcn.0040ef30
mov cx, 0x101
lea rdx, [rbp + 0xd0]
call sub.ws2_32.dll_WSAStartup
mov ecx, 2
mov edx, 1
mov r8d, 6
call sub.ws2_32.dll_socket
mov dword [rbp + 0x27c], eax
movsxd rax, dword [rbp + 0x27c]
test rax, rax
jl 0x5baf07
cmp rax, 0xffffffffffffffff
je 0x5baf0b
mov al, 1
jmp 0x5baf0d
xor eax, eax
test al, al
je 0x5bb1ac
mov rax, qword [rbp + 0x2c0]
mov qword [rbp + 0x38], rax
mov byte [rbp + 0x40], 0x11
mov rax, qword [rbp + 0x2c8]
mov qword [rbp + 0x48], rax
mov byte [rbp + 0x50], 0x11
mov rax, qword [rbp + 0x2c0]
mov qword [rbp + 0x58], rax
mov byte [rbp + 0x60], 0x11
mov rax, qword [rbp + 0x2c8]
mov qword [rbp + 0x68], rax
mov byte [rbp + 0x70], 0x11
lea rcx, [rbp + 0xb8]
mov rdx, qword [rbp + 0xa8]
lea r8, [rbp + 0x38]
mov r9d, 3
call fcn.004302e0
lea rcx, [rbp + 0xa0]
lea rdx, [0x005bb464]
call fcn.0040ef30
mov dword [rbp + 0x9c], 0
cmp qword [rbp + 0xa0], 0
je 0x5bafa6
mov rax, qword [rbp + 0xa0]
mov eax, dword [rax - 4]
mov dword [rbp + 0x9c], eax
mov eax, dword [rbp + 0x9c]
mov dword [rbp + 0x280], eax
mov dword [rbp + 0x274], 0x1770
movsxd rcx, dword [rbp + 0x27c]
mov edx, 0xffff
mov r8d, 0x1006
lea r9, [rbp + 0x274]
mov dword [rsp + 0x20], 4
call sub.ws2_32.dll_setsockopt
mov dword [rbp + 0x270], eax
mov word [rbp + 0x290], 2
movzx rcx, word [rbp + 0x2b8]
call sub.ws2_32.dll_htons
mov word [rbp + 0x292], ax
mov rcx, qword [rbp + 0x2b0]
call fcn.0040fa00
mov rcx, rax
call sub.ws2_32.dll_inet_addr
mov dword [rbp + 0x294], eax
movsxd rcx, dword [rbp + 0x27c]
lea rdx, [rbp + 0x290]
mov r8d, 0x10
call sub.ws2_32.dll_connect
test eax, eax
jne 0x5bb196
call fcn.00440040
mov rcx, rax
lea rdx, [rbp + 0xc0]
mov r8, qword [rbp + 0xb8]
call fcn.00440f40
mov rax, qword [rbp + 0xc0]
mov qword [rbp + 0x90], rax
cmp qword [rbp + 0x90], 0
je 0x5bb088
mov rax, qword [rbp + 0x90]
mov rax, qword [rax - 8]
mov qword [rbp + 0x90], rax
movsxd rcx, dword [rbp + 0x27c]
mov rdx, qword [rbp + 0xc0]
mov r8d, dword [rbp + 0x90]
xor r9, r9
call sub.ws2_32.dll_send
mov dword [rbp + 0x278], eax
lea rcx, [rbp + 0xc8]
mov rdx, qword [0x00406300]
mov r8d, 1
movsxd r9, dword [rbp + 0x280]
call fcn.00412240
movsxd rcx, dword [rbp + 0x27c]
mov rdx, qword [rbp + 0xc8]
mov r8d, dword [rbp + 0x280]
xor r9, r9
call sub.ws2_32.dll_recv
mov dword [rbp + 0x26c], eax
cmp dword [rbp + 0x26c], 0
jle 0x5bb196
nop
call fcn.00440040
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0xc8]
mov qword [rbp + 0x80], rax
cmp qword [rbp + 0x80], 0
je 0x5bb133
mov rax, qword [rbp + 0x80]
mov rax, qword [rax - 8]
mov qword [rbp + 0x80], rax
mov rcx, qword [rbp + 0x88]
lea rdx, [rbp + 0x288]
mov r8, qword [rbp + 0xc8]
xor r9, r9
mov eax, dword [rbp + 0x80]
mov dword [rsp + 0x20], eax
call fcn.00441e00
lea rcx, [rbp + 0xb0]
mov rdx, qword [rbp + 0x288]
call fcn.0040ef30
nop
lea rcx, [rbp + 0x288]
call fcn.0040e880
lea rcx, [rbp + 0xb0]
lea rdx, [0x005bb464]
xor r8, r8
call fcn.0043f270
mov byte [rbp + 0x287], al
movsxd rcx, dword [rbp + 0x27c]
call sub.ws2_32.dll_closesocket
jmp 0x5bb1ac
nop
lea rcx, [rbp + 0xa0]
mov edx, 4
call fcn.0040e960
lea rcx, [rbp + 0xc0]
mov rdx, qword [0x00406300]
mov r8d, 2
call fcn.00410d70
lea rcx, [rbp + 0x288]
call fcn.0040e880
lea rcx, [rbp + 0x2b0]
call fcn.0040e8d0
lea rcx, [rbp + 0x2c0]
mov edx, 2
call fcn.0040e960
movzx rax, byte [rbp + 0x287]
lea rsp, [rbp + 0x2a0]
pop rbp
ret