Function at 0x1002721
Capabilities:
Get hostname

Disassembly:
mov eax, 0x10076b4
call fcn.010071b8
sub esp, 0x3c
mov eax, dword [0x1009264]
push ebx
push esi
mov esi, ecx
lea ecx, [esi + 0xd0]
xor ebx, ebx
push edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x40], ecx
call sub.MFC42u.DLL_CString::Empty
push dword [esi + 0x74]
lea ecx, [ebp - 0x34]
mov dword [esi + 0xd4], ebx
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], ebx
call sub.MFC42u.DLL_CString::TrimLeft
lea ecx, [ebp - 0x34]
call sub.MFC42u.DLL_CString::TrimRight
mov eax, dword [ebp - 0x34]
cmp dword [eax - 8], ebx
je 0x1002862
mov edi, 0x10014f4
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x1002862
push 2
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x34]
call sub.MFC42u.DLL_CString::Left
push eax
push edi
call fcn.0100253f
lea ecx, [ebp - 0x3c]
mov byte [ebp - 0x35], al
call sub.MFC42u.DLL_CString::CString
cmp byte [ebp - 0x35], bl
je 0x1002894
mov eax, dword [ebp - 0x34]
movzx eax, word [eax + 4]
push eax
call dword [sym.imp.msvcrt.dll_iswspace]
test eax, eax
pop ecx
je 0x1002894
push 3
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x34]
call sub.MFC42u.DLL_CString::Mid
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::operator
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x34]
call sub.MFC42u.DLL_CString::TrimLeft
push 2
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x34]
call sub.MFC42u.DLL_CString::Left
push eax
push 0x10014ec
call fcn.0100253f
lea ecx, [ebp - 0x3c]
mov byte [ebp - 0x35], al
call sub.MFC42u.DLL_CString::CString
cmp byte [ebp - 0x35], bl
je 0x1002854
push 2
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x34]
call sub.MFC42u.DLL_CString::Mid
mov ecx, dword [ebp - 0x40]
push eax
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::operator
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CString::CString
jmp 0x1002894
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x34]
push eax
call sub.MFC42u.DLL_CString::operator
jmp 0x1002894
push 0x10
pop edi
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x3c], edi
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x10029c9
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x30]
push eax
call sub.MFC42u.DLL_CString::operator_1
mov dword [esi + 0xd4], 1
mov edi, dword [ebp - 0x40]
mov eax, dword [edi]
cmp dword [eax - 8], ebx
jne 0x100290e
call sub.MFC42u.DLL_AfxGetModuleState
push dword [eax + 0x10]
lea ecx, [ebp - 0x3c]
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_CString::CString_2
push dword [ebp - 0x3c]
lea eax, [ebp - 0x40]
push 0x1e
push eax
mov byte [ebp - 4], 4
call sub.MFC42u.DLL_CString::FormatMessageW
add esp, 0xc
push dword [ebp - 0x40]
push 4
push ebx
push 0x10
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call fcn.010061b2
add esp, 0x14
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call sub.MFC42u.DLL_CString::CString
jmp 0x10029f1
lea ecx, [ebp - 0x44]
push ecx
push 0x66
push eax
mov dword [ebp - 0x44], ebx
call sub.NETAPI32.dll_NetServerGetInfo
cmp eax, ebx
jne 0x10029ae
mov eax, dword [ebp - 0x44]
test byte [eax + 0x11], 0x40
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
je 0x100294a
push 0x10014d0
call edi
cmp eax, ebx
mov dword [esi + 0xe0], eax
je 0x100294a
xor eax, eax
inc eax
jmp 0x100294c
xor eax, eax
mov dword [esi + 0xd8], eax
mov eax, dword [ebp - 0x44]
test byte [eax + 0x10], 0x40
je 0x1002971
push 0x10014b8
call edi
cmp eax, ebx
mov dword [esi + 0xe4], eax
je 0x1002971
xor eax, eax
inc eax
jmp 0x1002973
xor eax, eax
push dword [ebp - 0x44]
mov dword [esi + 0xdc], eax
call sub.NETAPI32.dll_NetApiBufferFree
cmp dword [esi + 0xd4], ebx
jne 0x1002999
mov eax, dword [ebp - 0x40]
push dword [eax]
call fcn.01006243
mov dword [esi + 0xd4], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x48], 1
call sub.MFC42u.DLL_CString::CString
jmp 0x10029f8
push dword [edi]
push 3
push eax
push 0x10
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call fcn.010061b2
add esp, 0x14
jmp 0x10028fd
push 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call fcn.010061b2
or dword [ebp - 4], 0xffffffff
add esp, 0x10
lea ecx, [ebp - 0x34]
call sub.MFC42u.DLL_CString::CString
mov edi, dword [ebp - 0x40]
mov ecx, edi
call sub.MFC42u.DLL_CString::Empty
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x48]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.010068c7
leave
ret