Function at 0x55e210
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6585c8
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x74f8a0]
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 - 0x64], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x60], eax
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, dword [esi + 0xc]
cmp ecx, edi
je 0x55e2a5
push 1
call fcn.00438df0
test eax, eax
jne 0x55e2a5
mov ecx, dword [esi + 0xc]
cmp dword [ecx + 0x30], edi
je 0x55e2a5
lea ecx, [ebp - 0x48]
call fcn.004f0410
mov byte [ebp - 4], 1
mov edx, dword [esi + 0xc]
push edx
lea ecx, [ebp - 0x48]
call fcn.004f0430
mov ebx, eax
cmp ebx, edi
je 0x55e299
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.004f0420
mov eax, ebx
jmp 0x55e765
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.004f0420
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x50], edi
mov byte [ebp - 0x49], 0
mov eax, dword [esi + 0x194]
cmp eax, edi
je 0x55e2c4
mov cl, byte [eax + 0x15c]
jmp 0x55e2c6
xor cl, cl
mov byte [ebp - 0x4a], cl
test cl, cl
je 0x55e2d5
mov ebx, dword [eax + 0x140]
jmp 0x55e2e9
mov eax, dword [esi + 0xc4]
cmp eax, edi
jne 0x55e2e5
mov eax, dword [esi + 0xc0]
mov eax, dword [eax]
mov ebx, eax
mov ecx, dword [esi + 0xac]
cmp ecx, edi
je 0x55e2f8
call fcn.00564390
push str.gethost_r_n
mov ecx, esi
call fcn.0055b6c0
mov ecx, dword [esi + 0xc0]
cmp byte [ecx + 0x17b], 0
je 0x55e440
cmp byte [ecx + 0x1a4], 0
jne 0x55e440
cmp byte [ebp - 0x4a], 0
je 0x55e338
mov ecx, dword [esi + 0x194]
mov eax, dword [ecx + 0x144]
jmp 0x55e34a
mov eax, dword [esi + 0xc4]
cmp eax, edi
je 0x55e347
mov eax, dword [eax + 0xc]
jmp 0x55e34a
mov eax, dword [ecx + 0x14]
lea edx, [ebp - 0x5c]
push edx
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x50]
push edx
push eax
push ebx
call fcn.0055c3d0
add esp, 0x14
mov edi, eax
test edi, edi
je 0x55e42b
lea ecx, [ebp - 0x48]
call fcn.00402500
mov byte [ebp - 4], 2
push edi
push str.Error_code___ld_r_nChecking_IPV4_address_r_n
lea eax, [ebp - 0x48]
push eax
call fcn.00402f70
add esp, 0xc
mov ecx, dword [ebp - 0x48]
push ecx
mov ecx, esi
call fcn.0055b6c0
mov edx, dword [esi + 0xc0]
mov dword [edx + 0x1ac], edi
push 0
lea eax, [ebp - 0x54]
push eax
push ebx
mov ecx, esi
call fcn.0055c0e0
mov edi, eax
test edi, edi
je 0x55e407
push ebx
mov ecx, dword [0x7559d4]
push ecx
lea edx, [ebp - 0x48]
push edx
call fcn.00402f70
add esp, 0xc
push 1
mov eax, dword [ebp - 0x48]
push eax
mov ecx, esi
call fcn.0055bf00
mov esi, dword [esi + 0xac]
test esi, esi
je 0x55e3e9
mov ecx, dword [ebp - 0x48]
push ecx
mov ecx, esi
call fcn.005646e0
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 0x55e765
mov edx, dword [esi + 0xc0]
mov byte [edx + 0x17b], 0
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00402570
jmp 0x55e585
push str.IPV6_address_found_r_n
mov ecx, esi
call fcn.0055b6c0
mov byte [ebp - 0x49], 1
jmp 0x55e578
push edi
lea ecx, [ebp - 0x54]
push ecx
push ebx
mov ecx, esi
call fcn.0055c0e0
mov edi, eax
test edi, edi
je 0x55e56c
lea ecx, [ebp - 0x48]
call fcn.00402500
mov byte [ebp - 4], 3
push ebx
mov edx, dword [0x7559d4]
push edx
lea eax, [ebp - 0x48]
push eax
call fcn.00402f70
add esp, 0xc
push 1
mov ecx, dword [ebp - 0x48]
push ecx
mov ecx, esi
call fcn.0055bf00
mov ecx, dword [esi + 0xac]
test ecx, ecx
je 0x55e497
mov edx, dword [ebp - 0x48]
push edx
call fcn.005646e0
push edi
push str.Error_code___ld_r_nChecking_IPV6_address_r_n
lea eax, [ebp - 0x48]
push eax
call fcn.00402f70
add esp, 0xc
mov ecx, dword [ebp - 0x48]
push ecx
mov ecx, esi
call fcn.0055b6c0
mov edx, dword [esi + 0xc0]
mov dword [edx + 0x1ac], edi
cmp byte [ebp - 0x4a], 0
je 0x55e4d4
mov eax, dword [esi + 0x194]
mov eax, dword [eax + 0x144]
jmp 0x55e4ec
mov eax, dword [esi + 0xc4]
test eax, eax
je 0x55e4e3
mov eax, dword [eax + 0xc]
jmp 0x55e4ec
mov ecx, dword [esi + 0xc0]
mov eax, dword [ecx + 0x14]
lea edx, [ebp - 0x5c]
push edx
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x50]
push edx
push eax
push ebx
call fcn.0055c3d0
add esp, 0x14
mov ebx, eax
test ebx, ebx
je 0x55e543
push ebx
push str.Error_checking_IPV6_address__ld_r_n
lea eax, [ebp - 0x48]
push eax
call fcn.00402f70
add esp, 0xc
mov ecx, dword [ebp - 0x48]
push ecx
mov ecx, esi
call fcn.0055b6c0
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00402570
mov eax, ebx
jmp 0x55e765
push str.IPV6_address_found_r_n
mov ecx, esi
call fcn.0055b6c0
mov edx, dword [esi + 0xc0]
mov byte [edx + 0x17b], 1
mov byte [ebp - 0x49], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00402570
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x40], eax
cmp byte [ebp - 0x49], 0
je 0x55e585
mov ecx, dword [esi + 0xc0]
mov byte [ecx + 0x17c], 1
mov ecx, dword [esi + 0xac]
test ecx, ecx
je 0x55e594
call fcn.00564390
mov edx, 2
mov word [ebp - 0x44], dx
cmp byte [ebp - 0x4a], 0
je 0x55e5b1
mov eax, dword [esi + 0x194]
mov eax, dword [eax + 0x144]
jmp 0x55e5c9
mov eax, dword [esi + 0xc4]
test eax, eax
je 0x55e5c0
mov eax, dword [eax + 0xc]
jmp 0x55e5c9
mov ecx, dword [esi + 0xc0]
mov eax, dword [ecx + 0x14]
push eax
call sub.WS2_32.dll_htons
mov word [ebp - 0x42], ax
mov byte [ebp - 4], 4
mov edi, dword [ebp - 0x60]
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x55e5ed
push eax
call sub.WS2_32.dll_closesocket
mov dword [edi], 0xffffffff
mov dword [ebp - 4], 0
jmp 0x55e609
push 0
push 1
mov bl, byte [ebp - 0x49]
movzx edx, bl
neg edx
sbb edx, edx
and edx, 0x15
add edx, 2
push edx
call sub.WS2_32.dll_socket
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x55e676
call sub.WS2_32.dll_WSAGetLastError
mov edi, eax
push edi
push str.Error_code___ld
lea eax, [ebp - 0x34]
push eax
call fcn.0061af5b
add esp, 0xc
push 1
mov ecx, dword [0x755a48]
push ecx
mov ecx, esi
call fcn.0055bf00
lea edx, [ebp - 0x34]
push edx
mov ecx, esi
call fcn.0055b6c0
mov eax, dword [0x755a48]
push eax
mov ecx, dword [esi + 0xac]
call fcn.005646e0
mov eax, edi
jmp 0x55e765
mov dword [ebp - 0x68], 1
lea ecx, [ebp - 0x68]
push ecx
push 0x8004667e
push eax
call sub.WS2_32.dll_ioctlsocket
push 1
mov edx, dword [0x755a84]
push edx
mov ecx, esi
call fcn.0055bf00
test bl, bl
je 0x55e6a8
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x58]
jmp 0x55e6b0
mov ecx, 0x10
lea eax, [ebp - 0x44]
push ecx
push eax
mov eax, dword [edi]
push eax
call sub.WS2_32.dll_connect
mov edi, eax
cmp edi, 0xffffffff
jne 0x55e6c8
call sub.WS2_32.dll_WSAGetLastError
mov edi, eax
mov ecx, dword [ebp - 0x50]
xor ebx, ebx
cmp ecx, ebx
je 0x55e6dd
mov eax, dword [0x75583c]
cmp eax, ebx
je 0x55e6dd
push ecx
call eax
mov dword [esi + 0x398], ebx
mov dword [esi + 0x39c], ebx
mov ecx, esi
call fcn.0055b910
movzx ecx, byte [ebp - 0x4a]
neg ecx
sbb ecx, ecx
and ecx, 0x1b
inc ecx
mov dword [esi + 0x9c], ecx
mov byte [esi + 0x3e9], 0
mov byte [esi + 0x3ea], 0
push 0x670984
lea ecx, [esi + 0x3f4]
call fcn.005494d0
cmp edi, 0x2733
je 0x55e730
cmp edi, ebx
jne 0x55e400
xor eax, eax
jmp 0x55e765
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.0061807e
mov esp, ebp
pop ebp
ret 4