Function at 0x1002c21
Capabilities:
Get hostname

Disassembly:
push 0x38
mov eax, 0x1007fc1
call fcn.01007475
mov esi, ecx
lea edi, [esi + 0xcc]
xor ebx, ebx
mov ecx, edi
mov dword [ebp - 0x44], ebx
call sub.MFC42u.dll_CString::Empty
lea ecx, [esi + 0xd0]
mov dword [ebp - 0x3c], ecx
call sub.MFC42u.dll_CString::Empty
push dword [esi + 0x74]
lea ecx, [ebp - 0x34]
mov dword [esi + 0xd4], ebx
call fcn.01006d76
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 0x1002d86
mov ebx, 0x1001620
push ebx
lea ecx, [ebp - 0x34]
call fcn.0100271c
test eax, eax
je 0x1002d86
push 2
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x34]
call sub.MFC42u.dll_CString::Left
push ebx
mov ecx, eax
call fcn.0100271c
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [ebp - 0x38]
inc bl
call sub.MFC42u.dll_CString::CString
test bl, bl
je 0x1002db7
mov eax, dword [ebp - 0x34]
cmp dword [eax - 8], 2
jle 0x1002cd2
movzx eax, word [eax + 4]
jmp 0x1002cd4
xor eax, eax
push eax
call dword [sym.imp.msvcrt.dll_iswspace]
pop ecx
test eax, eax
je 0x1002db7
push 3
lea eax, [ebp - 0x38]
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_1
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0
call sub.MFC42u.dll_CString::CString
lea ecx, [ebp - 0x34]
call sub.MFC42u.dll_CString::TrimLeft
push 2
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x34]
call sub.MFC42u.dll_CString::Left
push 0x1001618
mov ecx, eax
call fcn.0100271c
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [ebp - 0x38]
inc bl
call sub.MFC42u.dll_CString::CString
test bl, bl
je 0x1002d69
push 2
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x34]
call sub.MFC42u.dll_CString::Mid
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call sub.MFC42u.dll_CString::operator_1
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0
call sub.MFC42u.dll_CString::CString
jmp 0x1002d74
lea eax, [ebp - 0x34]
push eax
mov ecx, edi
call sub.MFC42u.dll_CString::operator_1
push edi
call fcn.01006a1a
test eax, eax
je 0x1002db7
push edi
call fcn.01006ac9
jmp 0x1002db7
push 0x10
pop ebx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x38], ebx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x1002efa
lea eax, [ebp - 0x30]
push eax
mov ecx, edi
call sub.MFC42u.dll_CString::operator
mov dword [esi + 0xd4], 1
mov eax, dword [edi]
xor ebx, ebx
cmp dword [eax - 8], ebx
jne 0x1002e24
call sub.MFC42u.dll_AfxGetModuleState
push dword [eax + 0x10]
lea ecx, [ebp - 0x38]
call fcn.01006d76
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
call sub.MFC42u.dll_CString::CString_3
push dword [ebp - 0x38]
lea eax, [ebp - 0x3c]
push 0x1e
push eax
mov byte [ebp - 4], 4
call sub.MFC42u.dll_CString::FormatMessageW
add esp, 0xc
push dword [ebp - 0x3c]
push 4
push ebx
push 0x10
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call fcn.010066a7
add esp, 0x14
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
call sub.MFC42u.dll_CString::CString
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], bl
call sub.MFC42u.dll_CString::CString
jmp 0x1002f13
lea ecx, [ebp - 0x40]
push ecx
push 0x65
push eax
mov dword [ebp - 0x40], ebx
call sub.srvcli.dll_NetServerGetInfo
cmp eax, ebx
jne 0x1002ee2
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 8]
and eax, 0xf
cmp al, 5
jb 0x1002e86
push dword [edi]
mov dword [esi + 0xdc], 1
call fcn.010029cb
push 0x1001604
mov dword [esi + 0xd8], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0xe0], eax
cmp eax, ebx
je 0x1002e86
push 0x10015ec
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0xe4], eax
push dword [ebp - 0x40]
call sub.netutils.dll_NetApiBufferFree
cmp dword [esi + 0xd4], ebx
jne 0x1002ea3
push dword [edi]
call fcn.0100672b
mov dword [esi + 0xd4], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x44], 1
call sub.MFC42u.dll_CString::CString
mov ecx, dword [ebp - 0x3c]
push 0x1001618
call sub.MFC42u.dll_CString::operator
mov ecx, dword [ebp - 0x3c]
push edi
call fcn.01006d16
mov ecx, dword [ebp - 0x3c]
push 0x10015e8
call fcn.01006d0a
mov eax, dword [ebp - 0x44]
call fcn.010074c9
ret
push dword [edi]
push 3
push eax
push 0x10
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call fcn.010066a7
add esp, 0x14
jmp 0x1002f13
push 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call fcn.010066a7
add esp, 0x10
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call sub.MFC42u.dll_CString::CString
mov ecx, edi
call sub.MFC42u.dll_CString::Empty
jmp 0x1002ed9