Function at 0x102c6ff
Capabilities:
Get hostname

Disassembly:
mov eax, 0x10d3ad1
call fcn.0107a498
sub esp, 0x5c
mov eax, dword [0x10e607c]
push esi
push edi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x40]
mov edi, edx
push eax
mov esi, ecx
push edi
mov dword [ebp - 0x58], esi
call fcn.0102becb
test eax, eax
mov dword [ebp - 0x3c], eax
je 0x102c8d9
and dword [ebp - 0x34], 0
mov dword [ebp - 0x38], edi
mov edi, dword [sym.imp.msvcrt.dll_wcsncpy]
push ebx
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x38]
mov ebx, dword [ebp + 8]
sub ebx, dword [ebp - 0x34]
sar eax, 1
cmp ebx, eax
jl 0x102c758
mov ebx, eax
push ebx
push dword [ebp - 0x38]
push esi
call edi
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
add dword [ebp - 0x34], ebx
lea eax, [ecx + eax*2]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x4c]
lea esi, [esi + ebx*2]
xor ebx, ebx
add esp, 0xc
sub eax, ebx
je 0x102c84e
dec eax
je 0x102c7e5
dec eax
jne 0x102c882
push ebx
lea ecx, [ebp - 0x60]
call fcn.0101b4fa
lea ecx, [ebp - 0x48]
call sub.MFC42u.dll_CString::CString_2
push 2
pop eax
push ebx
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x5c]
call fcn.01084772
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.01078b5e
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
call sub.MFC42u.dll_CString::CString
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 0x48]
sub ebx, dword [ebp - 0x34]
mov eax, dword [ecx - 8]
cmp eax, ebx
jge 0x102c7db
mov ebx, eax
push ebx
push ecx
push esi
call edi
lea ecx, [ebp - 0x48]
jmp 0x102c83a
push ebx
lea ecx, [ebp - 0x68]
call fcn.0101b4fa
lea ecx, [ebp - 0x44]
call sub.MFC42u.dll_CString::CString_2
push 2
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x68]
mov dword [ebp - 4], ebx
call fcn.01084b71
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.01078b5e
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0
call sub.MFC42u.dll_CString::CString
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 0x44]
sub ebx, dword [ebp - 0x34]
mov eax, dword [ecx - 8]
cmp eax, ebx
jge 0x102c832
mov ebx, eax
push ebx
push ecx
push esi
call edi
lea ecx, [ebp - 0x44]
add dword [ebp - 0x34], ebx
or dword [ebp - 4], 0xffffffff
add esp, 0xc
lea esi, [esi + ebx*2]
call sub.MFC42u.dll_CString::CString
jmp 0x102c882
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x3c], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov ebx, dword [ebp + 8]
sub ebx, dword [ebp - 0x34]
cmp dword [ebp - 0x3c], ebx
jae 0x102c871
mov ebx, dword [ebp - 0x3c]
push ebx
lea eax, [ebp - 0x30]
push eax
push esi
call edi
add esp, 0xc
add dword [ebp - 0x34], ebx
lea esi, [esi + ebx*2]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x38]
call fcn.0102becb
test eax, eax
mov dword [ebp - 0x3c], eax
jne 0x102c744
mov eax, dword [ebp + 8]
sub eax, dword [ebp - 0x34]
push dword [ebp - 0x38]
mov ebx, dword [sym.imp.msvcrt.dll_wcslen]
mov dword [ebp - 0x40], eax
call ebx
cmp dword [ebp - 0x40], eax
pop ecx
jae 0x102c8bc
mov ebx, dword [ebp - 0x40]
jmp 0x102c8c4
push dword [ebp - 0x38]
call ebx
pop ecx
mov ebx, eax
push ebx
push dword [ebp - 0x38]
push esi
call edi
add esp, 0xc
and word [esi + ebx*2], 0
mov esi, dword [ebp - 0x58]
pop ebx
jmp 0x102c8e7
push dword [ebp + 8]
push edi
push esi
call dword [sym.imp.msvcrt.dll_wcsncpy]
add esp, 0xc
mov eax, dword [ebp + 8]
and word [esi + eax*2], 0
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
call fcn.01078836
leave
ret 4