Function at 0x10006934
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.10013ba0
lea eax, [ebp - 0x4bc]
push eax
call fcn.100068b4
add esp, 0x10
test eax, eax
jns 0x100069a6
call fcn.100077b8
cmp edx, esi
jg 0x10006987
jl 0x1000697f
cmp eax, 0xe10
jae 0x10006987
or eax, 0xffffffff
jmp 0x10006c05
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, 0x1002a5ac
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.1001fa90
pop ecx
pop ecx
call fcn.1001d810
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 [0x1003ac38]
lea eax, [ebp - 0xac]
push 0x3f
push eax
call fcn.10013c30
push 1
call fcn.10015b10
push dword [0x10035004]
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.10013c30
push 0x2f
call fcn.10015b10
add esp, 0x40
push 0x95c
mov edi, eax
call fcn.10015350
pop ecx
mov dword [ebp - 4], eax
cmp eax, esi
je 0x1000697f
cmp edi, esi
jne 0x10006a65
mov edi, str.NULL
mov ecx, dword [ebp - 0x6c]
cmp ecx, esi
jne 0x10006a71
mov ecx, 0x1002a5e0
cmp byte [ebp - 0x28], 1
mov eax, 0x1002a5dc
je 0x10006a81
mov eax, 0x1002a5d8
push edi
push 0x1003a4f8
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 0x10038c28
push 0x10038ba8
lea eax, [ebp - 0x1ac]
push eax
lea eax, [ebp - 0x4ac]
push eax
lea eax, [ebp - 0x4bc]
push eax
push dword [ebp - 4]
lea eax, [edi - 1]
push eax
push ebx
call fcn.10013c30
lea eax, [ebp - 4]
push eax
call fcn.10015460
lea eax, [ebp - 0x10]
push eax
call fcn.1000a17a
add esp, 0x40
cmp eax, esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0xc], eax
jbe 0x10006be9
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ebp - 0x10], eax
jbe 0x10006bdc
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
test byte [eax + ecx], 4
jne 0x10006bc9
push ebx
call esi
inc eax
cmp eax, edi
jae 0x10006bdc
mov edi, dword [ebp - 8]
add edi, dword [ebp - 0xc]
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 - 4]
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.10013c30
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
add esp, 0x18
test byte [ecx + eax], 1
je 0x10006b68
push 0x1002a5c0
jmp 0x10006b6d
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.10013c30
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
add esp, 0xc
test byte [ecx + eax], 8
je 0x10006bac
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.10013c30
add esp, 0xc
push 0x1002a380
push ebx
call esi
sub edi, eax
dec edi
push edi
push ebx
call esi
add eax, ebx
push eax
call fcn.10013c30
mov edi, dword [ebp + 0xc]
add esp, 0xc
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add dword [ebp - 8], 0x4c
cmp eax, dword [ebp - 0x10]
jb 0x10006afd
lea eax, [ebp - 0xc]
push 0
push eax
call fcn.10013990
pop ecx
pop ecx
push 0x1002a3b0
push ebx
call esi
sub edi, eax
dec edi
push edi
push ebx
call esi
add eax, ebx
push eax
call fcn.10013c30
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret