Function at 0x56c790
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6543b0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x7496c8]
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 - 0x60], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], eax
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, dword [esi + 0x194]
cmp dword [ecx], edi
jne 0x56c7e0
lea eax, [edi + 1]
jmp 0x56cabe
mov ecx, dword [esi + 0xc]
cmp ecx, edi
je 0x56c837
push 1
call fcn.00438660
test eax, eax
jne 0x56c837
mov edx, dword [esi + 0xc]
cmp dword [edx + 0x30], edi
je 0x56c837
lea ecx, [ebp - 0x48]
call fcn.004ed490
mov byte [ebp - 4], 1
mov eax, dword [esi + 0xc]
push eax
lea ecx, [ebp - 0x48]
call fcn.004ed4b0
mov ebx, eax
cmp ebx, edi
je 0x56c82b
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.004ed4a0
mov eax, ebx
jmp 0x56cabe
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.004ed4a0
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], edi
xor bl, bl
mov byte [ebp - 0x49], bl
mov ecx, dword [esi + 0x194]
mov edx, dword [ecx]
push edx
call sub.WS2_32.dll_gethostbyname
cmp eax, edi
jne 0x56c963
call sub.WS2_32.dll_WSAGetLastError
mov edi, eax
mov eax, dword [esi + 0x194]
mov ecx, dword [eax]
push ecx
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
je 0x56c87f
mov dword [ebp - 0x40], eax
xor edi, edi
jmp 0x56c96d
lea ecx, [ebp - 0x48]
call fcn.00402500
mov byte [ebp - 4], 2
mov edx, dword [esi + 0x194]
mov eax, dword [edx]
push eax
mov ecx, dword [0x74f7f8]
push ecx
lea edx, [ebp - 0x48]
push edx
call fcn.00402f80
add esp, 0xc
push 1
mov eax, dword [ebp - 0x48]
push eax
mov ecx, esi
call fcn.005581e0
mov ecx, dword [ebp - 0x48]
push ecx
mov ecx, dword [esi + 0xac]
call fcn.00560a60
push edi
push str.Error_code___ld_r_nChecking_IPV6_address_r_n
lea edx, [ebp - 0x48]
push edx
call fcn.00402f80
add esp, 0xc
mov eax, dword [ebp - 0x48]
push eax
mov ecx, esi
call fcn.005579a0
mov eax, dword [esi + 0x194]
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x5c]
push edx
lea ecx, [ebp - 0x54]
push ecx
mov edx, dword [eax + 4]
push edx
mov eax, dword [eax]
push eax
call fcn.005586b0
add esp, 0x14
mov edi, eax
test edi, edi
je 0x56c942
push edi
push str.Checking_IPV6_address_error__ld
lea ecx, [ebp - 0x48]
push ecx
call fcn.00402f80
add esp, 0xc
mov edx, dword [ebp - 0x48]
push edx
mov ecx, esi
call fcn.005579a0
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00402570
mov eax, edi
jmp 0x56cabe
push str.IPV6_address_found_r_n
mov ecx, esi
call fcn.005579a0
mov bl, 1
mov byte [ebp - 0x49], bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00402570
xor edi, edi
jmp 0x56c96d
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 + 0x194]
movzx edx, word [ecx + 4]
push edx
call sub.WS2_32.dll_htons
mov word [ebp - 0x42], ax
push edi
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 ecx, dword [ebp - 0x50]
mov dword [ecx], eax
cmp eax, 0xffffffff
jne 0x56c9f6
call sub.WS2_32.dll_WSAGetLastError
mov edi, eax
push edi
push str.Error_code___ld
lea edx, [ebp - 0x34]
push edx
call fcn.0061611b
add esp, 0xc
push 1
mov eax, dword [0x74f868]
push eax
mov ecx, esi
call fcn.005581e0
lea ecx, [ebp - 0x34]
push ecx
mov ecx, esi
call fcn.005579a0
mov edx, dword [0x74f868]
push edx
mov ecx, dword [esi + 0xac]
call fcn.00560a60
mov eax, edi
jmp 0x56cabe
mov dword [ebp - 0x64], 1
lea ecx, [ebp - 0x64]
push ecx
push 0x8004667e
push eax
call sub.WS2_32.dll_ioctlsocket
push 1
mov edx, dword [0x74f8a4]
push edx
mov ecx, esi
call fcn.005581e0
test bl, bl
je 0x56ca28
mov ecx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x5c]
jmp 0x56ca30
mov ecx, 0x10
lea eax, [ebp - 0x44]
push ecx
push eax
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax]
push ecx
call sub.WS2_32.dll_connect
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x56ca4b
call sub.WS2_32.dll_WSAGetLastError
mov ebx, eax
mov ecx, dword [ebp - 0x54]
cmp ecx, edi
je 0x56ca5e
mov eax, dword [0x74f65c]
cmp eax, edi
je 0x56ca5e
push ecx
call eax
mov ecx, esi
call fcn.00557bf0
mov dword [esi + 0x9c], 1
mov byte [esi + 0x3e9], 0
mov byte [esi + 0x3ea], 0
push 0x66b96c
lea ecx, [esi + 0x3f4]
call fcn.00545860
cmp ebx, 0x2733
je 0x56ca9d
cmp ebx, edi
jne 0x56c824
xor eax, eax
jmp 0x56cabe
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.00613241
mov esp, ebp
pop ebp
ret 4