Function at 0x407f30
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Receive data
Receive data on socket
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a63e
mov eax, dword fs:[0]
push eax
sub esp, 0x550
mov eax, dword [0x42500c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x528], edi
mov dword [ebp - 0x51c], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 0x520], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x14], 0xf
cmp dword [edi + 0x14], 0x10
mov dword [ebp - 0x544], edi
mov dword [ebp - 0x524], eax
mov dword [edi + 0x10], 0
jb 0x407fb3
mov eax, dword [edi]
jmp 0x407fb5
mov eax, edi
push 0
push 0x41f14d
mov byte [eax], 0
call fcn.004098a0
push esi
push esi
push str.GET_http:___s__HTTP_1.1_r_nHOST:__s_r_n_r_n
lea eax, [ebp - 0xd8]
mov dword [ebp - 4], 0
push 0xc8
push eax
mov dword [ebp - 0x520], 1
call fcn.0040afa0
add esp, 0x14
mov dword [ebp - 0x4f4], 0xf
cmp byte [ebp - 0xd8], 0
mov dword [ebp - 0x4f8], 0
mov byte [ebp - 0x508], 0
jne 0x408018
xor ecx, ecx
jmp 0x40802a
lea ecx, [ebp - 0xd8]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408021
sub ecx, edx
push ecx
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0x508]
call fcn.004098a0
mov dword [ebp - 4], 1
mov dword [ebp - 0x4dc], 0xf
mov dword [ebp - 0x4e0], 0
mov byte [ebp - 0x4f0], 0
push 6
push 1
push 2
mov byte [ebp - 4], 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
mov dword [ebp - 0x51c], esi
test esi, esi
jns 0x40809d
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.socket___failed
push 0x40a8e0
call fcn.0040a6a0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
jmp 0x4082ac
push dword [ebp - 0x524]
xorps xmm0, xmm0
mov eax, 2
movups xmmword [ebp - 0x518], xmm0
mov word [ebp - 0x518], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x50
mov dword [ebp - 0x514], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x516], ax
lea eax, [ebp - 0x518]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x408111
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.connect___failed
push 0x40a8e0
call fcn.0040a6a0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x4082ac
cmp dword [ebp - 0x4f4], 0x10
lea eax, [ebp - 0x508]
mov esi, dword [ebp - 0x4f8]
cmovae eax, dword [ebp - 0x508]
push 0
push esi
push eax
push dword [ebp - 0x51c]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, esi
je 0x40816d
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.send___sent_a_different_number_of_bytes_than_expected
push 0x40a8e0
call fcn.0040a6a0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push dword [ebp - 0x51c]
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x4082ac
push 0
push 0x41f14d
lea ecx, [ebp - 0x4f0]
call fcn.004098a0
mov edi, dword [ebp - 0x51c]
nop word [eax + eax]
push 0
push 0x400
lea eax, [ebp - 0x4d8]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
jle 0x408278
cmp byte [ebp - 0x4d8], 0
mov dword [ebp - 0x52c], 0xf
mov dword [ebp - 0x530], 0
mov byte [ebp - 0x540], 0
jne 0x4081d7
xor ecx, ecx
jmp 0x4081e9
lea ecx, [ebp - 0x4d8]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4081e0
sub ecx, edx
push ecx
lea eax, [ebp - 0x4d8]
push eax
lea ecx, [ebp - 0x540]
call fcn.004098a0
push esi
push 0
lea eax, [ebp - 0x55c]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x540]
call fcn.00408800
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x4f0]
mov byte [ebp - 4], 4
call fcn.00409c90
mov eax, dword [ebp - 0x548]
cmp eax, 0x10
jb 0x408241
inc eax
push eax
push dword [ebp - 0x55c]
call fcn.0040a320
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x52c]
mov dword [ebp - 0x548], 0xf
mov dword [ebp - 0x54c], 0
mov byte [ebp - 0x55c], 0
cmp eax, 0x10
jb 0x408278
inc eax
push eax
push dword [ebp - 0x540]
call fcn.0040a320
cmp esi, 0x400
je 0x408190
push dword [ebp - 0x51c]
call dword [sym.imp.WS2_32.dll_closesocket]
mov edi, dword [ebp - 0x528]
lea eax, [ebp - 0x4f0]
cmp edi, eax
je 0x4082ac
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.004099a0
mov eax, dword [ebp - 0x4dc]
cmp eax, 0x10
jb 0x4082c4
inc eax
push eax
push dword [ebp - 0x4f0]
call fcn.0040a320
mov ecx, dword [ebp - 0x4f4]
mov dword [ebp - 0x4dc], 0xf
mov dword [ebp - 0x4e0], 0
mov byte [ebp - 0x4f0], 0
cmp ecx, 0x10
jb 0x4082f7
inc ecx
push ecx
push dword [ebp - 0x508]
call fcn.0040a320
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00418d36
mov esp, ebp
pop ebp
ret