Function at 0x1028f36
Capabilities:
Get hostname

Disassembly:
mov eax, 0x10bdb1b
call fcn.0106f6c0
sub esp, 0x54
push edi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
mov edi, ecx
push eax
push edi
call fcn.01028829
test eax, eax
mov dword [ebp - 0x20], eax
je 0x1029104
and dword [ebp - 0x10], 0
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x14], edi
mov edi, dword [sym.imp.msvcrt.dll_wcsncpy]
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x14]
mov ebx, dword [ebp + 0xc]
sub ebx, dword [ebp - 0x10]
sar eax, 1
cmp ebx, eax
jl 0x1028f85
mov ebx, eax
push ebx
push dword [ebp - 0x14]
push esi
call edi
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
add dword [ebp - 0x10], ebx
lea eax, [ecx + eax*2]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x24]
lea esi, [esi + ebx*2]
xor ebx, ebx
add esp, 0xc
sub eax, ebx
je 0x102907b
dec eax
je 0x1029012
dec eax
jne 0x10290af
push ebx
lea ecx, [ebp - 0x38]
call fcn.01019b05
lea ecx, [ebp - 0x18]
call sub.MFC42u.DLL_CString::CString_3
push 2
pop eax
push ebx
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x34]
call fcn.01078063
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.0106e8f8
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
sub ebx, dword [ebp - 0x10]
mov eax, dword [ecx - 8]
cmp eax, ebx
jge 0x1029008
mov ebx, eax
push ebx
push ecx
push esi
call edi
lea ecx, [ebp - 0x18]
jmp 0x1029067
push ebx
lea ecx, [ebp - 0x40]
call fcn.01019b05
lea ecx, [ebp - 0x1c]
call sub.MFC42u.DLL_CString::CString_3
push 2
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], ebx
call fcn.010783d5
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0106e8f8
and byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call sub.MFC42u.DLL_CString::CString
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
sub ebx, dword [ebp - 0x10]
mov eax, dword [ecx - 8]
cmp eax, ebx
jge 0x102905f
mov ebx, eax
push ebx
push ecx
push esi
call edi
lea ecx, [ebp - 0x1c]
add dword [ebp - 0x10], ebx
or dword [ebp - 4], 0xffffffff
add esp, 0xc
lea esi, [esi + ebx*2]
call sub.MFC42u.DLL_CString::CString
jmp 0x10290af
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x20], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov ebx, dword [ebp + 0xc]
sub ebx, dword [ebp - 0x10]
cmp dword [ebp - 0x20], ebx
jae 0x102909e
mov ebx, dword [ebp - 0x20]
push ebx
lea eax, [ebp - 0x60]
push eax
push esi
call edi
add esp, 0xc
add dword [ebp - 0x10], ebx
lea esi, [esi + ebx*2]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x14]
call fcn.01028829
test eax, eax
mov dword [ebp - 0x20], eax
jne 0x1028f71
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0x10]
push dword [ebp - 0x14]
mov ebx, dword [sym.imp.msvcrt.dll_wcslen]
mov dword [ebp - 0x28], eax
call ebx
cmp dword [ebp - 0x28], eax
pop ecx
jae 0x10290e9
mov ebx, dword [ebp - 0x28]
jmp 0x10290f1
push dword [ebp - 0x14]
call ebx
pop ecx
mov ebx, eax
push ebx
push dword [ebp - 0x14]
push esi
call edi
add esp, 0xc
and word [esi + ebx*2], 0
pop esi
pop ebx
jmp 0x1029114
push dword [ebp + 0xc]
push edi
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_wcsncpy]
add esp, 0xc
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
and word [ecx + eax*2], 0
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
leave
ret 8