Function at 0x10009711
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4bc
push ebx
push esi
push edi
xor esi, esi
push 0x498
lea eax, [ebp - 0x4bc]
push esi
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call fcn.10019d20
lea eax, [ebp - 0x4bc]
push eax
call fcn.1000967a
add esp, 0x10
test eax, eax
jns 0x10009783
call fcn.1000a98a
cmp edx, esi
jg 0x10009764
jl 0x1000975c
cmp eax, 0xe10
jae 0x10009764
or eax, 0xffffffff
jmp 0x100099c6
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, 0x10037970
push ebx
lea eax, [ebp - 0x4bc]
push eax
call edi
push ebx
lea eax, [ebp - 0x4ac]
push eax
call edi
mov edi, 0x100
lea eax, [ebp - 0x2ac]
push edi
push eax
call fcn.10026940
pop ecx
pop ecx
call fcn.100241b0
mov byte [ebp - 0x28], al
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1ac]
push eax
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x24]
push eax
movzx eax, word [ebp - 0x22]
push eax
movzx eax, word [ebp - 0x1e]
push eax
movzx eax, word [ebp - 0x18]
push eax
movzx eax, word [ebp - 0x1a]
push eax
movzx eax, word [ebp - 0x1c]
push eax
push dword [0x10052430]
lea eax, [ebp - 0xac]
push 0x3f
push eax
call fcn.10019db0
push 1
call fcn.1001c180
push dword [0x1004c004]
mov dword [ebp - 0x6c], eax
movzx eax, word [section..data]
push eax
push str._04x._u
lea eax, [ebp - 0x68]
push 0x40
push eax
call fcn.10019db0
push 0x2f
call fcn.1001c180
add esp, 0x40
mov edx, eax
cmp eax, esi
jne 0x1000982c
mov edx, str.NULL
mov ecx, dword [ebp - 0x6c]
cmp ecx, esi
jne 0x10009838
mov ecx, 0x100379d8
cmp byte [ebp - 0x28], 1
mov eax, 0x100379d4
je 0x10009848
mov eax, 0x100379d0
push edx
push 0x10051d78
push ecx
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x68]
push ecx
lea ecx, [ebp - 0x2ac]
push ecx
push eax
push 0x100504a8
push 0x10050428
lea eax, [ebp - 0x1ac]
push eax
lea eax, [ebp - 0x4ac]
push eax
lea eax, [ebp - 0x4bc]
push eax
push dword [0x10052858]
lea eax, [edi - 1]
push eax
push ebx
call fcn.10019db0
lea eax, [ebp - 0x10]
push eax
call fcn.1000dfd6
add esp, 0x3c
cmp eax, esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 8], eax
jbe 0x100099aa
xor eax, eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x10], eax
jbe 0x1000999d
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
test byte [eax + ecx], 4
jne 0x1000998a
push ebx
call esi
inc eax
cmp eax, edi
jae 0x1000999d
mov edi, dword [ebp - 4]
add edi, dword [ebp - 8]
push dword [edi + 0x38]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push dword [ebp - 0xc]
push str._iface__d__s__s_
push ebx
call esi
mov edi, dword [ebp + 0xc]
mov ecx, edi
sub ecx, eax
dec ecx
push ecx
push ebx
call esi
add eax, ebx
push eax
call fcn.10019db0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
add esp, 0x18
test byte [ecx + eax], 1
je 0x10009929
push 0x100379b8
jmp 0x1000992e
push str._DOWN
push ebx
call esi
mov ecx, edi
sub ecx, eax
dec ecx
push ecx
push ebx
call esi
add eax, ebx
push eax
call fcn.10019db0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
add esp, 0xc
test byte [ecx + eax], 8
je 0x1000996d
push str._PPP
push ebx
call esi
mov ecx, edi
sub ecx, eax
dec ecx
push ecx
push ebx
call esi
add eax, ebx
push eax
call fcn.10019db0
add esp, 0xc
push 0x100340ec
push ebx
call esi
sub edi, eax
dec edi
push edi
push ebx
call esi
add eax, ebx
push eax
call fcn.10019db0
mov edi, dword [ebp + 0xc]
add esp, 0xc
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
add dword [ebp - 4], 0x4c
cmp eax, dword [ebp - 0x10]
jb 0x100098be
lea eax, [ebp - 8]
push 0
push eax
call fcn.10019b10
pop ecx
pop ecx
push 0x10034228
push ebx
call esi
sub edi, eax
dec edi
push edi
push ebx
call esi
add eax, ebx
push eax
call fcn.10019db0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret