Function at 0x46cc60
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x512032
mov eax, dword fs:[0]
push eax
sub esp, 0x670
mov eax, dword [0x58fa2c]
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 edi, ecx
mov dword [ebp - 0x64c], edi
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x10]
mov ecx, dword [eax + 0x60]
mov edx, dword [edi]
lea eax, [ecx + 0xaef0]
push eax
lea eax, [ecx + 0xadec]
push eax
push dword [ecx + 0xade8]
push dword [ecx + 0xade4]
lea eax, [ecx + 0xace0]
push eax
push str.InitPushClient:_Initializing_UDP_client_to__s_on_Port:__d__AltIP:__d___s____s
push 3
push edi
call dword [edx + 8]
push 0
call fcn.004c60d9
mov dword [ebp - 0x658], eax
mov dword [ebp - 0x644], 0
push 0x104
push 0
lea eax, [ebp - 0x138]
push eax
call fcn.004b8570
push 0x104
push 0
lea eax, [ebp - 0x23c]
push eax
call fcn.004b8570
add esp, 0x3c
mov ecx, edi
call fcn.0046d610
test al, al
je 0x46cd27
lea eax, [edi + 0x238]
jmp 0x46cd32
mov eax, dword [edi + 0x10]
mov eax, dword [eax + 0x60]
add eax, 0xace0
push eax
push 0x104
lea eax, [ebp - 0x23c]
push eax
call fcn.004c562f
add esp, 0xc
mov dword [edi + 0x1d0], 0
mov byte [ebp - 0x34], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x33], xmm0
movq qword [ebp - 0x23], xmm0
mov dword [ebp - 0x1b], 0
mov word [ebp - 0x17], 0
mov byte [ebp - 0x15], 0
mov eax, dword [edi + 0x10]
mov eax, dword [eax + 0x60]
push dword [eax + 0xade4]
push 0x51db78
push 0x1f
lea eax, [ebp - 0x34]
push eax
call fcn.00445f20
add esp, 0x10
xorps xmm0, xmm0
movups xmmword [ebp - 0x67c], xmm0
movups xmmword [ebp - 0x66c], xmm0
mov dword [ebp - 0x674], 2
cmp byte [ebp - 0x23c], 0
je 0x46cf14
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.0048b170
add esp, 8
lea esi, [edi + 0x1cc]
push esi
lea eax, [ebp - 0x67c]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0x644], 1
mov eax, dword [edi]
push dword [esi]
lea ecx, [ebp - 0x138]
push ecx
push str.InfoPush::InitPushClient
push str._s___Resolved__s____p__
push 4
push edi
call dword [eax + 8]
add esp, 0x18
mov ecx, dword [esi]
test ecx, ecx
jne 0x46ce3f
mov esi, dword [edi]
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
lea eax, [ebp - 0x138]
push eax
push str.InitPushClient:_CCS_Host_getaddrinfo_Failed__s__WSAErr:__d____
push 0
push edi
call dword [esi + 8]
add esp, 0x14
jmp 0x46cf1e
mov eax, dword [edi]
push ecx
push str.InfoPush::InitPushClient
push str._s___HostEntEntry___AddrInfo___p_
push 4
push edi
call dword [eax + 8]
add esp, 0x14
mov byte [ebp - 4], 1
xor esi, esi
mov dword [ebp - 0x65c], esi
mov eax, dword [edi + 0x1cc]
mov dword [ebp - 0x648], eax
test eax, eax
je 0x46cee5
push 0x401
push 0
lea eax, [ebp - 0x640]
push eax
call fcn.004b8570
add esp, 0xc
push 2
push 0
push 0
push 0x401
lea eax, [ebp - 0x640]
push eax
mov eax, dword [ebp - 0x648]
push dword [eax + 0x10]
push dword [eax + 0x18]
call dword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x46cece
mov eax, dword [edi]
lea ecx, [ebp - 0x640]
push ecx
push esi
lea ecx, [ebp - 0x138]
push ecx
push str.InitPushClient:_CCS_Host_resolve__s___d___s
push 3
push edi
call dword [eax + 8]
add esp, 0x18
inc esi
mov dword [ebp - 0x65c], esi
cmp esi, 5
jge 0x46cee5
mov eax, dword [ebp - 0x648]
mov eax, dword [eax + 0x1c]
jmp 0x46ce67
mov dword [ebp - 4], 0
jmp 0x46cf1e
mov dword [edi + 0x1cc], 0
cmp dword [edi + 0x1cc], 0
jne 0x46d04d
mov ecx, edi
call fcn.0046d610
test al, al
jne 0x46d04d
mov eax, dword [edi + 0x10]
mov ecx, dword [eax + 0x60]
cmp dword [ecx + 0xade8], 0
je 0x46d04d
lea eax, [ecx + 0xadec]
mov dword [ebp - 0x650], eax
lea eax, [ecx + 0xaef0]
mov dword [ebp - 0x64c], eax
xor esi, esi
mov dword [ebp - 0x654], esi
cmp esi, 2
jae 0x46d04d
mov esi, dword [ebp + esi*4 - 0x650]
cmp byte [esi], 0
je 0x46d041
push 1
push esi
call fcn.00486f90
add esp, 8
test eax, eax
je 0x46d041
push 4
push str.127.
push esi
call fcn.004c8fd2
add esp, 0xc
test eax, eax
jne 0x46cfcc
mov eax, dword [edi]
push esi
push str.InfoPush::InitPushClient
push str._s___Skipping_loopback_alternate_IP_address___s_
push 2
push edi
call dword [eax + 8]
add esp, 0x14
mov esi, dword [ebp - 0x654]
inc esi
jmp 0x46cf67
lea ecx, [ebp - 0x138]
sub ecx, esi
mov al, byte [esi]
mov byte [ecx + esi], al
lea esi, [esi + 1]
test al, al
jne 0x46cfd4
mov eax, dword [edi]
lea ecx, [ebp - 0x138]
push ecx
push str.InfoPush::InitPushClient
push str._s___Reverting_to_IP_Addr___s_
push 2
push edi
call dword [eax + 8]
add esp, 0x14
lea esi, [edi + 0x1cc]
push esi
lea eax, [ebp - 0x67c]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0x644], 2
mov eax, dword [edi]
push dword [esi]
push str.InfoPush::InitPushClient
push str._s___Addr___AddrInfo___p_
push 4
push edi
call dword [eax + 8]
add esp, 0x14
cmp dword [esi], 0
jne 0x46d04d
mov esi, dword [ebp - 0x654]
inc esi
jmp 0x46cf67
push 0x44
call fcn.00472260
add esp, 4
mov dword [ebp - 0x64c], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x46d070
mov ecx, eax
call fcn.00487930
mov ecx, eax
jmp 0x46d072
xor ecx, ecx
mov byte [ebp - 4], 0
mov dword [edi + 0x1d4], ecx
mov eax, dword [edi + 0x10]
mov eax, dword [eax + 0x60]
mov eax, dword [eax + 0xade4]
test eax, eax
je 0x46d08f
mov dword [ecx + 0x1c], eax
push 0
call fcn.004c60d9
add esp, 4
mov edx, eax
mov dword [ebp - 0x64c], edx
push dword [ebp - 0x644]
cmp dword [edi + 0x1cc], 0
jne 0x46d0da
mov esi, dword [edi]
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
mov eax, dword [ebp - 0x64c]
sub eax, dword [ebp - 0x658]
push eax
lea eax, [ebp - 0x138]
push eax
push str.InitPushClient:_CCS_Host_Initialize_Failed__s_in__d_secs__WSAErr:__d____d____
push 0
push edi
call dword [esi + 8]
jmp 0x46d101
mov ecx, dword [edi]
mov eax, dword [edi + 0x10]
mov eax, dword [eax + 0x60]
push dword [eax + 0xade4]
sub edx, dword [ebp - 0x658]
push edx
lea eax, [ebp - 0x138]
push eax
push str.InitPushClient:_CCS_Host_Initialize_Success__s_in__d_secs_on_Port:__d___d_
push 3
push edi
call dword [ecx + 8]
add esp, 0x1c
mov dword [ebp - 4], 0xffffffff
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.004a4566
mov esp, ebp
pop ebp
ret