Function at 0x5a7bf0
Capabilities:
Act as tcp client
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x664950
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x758898]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x58], esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x50], edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [esi + 0x19c]
cmp dword [eax], ebx
jne 0x5a7c40
lea eax, [ebx + 1]
jmp 0x5a7f7f
mov ecx, dword [esi + 0xc]
cmp ecx, ebx
je 0x5a7c9c
push 1
call fcn.00439530
test eax, eax
jne 0x5a7c9c
mov ecx, dword [esi + 0xc]
cmp dword [ecx + 0x30], ebx
je 0x5a7c9c
lea ecx, [ebp - 0x48]
call fcn.004f6380
mov byte [ebp - 4], 1
mov edx, dword [esi + 0xc]
push edx
lea ecx, [ebp - 0x48]
call fcn.004f63a0
mov edi, eax
test edi, edi
je 0x5a7c8b
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.004f6390
mov eax, edi
jmp 0x5a7f7f
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.004f6390
mov edi, dword [ebp - 0x50]
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
xor bl, bl
mov byte [ebp - 0x49], bl
mov eax, dword [esi + 0x19c]
mov ecx, dword [eax]
push ecx
call sub.WS2_32.dll_gethostbyname
test eax, eax
jne 0x5a7dc9
call sub.WS2_32.dll_WSAGetLastError
mov edi, eax
mov edx, dword [esi + 0x19c]
mov eax, dword [edx]
push eax
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
je 0x5a7ce5
mov dword [ebp - 0x40], eax
mov edi, dword [ebp - 0x50]
jmp 0x5a7dd3
lea ecx, [ebp - 0x48]
call fcn.004024f0
mov byte [ebp - 4], 2
mov ecx, dword [esi + 0x19c]
mov edx, dword [ecx]
push edx
mov eax, dword [0x75ea10]
push eax
lea ecx, [ebp - 0x48]
push ecx
call fcn.00402f60
add esp, 0xc
push 1
mov edx, dword [ebp - 0x48]
push edx
mov ecx, esi
call fcn.00562ad0
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [esi + 0xb4]
call fcn.0056b3d0
push edi
push str.Error_code___ld_r_nChecking_IPV6_address_r_n
lea ecx, [ebp - 0x48]
push ecx
call fcn.00402f60
add esp, 0xc
mov edx, dword [ebp - 0x48]
push edx
mov ecx, esi
call fcn.00562270
mov eax, dword [esi + 0x19c]
lea ecx, [ebp - 0x60]
push ecx
lea edx, [ebp - 0x54]
push edx
lea ecx, [ebp - 0x5c]
push ecx
mov edx, dword [eax + 4]
push edx
mov eax, dword [eax]
push eax
call fcn.00562fc0
add esp, 0x14
mov edi, eax
test edi, edi
je 0x5a7da7
push edi
push str.Checking_IPV6_address_error__ld
lea ecx, [ebp - 0x48]
push ecx
call fcn.00402f60
add esp, 0xc
mov edx, dword [ebp - 0x48]
push edx
mov ecx, esi
call fcn.00562270
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00402560
mov eax, edi
jmp 0x5a7f7f
push str.IPV6_address_found_r_n
mov ecx, esi
call fcn.00562270
mov bl, 1
mov byte [ebp - 0x49], bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00402560
mov edi, dword [ebp - 0x50]
jmp 0x5a7dd3
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [ebp - 0x40], edx
mov eax, 2
mov word [ebp - 0x44], ax
mov ecx, dword [esi + 0x19c]
movzx edx, word [ecx + 4]
push edx
call sub.WS2_32.dll_htons
mov word [ebp - 0x42], ax
mov byte [ebp - 4], 3
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x5a7e07
push eax
call sub.WS2_32.dll_closesocket
mov dword [edi], 0xffffffff
mov dword [ebp - 4], 0
jmp 0x5a7e26
push 0
push 1
movzx eax, bl
neg eax
sbb eax, eax
and eax, 0x15
add eax, 2
push eax
call sub.WS2_32.dll_socket
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x5a7e91
call sub.WS2_32.dll_WSAGetLastError
mov edi, eax
push edi
push str.Error_code___ld
lea ecx, [ebp - 0x34]
push ecx
call fcn.00623a6b
add esp, 0xc
push 1
mov edx, dword [0x75ea80]
push edx
mov ecx, esi
call fcn.00562ad0
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
call fcn.00562270
mov ecx, dword [0x75ea80]
push ecx
mov ecx, dword [esi + 0xb4]
call fcn.0056b3d0
mov eax, edi
jmp 0x5a7f7f
mov eax, dword [esi + 0x19c]
test eax, eax
je 0x5a7eb9
cmp byte [eax + 0x137], 0
je 0x5a7eb9
mov ecx, esi
call fcn.005a75c0
mov edx, dword [esi + 0x3480]
mov eax, dword [edi]
mov dword [edx + 0x3200], eax
mov dword [ebp - 0x64], 1
lea ecx, [ebp - 0x64]
push ecx
push 0x8004667e
mov edx, dword [edi]
push edx
call sub.WS2_32.dll_ioctlsocket
push 1
mov eax, dword [0x75eabc]
push eax
mov ecx, esi
call fcn.00562ad0
test bl, bl
je 0x5a7eec
mov ecx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x54]
jmp 0x5a7ef4
mov ecx, 0x10
lea eax, [ebp - 0x44]
push ecx
push eax
mov ecx, dword [edi]
push ecx
call sub.WS2_32.dll_connect
mov edi, eax
cmp edi, 0xffffffff
jne 0x5a7f0c
call sub.WS2_32.dll_WSAGetLastError
mov edi, eax
mov ecx, dword [ebp - 0x5c]
test ecx, ecx
je 0x5a7f1f
mov eax, dword [0x75e874]
test eax, eax
je 0x5a7f1f
push ecx
call eax
mov ecx, esi
call fcn.005624d0
mov dword [esi + 0xa4], 1
mov byte [esi + 0x3f5], 0
mov byte [esi + 0x3f6], 0
push 0x67997c
lea ecx, [esi + 0x400]
call fcn.0054f750
cmp edi, 0x2733
je 0x5a7f5e
test edi, edi
jne 0x5a7c84
xor eax, eax
jmp 0x5a7f7f
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00620b8d
mov esp, ebp
pop ebp
ret 4