Function at 0x41ec5a
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Resolve dns

Disassembly:
mov eax, 0x50e1e2
call fcn.00508264
sub esp, 0x7c
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x14], edi
test byte [0x55a8f8], 1
mov esi, 0x55a8dc
jne 0x41eca1
or dword [0x55a8f8], 1
push edi
mov ecx, esi
mov dword [0x55a8f4], 0xf
call fcn.00401979
push 0x512620
call fcn.0049aa48
pop ecx
cmp dword [0x55a8f0], edi
jne 0x41eefa
push str.p3p.sogou.com
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
cmp ebx, edi
jne 0x41ed0d
call fcn.004a4b71
push dword [eax]
call fcn.00507a7c
pop ecx
push eax
lea ecx, [ebp - 0x6c]
call fcn.00401644
mov dword [ebp - 4], edi
cmp dword [ebp - 0x54], 0x10
mov eax, dword [ebp - 0x68]
jae 0x41ece3
lea eax, [ebp - 0x68]
push eax
push str.gethostbyname_:__s_n
call fcn.00413df9
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
push 0x535d5a
call fcn.00401644
push edi
push 1
lea ecx, [ebp - 0x6c]
call fcn.004017de
jmp 0x41ef03
push edi
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
push 2
mov dword [ebp - 0x10], eax
pop eax
push 0x50
mov word [ebp - 0x24], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x22], ax
mov eax, dword [ebx + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
push 8
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.0049d740
add esp, 0xc
push 0x10
pop ebx
push ebx
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x41edad
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00507a7c
pop ecx
push eax
lea ecx, [ebp - 0x6c]
call fcn.00401644
xor esi, esi
inc esi
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x68]
cmp dword [ebp - 0x54], ebx
jae 0x41ed83
lea eax, [ebp - 0x68]
push eax
push str.connect_:__s_n
call fcn.00413df9
pop ecx
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp + 8]
push 0x535d5a
call fcn.00401644
push edi
push esi
jmp 0x41ed00
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x41ee08
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00507a7c
pop ecx
push eax
lea ecx, [ebp - 0x6c]
call fcn.00401644
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x68]
cmp dword [ebp - 0x54], ebx
jae 0x41eded
lea eax, [ebp - 0x68]
push eax
push str.getsockname_:__s_n
call fcn.00413df9
pop ecx
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x41ecf0
push dword [ebp - 0x10]
call dword [sym.imp.WS2_32.dll_closesocket]
cmp dword [ebp - 0x14], ebx
je 0x41ee34
push str.getsockname_:_size_mismatch_n
call fcn.00413df9
mov ecx, dword [ebp + 8]
mov dword [esp], 0x535d5a
call fcn.00401644
jmp 0x41ef03
push dword [ebp - 0x30]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [ebp - 0x50]
call fcn.00401644
mov dword [ebp - 4], 3
cmp dword [ebp - 0x30], edi
jne 0x41ee6a
mov ecx, dword [ebp + 8]
push 0x535d5a
call fcn.00401644
push edi
push 1
lea ecx, [ebp - 0x50]
jmp 0x41ed03
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x38], ebx
jae 0x41ee75
lea eax, [ebp - 0x4c]
push eax
push str.Local_IP_:__s_n
call fcn.00413df9
pop ecx
pop ecx
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x50]
push eax
mov ecx, esi
call fcn.00401729
push 0x53aa30
mov ecx, esi
call fcn.0040c0b4
mov ecx, dword [0x55a4d4]
cmp ecx, edi
jne 0x41eeaa
xor eax, eax
jmp 0x41eeaf
mov eax, dword [ecx]
call dword [eax + 0x14]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.00417b00
pop ecx
pop ecx
push 0xffffffffffffffff
push edi
push eax
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.00409cc4
push edi
push 1
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 3
call fcn.004017de
push str._20Hash_20Hash_20Hash
mov ecx, esi
call fcn.0040c0b4
or dword [ebp - 4], 0xffffffff
push edi
push 1
lea ecx, [ebp - 0x50]
call fcn.004017de
mov ecx, dword [ebp + 8]
push esi
call fcn.00403731
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret