Function at 0x4174d0
Capabilities:
Get hostname
Get mac address on windows
Resolve dns

Disassembly:
sub esp, 0x134
mov eax, dword [0x5e4a44]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push ebp
push edi
push 0
push 0x5af62d
mov ecx, esi
call fcn.00402ef0
push 0x100
lea eax, [esp + 0x40]
xor ebp, ebp
push eax
mov dword [esp + 0x1c], ebp
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x417556
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x417556
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, eax
mov edx, eax
shr edx, 0x10
and ecx, 0xff0000
or ecx, edx
mov edx, eax
and edx, 0xff00
shl eax, 0x10
or edx, eax
shr ecx, 8
shl edx, 8
or ecx, edx
mov dword [esp + 0x14], ecx
mov ebp, ecx
lea eax, [esp + 0x10]
push eax
push 0
mov dword [esp + 0x18], 0
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x4176fb
push eax
call fcn.00450d15
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
test edi, edi
je 0x4176fb
mov ecx, dword [esp + 0x10]
push ecx
push 0
push edi
call fcn.00557650
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push edi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov dword [esp + 0x18], edi
lea esp, [esp]
mov edx, dword [esp + 0x18]
lea eax, [edx + 0x1ac]
lea ebx, [ebx]
cmp ebp, dword [eax + 0x24]
je 0x4175d0
mov eax, dword [eax]
test eax, eax
jne 0x4175c0
jmp 0x4176dc
mov ebx, dword [str.0123456789ABCDEF]
mov eax, dword [edx + 0x190]
mov dword [esp + 0x28], ebx
mov ebx, dword [0x5afce4]
mov dword [esp + 0x2c], ebx
mov ebx, dword [0x5afce8]
mov dword [esp + 0x30], ebx
mov ebx, dword [0x5afcec]
lea ecx, [edx + 0x194]
add eax, ecx
mov dword [esp + 0x34], ebx
mov bl, byte [0x5afcf0]
mov dword [esp + 0x24], eax
mov byte [esp + 0x38], bl
cmp ecx, eax
jae 0x4176dc
lea esp, [esp]
mov al, byte [ecx]
movzx ebp, al
mov eax, ebp
shr eax, 4
mov dl, byte [esp + eax + 0x28]
mov eax, dword [esi]
mov ebx, dword [eax - 0xc]
mov byte [esp + 0xc], dl
mov edx, 1
sub edx, dword [eax - 4]
mov eax, dword [eax - 8]
lea edi, [ebx + 1]
inc ecx
sub eax, edi
or edx, eax
mov dword [esp + 0x1c], ecx
jge 0x41765c
push edi
mov ecx, esi
call fcn.00403000
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi]
mov al, byte [esp + 0xc]
mov byte [ebx + edx], al
test edi, edi
jl 0x417715
mov eax, dword [esi]
cmp edi, dword [eax - 8]
jg 0x417715
mov dword [eax - 0xc], edi
mov edx, dword [esi]
mov byte [edi + edx], 0
mov eax, dword [esi]
and ebp, 0xf
mov bl, byte [esp + ebp + 0x28]
mov ebp, dword [eax - 0xc]
mov edx, 1
sub edx, dword [eax - 4]
mov eax, dword [eax - 8]
lea edi, [ebp + 1]
sub eax, edi
or edx, eax
jge 0x4176ad
push edi
mov ecx, esi
call fcn.00403000
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi]
mov byte [edx + ebp], bl
test edi, edi
jl 0x417715
mov eax, dword [esi]
cmp edi, dword [eax - 8]
jg 0x417715
mov dword [eax - 0xc], edi
mov eax, dword [esi]
mov byte [edi + eax], 0
cmp ecx, dword [esp + 0x24]
jb 0x417620
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [esi]
cmp dword [ecx - 0xc], 0
jg 0x4176f2
mov eax, dword [edx]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4175b0
push edi
call fcn.00450d0a
add esp, 4
mov ecx, dword [esp + 0x13c]
pop edi
pop ebp
pop ebx
xor ecx, esp
mov eax, esi
call fcn.005509f8
add esp, 0x134
ret
push 0x80070057
call fcn.004010d0
int3