Function at 0x10a83df0
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x50c
push ebx
mov ebx, eax
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov cx, word [0x10c92214]
mov dx, word [0x10c92218]
mov word [esp + 0x110], cx
xor eax, eax
push esi
push edi
mov ecx, 0x7f
lea edi, reloc.ole32.dll_CoCreateGuid
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [esp + 0x318], dx
mov ecx, 0x7f
lea edi, reloc.ole32.dll_CoCreateGuid
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov al, byte [0x10c9221a]
mov byte [esp + 0x18], al
xor eax, eax
mov ecx, 0x3f
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x100
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x14], 0
stosb byte es:[edi], al
call sub.WS2_32.dll_gethostname
test eax, eax
je 0x10a83e9b
or eax, reloc.ole32.dll_CoCreateGuid
call fcn.10a85bb0
push eax
push str.WinSock
push str._s:_gethostname_failed___s_
call fcn.109118d0
add esp, 0xc
xor eax, eax
lea esi, [esp + 0x18]
call fcn.109141a0
push eax
lea edx, reloc.ole32.dll_CoCreateGuid
push edx
call dword [sym.imp.MSVCR70.dll_wcscpy]
push str.MULTIHOME
mov ecx, 0x100
lea esi, reloc.ole32.dll_CoCreateGuid
mov eax, 0x10c92680
call fcn.109120e0
add esp, 0xc
test eax, eax
je 0x10a83f86
mov edi, dword [sym.imp.MSVCR70.dll_wcschr]
lea eax, reloc.ole32.dll_CoCreateGuid
push 0x2e
push eax
call edi
add esp, 8
test eax, eax
je 0x10a83f66
add eax, 2
push 0x2e
push eax
mov dword [esp + 0x18], eax
call edi
add esp, 8
test eax, eax
je 0x10a83f66
lea esi, [eax + 2]
push 0x2e
push esi
call edi
mov edi, eax
add esp, 8
test edi, edi
je 0x10a83f66
push esi
mov esi, dword [sym.imp.MSVCR70.dll__wtoi]
call esi
mov ecx, dword [esp + 0x14]
push ecx
mov ebx, eax
call esi
lea edx, reloc.ole32.dll_CoCreateGuid
push edx
mov dword [esp + 0x20], eax
call esi
add edi, 2
push edi
mov dword [esp + 0x20], eax
call esi
mov ecx, dword [ebp + 8]
mov dl, byte [esp + 0x20]
mov byte [ecx], dl
mov dl, byte [esp + 0x24]
mov byte [ecx + 3], al
mov eax, dword [esp + 0x1c]
add esp, 0x10
mov byte [ecx + 1], dl
mov byte [ecx + 2], bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, reloc.ole32.dll_CoCreateGuid
push eax
push str.Invalid_multihome_IP_address__s
call fcn.109118d0
mov eax, dword [esp + 0x14]
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, reloc.ole32.dll_CoCreateGuid
push 0
push ecx
call fcn.10914120
add esp, 8
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x10a83fc4
or eax, reloc.ole32.dll_CoCreateGuid
call fcn.10a85bb0
push eax
push str.gethostbyname_failed___s_
call fcn.109118d0
mov eax, dword [esp + 0x14]
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp word [eax + 8], 2
je 0x10a83fec
or eax, reloc.ole32.dll_CoCreateGuid
call fcn.10a85bb0
push eax
push str.gethostbyname:_non_Internet_address___s_
call fcn.109118d0
mov eax, dword [esp + 0x14]
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
mov esi, str.PRIMARYNET
mov edi, 0x10c92680
mov dword [edx], ecx
call fcn.109121c0
test eax, eax
mov eax, 1
je 0x10a84014
mov eax, dword [esp + 0xc]
mov ecx, dword [0x10ccacec]
test ecx, ecx
jne 0x10a84028
mov dword [0x10ccacec], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret