Function at 0x487e90
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
mov eax, dword [0x5274d0]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov byte [ebp - 0x418], 0
push 0x400
push 0
lea eax, [ebp - 0x417]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x428], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x420], 0
cmp dword [ebp + 8], 0
je 0x487f07
push 0
push 0x400
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x418]
push edx
call fcn.00401150
add esp, 0x10
jmp 0x487f2c
cmp dword [ebp + 8], 0
jne 0x487f2c
push 0x400
lea eax, [ebp - 0x418]
push eax
call fcn.004766e0
add esp, 8
test eax, eax
je 0x487f2c
xor eax, eax
jmp 0x488135
push 1
call fcn.00489770
add esp, 4
test eax, eax
jne 0x487f41
xor eax, eax
jmp 0x488135
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x418]
push edx
call fcn.004752a0
add esp, 8
mov dword [ebp - 0x41c], eax
push 0
push 0x20
push 0
lea eax, [ebp - 0x448]
push eax
call fcn.00401ca0
add esp, 0x10
mov dword [ebp - 0x448], 2
mov dword [ebp - 0x440], 1
mov dword [ebp - 0x444], 0x17
cmp dword [ebp - 0x41c], 0
je 0x487fa4
mov ecx, dword [ebp - 0x41c]
mov dword [ebp - 0x44c], ecx
jmp 0x487fb0
lea edx, [ebp - 0x418]
mov dword [ebp - 0x44c], edx
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x448]
push ecx
push 0
mov edx, dword [ebp - 0x44c]
push edx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x487fda
cmp dword [ebp - 0x428], 0
jne 0x487ff9
cmp dword [ebp - 0x41c], 0
je 0x487ff2
mov eax, dword [ebp - 0x41c]
push eax
call fcn.0043c5b0
add esp, 4
xor eax, eax
jmp 0x488135
mov ecx, dword [ebp - 0x428]
mov dword [ebp - 0x424], ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.00401ca0
add esp, 0x10
push 2
push 0
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x424]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 0x424]
mov eax, dword [edx + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_getnameinfo]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x488071
cmp dword [ebp - 0x428], 0
je 0x488060
mov ecx, dword [ebp - 0x428]
push ecx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov dword [ebp - 0x428], 0
xor eax, eax
jmp 0x488135
mov edx, dword [ebp - 0x424]
cmp dword [edx + 4], 0x17
je 0x488089
mov eax, dword [ebp - 0x424]
cmp dword [eax + 4], 0x17
jne 0x4880c7
cmp dword [ebp + 0xc], 0
je 0x4880b3
mov ecx, 0x51db70
test ecx, ecx
je 0x4880b3
push 4
push 0x51db78
mov edx, dword [ebp + 0xc]
push edx
call sub.MSVCR120.dll__strnicmp
add esp, 0xc
test eax, eax
jne 0x4880b3
jmp 0x4880e3
push 0
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00401ca0
add esp, 0x10
mov edx, dword [ebp - 0x424]
mov eax, dword [edx + 0x1c]
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0
jne 0x488019
mov ecx, dword [ebp + 0xc]
movsx edx, byte [ecx]
test edx, edx
je 0x4880f7
mov dword [ebp - 0x420], 1
cmp dword [ebp - 0x428], 0
je 0x48810d
mov eax, dword [ebp - 0x428]
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov dword [ebp - 0x428], 0
cmp dword [ebp - 0x41c], 0
je 0x48812f
mov ecx, dword [ebp - 0x41c]
push ecx
call fcn.0043c5b0
add esp, 4
mov eax, dword [ebp - 0x420]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00431a84
mov esp, ebp
pop ebp
ret