Function at 0x45f5a0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d3b18
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x643004]
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, ecx
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x58], eax
call fcn.0045da60
mov ecx, dword [ebp - 0x58]
mov eax, dword [ecx]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x54]
add eax, 0x18
push eax
call fcn.0041f890
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 4], 0
mov eax, dword [esi]
cmp byte [ecx + 4], 0
je 0x45f63b
add eax, 0x58
mov edx, eax
cmp dword [eax + 0x14], 0x10
jb 0x45f619
mov edx, dword [eax]
push dword [eax + 0x10]
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
push edx
cmovae ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x18]
call fcn.00462da0
add esp, 8
test al, al
je 0x45f63b
mov al, 1
jmp 0x45f63d
xor al, al
mov ecx, dword [esi]
mov byte [ecx + 0x70], al
mov eax, dword [esi]
cmp byte [eax + 0x70], 0
jne 0x45f689
mov ecx, dword [eax + 0x78]
test ecx, ecx
je 0x45f66f
push ecx
call fcn.00591770
mov eax, dword [esi]
push dword [eax + 0x78]
call fcn.0058fe40
mov eax, dword [esi]
add esp, 8
mov dword [eax + 0x78], 0
mov eax, dword [esi]
mov ecx, dword [eax + 0x74]
cmp ecx, 0xffffffff
je 0x45f689
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esi]
mov dword [eax + 0x74], 0xffffffff
mov eax, dword [esi]
cmp dword [eax + 0x74], 0xffffffff
jne 0x45f725
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
je 0x45f874
xorps xmm0, xmm0
mov eax, 2
movups xmmword [ebp - 0x50], xmm0
mov word [ebp - 0x50], ax
movsx eax, word [ecx + 0xa]
push eax
mov eax, dword [ecx + 0xc]
push dword [eax]
lea eax, [ebp - 0x4c]
push eax
call fcn.0048cb50
mov ecx, dword [ebp - 0x54]
add esp, 8
mov edx, str.http
call fcn.0045db30
add esp, 4
push eax
call dword [sym.imp.WS2_32.dll_htons]
push 0
push 1
push 2
mov word [ebp - 0x4e], ax
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [esi]
mov dword [ecx + 0x74], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
cmp eax, 0xffffffff
je 0x45f8a5
push 0x10
lea ecx, [ebp - 0x50]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x45f8d6
mov ecx, dword [esi]
lea eax, [ebp - 0x28]
add ecx, 0x58
cmp ecx, eax
je 0x45f742
cmp dword [ebp - 0x14], 0x10
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00420130
push dword [ebp + 0x10]
mov ecx, esi
push edi
push dword [ebp - 0x54]
call fcn.0045dc10
push edi
push dword [ebp - 0x54]
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.0045e400
mov byte [ebp - 4], 4
lea edx, [ebp - 0x40]
mov ecx, dword [esi]
cmp dword [ebp - 0x2c], 0x10
push dword [ebp - 0x30]
cmovae edx, dword [ebp - 0x40]
mov ecx, dword [ecx + 0x74]
call fcn.0045eb90
add esp, 4
test edi, edi
je 0x45f79c
mov edx, dword [edi + 0x30]
mov eax, dword [edi + 0x34]
cmp edx, eax
je 0x45f79c
mov ecx, dword [esi]
sub eax, edx
push eax
mov ecx, dword [ecx + 0x74]
call fcn.0045eb90
add esp, 4
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x58]
sub esp, 0x28
mov dword [eax + 0x50], 0
mov eax, dword [esi]
mov dword [eax + 0x54], 0
mov eax, esp
push dword [ebp + 0x10]
mov dword [eax], vtable.std::_Func_impl_no_alloc_class__lambda_0bc7ab709c1ea47075d120635a178346___int__char___int_.0
mov dword [eax + 4], esi
mov dword [eax + 0x24], eax
call fcn.0045ef80
mov eax, dword [esi]
cmp byte [eax + 0x70], 0
jne 0x45f7db
mov ecx, esi
call fcn.00460c10
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x45f80f
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45f805
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45f907
push edx
push ecx
call fcn.0048333c
add esp, 8
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp edx, 0x10
jb 0x45f855
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45f84b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45f907
push edx
push ecx
call fcn.0048333c
add esp, 8
mov al, 1
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.00482be9
mov esp, ebp
pop ebp
ret 0x10
push str.gethostbyname_failed.
lea ecx, [ebp - 0x74]
call fcn.0041f830
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x90]
call fcn.0045cf50
push 0x63ee08
lea eax, [ebp - 0x90]
push eax
call fcn.0048477e
push str.socket_failed.
lea ecx, [ebp - 0x74]
call fcn.0041f830
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x90]
call fcn.0045cf50
push 0x63ee08
lea eax, [ebp - 0x90]
push eax
call fcn.0048477e
push str.connect_failed.
lea ecx, [ebp - 0x74]
call fcn.0041f830
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x90]
call fcn.0045cf50
push 0x63ee08
lea eax, [ebp - 0x90]
push eax
call fcn.0048477e
call fcn.004904ef
int3