Function at 0x6708b0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
mov eax, dword [0x78ca90]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov byte [ebp - 0x418], 0
push 0x400
push 0
lea eax, [ebp - 0x417]
push eax
call fcn.005cfab0
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 0x670927
push 0
push 0x400
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x418]
push edx
call fcn.00401150
add esp, 0x10
jmp 0x67094c
cmp dword [ebp + 8], 0
jne 0x67094c
push 0x400
lea eax, [ebp - 0x418]
push eax
call fcn.00667080
add esp, 8
test eax, eax
je 0x67094c
xor eax, eax
jmp 0x670b55
push 1
call fcn.00672190
add esp, 4
test eax, eax
jne 0x670961
xor eax, eax
jmp 0x670b55
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x418]
push edx
call fcn.00665c40
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 0x6709c4
mov ecx, dword [ebp - 0x41c]
mov dword [ebp - 0x44c], ecx
jmp 0x6709d0
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 0x6709fa
cmp dword [ebp - 0x428], 0
jne 0x670a19
cmp dword [ebp - 0x41c], 0
je 0x670a12
mov eax, dword [ebp - 0x41c]
push eax
call fcn.0062c1c0
add esp, 4
xor eax, eax
jmp 0x670b55
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 0x670a91
cmp dword [ebp - 0x428], 0
je 0x670a80
mov ecx, dword [ebp - 0x428]
push ecx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov dword [ebp - 0x428], 0
xor eax, eax
jmp 0x670b55
mov edx, dword [ebp - 0x424]
cmp dword [edx + 4], 0x17
je 0x670aa9
mov eax, dword [ebp - 0x424]
cmp dword [eax + 4], 0x17
jne 0x670ae7
cmp dword [ebp + 0xc], 0
je 0x670ad3
mov ecx, 0x77d6a0
test ecx, ecx
je 0x670ad3
push 4
push 0x77d6a8
mov edx, dword [ebp + 0xc]
push edx
call fcn.005daa12
add esp, 0xc
test eax, eax
jne 0x670ad3
jmp 0x670b03
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 0x670a39
mov ecx, dword [ebp + 0xc]
movsx edx, byte [ecx]
test edx, edx
je 0x670b17
mov dword [ebp - 0x420], 1
cmp dword [ebp - 0x428], 0
je 0x670b2d
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 0x670b4f
mov ecx, dword [ebp - 0x41c]
push ecx
call fcn.0062c1c0
add esp, 4
mov eax, dword [ebp - 0x420]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.005cfbcb
mov esp, ebp
pop ebp
ret