Function at 0x1801862b0
Capabilities:
Initialize winsock library
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0xb40
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1803fc9f0]
xor rax, rsp
mov qword [rsp + 0xb30], rax
mov rbx, rdx
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rdx
xor edi, edi
mov qword [rsp + 0x40], rdi
lea rdx, [0x18003e928]
mov rcx, rbx
call fcn.1802b1c80
test rax, rax
jne 0x180186318
mov rax, rbx
jmp 0x180186658
lea rcx, [0x180412938]
call fcn.1802a12a0
nop
lea rcx, [0x180412938]
call fcn.1802a16e0
mov rsi, rax
test rsi, rsi
je 0x180186379
mov rcx, rsi
call fcn.1800f1480
mov rbx, rax
test rax, rax
je 0x180186365
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rax]
call fcn.1802d57c0
test eax, eax
jne 0x180186365
mov rdi, qword [rbx + 8]
mov qword [rsp + 0x40], rdi
jmp 0x180186379
mov rdx, rsi
lea rcx, [0x180412938]
call fcn.1802a1790
mov rsi, rax
jmp 0x180186334
mov rsi, qword [rsp + 0x58]
jmp 0x180186394
lea rcx, [0x180412938]
call fcn.1802a1870
nop
jmp 0x1801863b7
test rdi, rdi
jne 0x180186655
mov ecx, 0x101
lea rdx, [rsp + 0x70]
call qword [sym.imp.WSOCK32.dll_WSAStartup]
movups xmm0, xmmword [0x18003e970]
movups xmmword [rsp + 0x210], xmm0
movzx eax, word [0x18003e980]
mov word [rsp + 0x220], ax
movzx eax, byte [0x18003e982]
mov byte [rsp + 0x222], al
lea rcx, [rsp + 0x210]
call qword [sym.imp.WSOCK32.dll_gethostbyname]
or rbx, 0xffffffffffffffff
test rax, rax
jne 0x180186446
lea rax, [rsp + 0x210]
mov rdx, rbx
nop
inc rdx
cmp byte [rax + rdx], 0
jne 0x180186420
mov r8d, 2
lea rcx, [rsp + 0x210]
call qword [sym.imp.WSOCK32.dll_gethostbyaddr]
test rax, rax
je 0x180186648
mov dword [rsp + 0x58], 0x50000002
movsx r8, word [rax + 0x12]
mov rdx, qword [rax + 0x18]
mov rdx, qword [rdx]
lea rcx, [rsp + 0x5c]
call fcn.1802c7100
xor r8d, r8d
lea edx, [r8 + 1]
lea ecx, [rdx + 1]
call qword [sym.imp.WSOCK32.dll_socket]
mov qword [rsp + 0x38], rax
cmp rax, 0xffffffffffffffff
je 0x180186648
mov r8d, reloc.WSOCK32.dll_recv
lea rdx, [rsp + 0x58]
mov rcx, rax
call qword [sym.imp.WSOCK32.dll_connect]
test eax, eax
jne 0x180186648
mov r8d, 0x100
lea rcx, [rsp + 0x230]
cmp byte [rsi], 0x2d
lea rdx, [rsi + 1]
je 0x1801864b9
mov rdx, rsi
call fcn.1802d7610
mov byte [rsp + 0x32f], 0
mov edx, 0x40
lea rcx, [rsp + 0x230]
call fcn.1802c6f1c
test rax, rax
je 0x1801864e0
mov byte [rax], 0
mov rax, qword [0x1803fc9b8]
mov qword [rsp + 0x30], rax
lea rdx, [0x18003e984]
lea rcx, [rsp + 0x30]
call fcn.1802b2220
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x30]
call fcn.1802b2370
lea rdx, [0x18003e990]
lea rcx, [rsp + 0x30]
call fcn.1802b2370
lea rdx, [0x18003e9a0]
lea rcx, [rsp + 0x30]
call fcn.1802b2370
lea rdx, [0x18003e9c0]
lea rcx, [rsp + 0x30]
call fcn.1802b2370
mov rdx, qword [rsp + 0x30]
inc rbx
cmp byte [rdx + rbx], 0
jne 0x180186547
mov r8, rbx
xor r9d, r9d
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.WSOCK32.dll_send]
test eax, eax
jle 0x180186632
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x330]
call fcn.1802c7550
xor r9d, r9d
mov r8d, 0x800
lea rdx, [rsp + 0x330]
mov rcx, rbx
call qword [sym.imp.WSOCK32.dll_recv]
test eax, eax
jle 0x180186632
cdqe
cmp rax, 0x800
jae 0x18018662c
mov byte [rsp + rax + 0x330], 0
lea rdx, [0x18003e9d8]
lea rcx, [rsp + 0x330]
call fcn.1802b1c80
mov rbx, rax
test rax, rax
je 0x180186632
add rbx, 7
movzx eax, byte [rbx]
test al, al
je 0x1801865ee
nop dword [rax]
cmp al, 0x22
je 0x1801865f3
inc rbx
movzx eax, byte [rbx]
test al, al
jne 0x1801865e0
cmp byte [rbx], 0x22
jne 0x180186632
mov edx, 0x22
lea rcx, [rbx + 1]
call fcn.1802c6f1c
test rax, rax
je 0x180186632
mov byte [rax], 0
lea r8, [rbx + 1]
mov rdx, rsi
mov rcx, qword [rsp + 0x48]
call fcn.180185580
mov rdx, rsi
mov rcx, qword [rsp + 0x48]
call fcn.1801862b0
mov rdi, rax
jmp 0x180186632
call fcn.1802b8b94
int3
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WSOCK32.dll_closesocket]
nop
lea rcx, [rsp + 0x30]
call fcn.1802b20f0
call qword [sym.imp.WSOCK32.dll_WSACleanup]
test rdi, rdi
cmove rdi, rsi
mov rax, rdi
mov rcx, qword [rsp + 0xb30]
xor rcx, rsp
call fcn.1802b85a0
lea r11, [rsp + 0xb40]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret