Function at 0x18018a5c0
Capabilities:
Connect socket
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 r12
push r14
push r15
sub rsp, 0xa30
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1803fc9f0]
xor rax, rsp
mov qword [rsp + 0xa20], rax
mov r14, rdx
mov r15, rcx
test rdx, rdx
je 0x18018a611
cmp byte [rdx], 0
je 0x18018a611
mov rsi, rdx
mov qword [rsp + 0x28], rdx
jmp 0x18018a619
mov rsi, r15
mov qword [rsp + 0x28], r15
lea rcx, [0x180412988]
call fcn.1802a12a0
nop
lea rcx, [0x180412988]
call fcn.1802a16e0
mov rbx, rax
test rbx, rbx
je 0x18018a676
mov rcx, rbx
call fcn.1800f1480
mov rdi, rax
test rax, rax
je 0x18018a662
mov rdx, r15
mov rcx, qword [rax]
call fcn.1802d57c0
test eax, eax
jne 0x18018a662
mov rsi, qword [rdi + 8]
jmp 0x18018a930
mov rdx, rbx
lea rcx, [0x180412988]
call fcn.1802a1790
mov rbx, rax
jmp 0x18018a635
test r14, r14
je 0x18018a685
cmp byte [r14], 0
jne 0x18018a923
mov ecx, 0x101
lea rdx, [rsp + 0x60]
call qword [sym.imp.WSOCK32.dll_WSAStartup]
movups xmm0, xmmword [0x180040a88]
movups xmmword [rsp + 0x200], xmm0
movzx eax, word [0x180040a98]
mov word [rsp + 0x210], ax
movzx eax, byte [0x180040a9a]
mov byte [rsp + 0x212], al
lea rcx, [rsp + 0x200]
call qword [sym.imp.WSOCK32.dll_gethostbyname]
or rbx, 0xffffffffffffffff
test rax, rax
jne 0x18018a70d
lea rax, [rsp + 0x200]
mov rdx, rbx
inc rdx
cmp byte [rax + rdx], 0
jne 0x18018a6e3
mov edi, 2
mov r8d, edi
lea rcx, [rsp + 0x200]
call qword [sym.imp.WSOCK32.dll_gethostbyaddr]
test rax, rax
je 0x18018a91d
jmp 0x18018a712
mov edi, 2
mov word [rsp + 0x48], di
mov ecx, 0x5000
mov word [rsp + 0x4a], cx
movsx r8, word [rax + 0x12]
mov rdx, qword [rax + 0x18]
mov rdx, qword [rdx]
lea rcx, [rsp + 0x4c]
call fcn.1802c7100
xor r8d, r8d
lea edx, [r8 + 1]
mov ecx, edi
call qword [sym.imp.WSOCK32.dll_socket]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x18018a91d
mov r8d, reloc.WSOCK32.dll_recv
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.WSOCK32.dll_connect]
test eax, eax
jne 0x18018a91d
mov rax, qword [0x1803fc9b8]
mov qword [rsp + 0x20], rax
lea rdx, [0x180040a9c]
lea rcx, [rsp + 0x20]
call fcn.1802b2220
mov rdx, r15
lea rcx, [rsp + 0x20]
call fcn.1802b2370
lea rdx, [0x180040aa8]
lea rcx, [rsp + 0x20]
call fcn.1802b2370
lea rdx, [0x180040ab8]
lea rcx, [rsp + 0x20]
call fcn.1802b2370
lea rdx, [0x180040ad8]
lea rcx, [rsp + 0x20]
call fcn.1802b2370
mov rdx, qword [rsp + 0x20]
inc rbx
cmp byte [rdx + rbx], 0
jne 0x18018a7d1
mov r8, rbx
xor r9d, r9d
mov rcx, r12
call qword [sym.imp.WSOCK32.dll_send]
test eax, eax
jle 0x18018a909
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x220]
call fcn.1802c7550
xor r9d, r9d
mov r8d, 0x800
lea rdx, [rsp + 0x220]
mov rcx, r12
call qword [sym.imp.WSOCK32.dll_recv]
test eax, eax
jle 0x18018a909
cdqe
cmp rax, 0x800
jae 0x18018a904
mov byte [rsp + rax + 0x220], 0
lea rdx, [0x180040af0]
lea rcx, [rsp + 0x220]
call fcn.1802b1c80
mov rdi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x18018a909
add rdi, 7
mov qword [rsp + 0x30], rdi
nop dword [rax]
movzx eax, byte [rdi]
test al, al
je 0x18018a885
cmp al, 0x22
je 0x18018a88a
inc rdi
mov qword [rsp + 0x30], rdi
jmp 0x18018a870
cmp byte [rdi], 0x22
jne 0x18018a909
inc rdi
mov qword [rsp + 0x30], rdi
mov edx, 0x22
mov rcx, rdi
call fcn.1802c6f1c
test rax, rax
je 0x18018a909
mov byte [rax], 0
mov ecx, reloc.WSOCK32.dll_recv
call fcn.18011da30
mov r14, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x18018a8d5
mov rax, qword [0x1803fc9b8]
mov qword [r14], rax
mov rax, qword [0x1803fc9b8]
mov qword [r14 + 8], rax
jmp 0x18018a8d8
xor r14d, r14d
mov rdx, r15
mov rcx, r14
call fcn.1802b2220
mov rdx, rdi
lea rcx, [r14 + 8]
call fcn.1802b2220
mov rdx, r14
lea rcx, [0x180412988]
call fcn.1802a1160
mov r14, qword [r14 + 8]
jmp 0x18018a909
call fcn.1802b8b94
mov rcx, r12
call qword [sym.imp.WSOCK32.dll_closesocket]
nop
lea rcx, [rsp + 0x20]
call fcn.1802b20f0
call qword [sym.imp.WSOCK32.dll_WSACleanup]
test r14, r14
je 0x18018a935
cmp byte [r14], 0
cmovne rsi, r14
mov qword [rsp + 0x28], rsi
jmp 0x18018a93c
lea rcx, [0x180412988]
call fcn.1802a1870
mov rax, rsi
mov rcx, qword [rsp + 0xa20]
xor rcx, rsp
call fcn.1802b85a0
lea r11, [rsp + 0xa30]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret