Function at 0x180008fcc
Capabilities:
Connect socket
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 qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0xa90
mov rax, qword [0x18002b028]
xor rax, rsp
mov qword [rsp + 0xa80], rax
xor eax, eax
xor ebp, ebp
or r12, 0xffffffffffffffff
mov esi, r8d
mov rdi, rdx
lea r13d, [rbp + 2]
mov word [rsp + 0x38], bp
mov qword [rsp + 0x3a], rax
mov dword [rsp + 0x42], eax
mov word [rsp + 0x46], ax
mov rbx, r12
cmp dword [0x18002fa74], ebp
je 0x18000902d
cmp dword [0x18002fa70], ebp
jne 0x180009154
lea rcx, [rsp + 0x171]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x170], bpl
call fcn.180015e20
lea rcx, [rsp + 0x170]
mov rdx, rdi
call qword [0x180030240]
lea rcx, [rsp + 0x170]
call qword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x1800090cf
lea rcx, [rsp + 0x170]
call qword [sym.imp.WS2_32.dll_gethostbyname]
cmp rax, rbp
jne 0x180009088
xor eax, eax
jmp 0x180009375
xor ecx, ecx
mov word [rsp + 0x48], bp
mov qword [rsp + 0x4a], rcx
mov dword [rsp + 0x52], ecx
mov word [rsp + 0x56], cx
mov rdx, qword [rax + 0x18]
movsx r8, word [rax + 0x12]
lea rcx, [rsp + 0x4c]
mov rdx, qword [rdx]
call qword [0x180030230]
mov ecx, dword [rsp + 0x4c]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
lea rcx, [rsp + 0x170]
mov rdx, rax
call qword [0x180030240]
lea rcx, [rsp + 0x170]
call qword [sym.imp.WS2_32.dll_inet_addr]
movzx ecx, si
mov dword [rsp + 0x3c], eax
call qword [sym.imp.WS2_32.dll_htons]
xor r8d, r8d
lea edx, [r8 + 1]
mov ecx, r13d
mov word [rsp + 0x38], r13w
mov word [rsp + 0x3a], ax
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, r12
je 0x180009081
lea rdx, [rsp + 0x38]
mov r8d, reloc.WS2_32.dll_recv
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, r12d
jne 0x18000913e
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [0x18002fa70]
mov rbx, r12
jmp 0x18000914c
mov eax, ebp
mov dword [0x18002fa74], ebp
mov dword [0x18002fa70], eax
cmp eax, ebp
je 0x180009372
cmp dword [0x18002fa78], ebp
jle 0x180009372
mov edx, 1
mov ecx, r13d
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
lea rcx, [rsp + 0x281]
xor edx, edx
mov r8d, 0x7ff
mov byte [rsp + 0x280], bpl
mov rbx, rax
call fcn.180015e20
xor edx, edx
lea rcx, [rsp + 0x38]
lea r8d, [rdx + 0x10]
call qword [0x180030260]
lea rcx, [rsp + 0x61]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x60], bpl
call fcn.180015e20
lea rdx, [0x18002fa7c]
lea rcx, [rsp + 0x60]
call qword [0x180030240]
lea rcx, [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x18000923e
lea rcx, [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_gethostbyname]
cmp rax, rbp
jne 0x1800091fa
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x180009081
xor ecx, ecx
mov word [rsp + 0x48], bp
mov qword [rsp + 0x4a], rcx
mov dword [rsp + 0x52], ecx
mov word [rsp + 0x56], cx
mov rdx, qword [rax + 0x18]
movsx r8, word [rax + 0x12]
lea rcx, [rsp + 0x4c]
mov rdx, qword [rdx]
call qword [0x180030230]
mov ecx, dword [rsp + 0x4c]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
lea rcx, [rsp + 0x60]
mov rdx, rax
call qword [0x180030240]
lea rcx, [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_inet_addr]
movzx ecx, word [0x18002fa78]
mov dword [rsp + 0x3c], eax
call qword [sym.imp.WS2_32.dll_htons]
lea rdx, [rsp + 0x38]
mov r8d, reloc.WS2_32.dll_recv
mov rcx, rbx
mov word [rsp + 0x38], r13w
mov word [rsp + 0x3a], ax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, r12d
je 0x1800091ec
mov r13d, 0x800
lea rcx, [rsp + 0x280]
xor edx, edx
mov r8, r13
call fcn.180015e20
lea r8, str.CONNECT__s:_d_HTTP_1.1_nUser_Agent:_Mozilla_v5.0_nHOST:__s_nProxy_Connection:_Keep_Alive_n_n
lea rcx, [rsp + 0x280]
mov r9, rdi
mov rdx, r13
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], esi
call fcn.180012f48
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea rdx, [rsp + 0x280]
xor r9d, r9d
mov r8d, eax
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_send]
cmp eax, r12d
je 0x1800091ec
lea rcx, [rsp + 0x280]
mov r8, r13
xor edx, edx
call fcn.180015e20
lea rdx, [rsp + 0x280]
xor r9d, r9d
mov r8d, r13d
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, r12d
je 0x1800091ec
movzx eax, word [0x1800274a8]
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x30]
mov word [rcx], ax
mov al, byte [0x1800274aa]
mov byte [rcx + 2], al
lea rcx, [rsp + 0x280]
call fcn.180013064
cmp rax, rbp
je 0x1800091ec
lea rdx, [0x1800274ac]
mov rcx, rax
call fcn.180012ffc
cmp rax, rbp
je 0x1800091ec
mov dword [0x18002fa74], 1
mov rax, rbx
mov rcx, qword [rsp + 0xa80]
xor rcx, rsp
call fcn.180012970
mov rbx, qword [rsp + 0xac0]
add rsp, 0xa90
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret