Function at 0x1002cd6
Capabilities:
Get hostname

Disassembly:
mov eax, 0x100870f
call fcn.01008168
sub esp, 0x3c
mov eax, dword [0x100b27c]
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xcc]
xor ebx, ebx
mov ecx, edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x48], ebx
call sub.MFC42u.dll_CString::Empty
lea ecx, [esi + 0xd0]
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_2
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 0x1002e2f
push 0x10015f8
push eax
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x1002e2f
push 2
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x34]
call sub.MFC42u.dll_CString::Left
push eax
push 0x10015f8
call fcn.01002b01
lea ecx, [ebp - 0x3c]
mov byte [ebp - 0x35], al
call sub.MFC42u.dll_CString::CString
cmp byte [ebp - 0x35], bl
je 0x1002e61
mov eax, dword [ebp - 0x34]
cmp dword [eax - 8], 2
jle 0x1002d92
mov ax, word [eax + 4]
jmp 0x1002d94
xor eax, eax
push eax
call dword [sym.imp.msvcrt.dll_iswspace]
test eax, eax
pop ecx
je 0x1002e61
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 0x10015f0
call fcn.01002b01
lea ecx, [ebp - 0x3c]
mov byte [ebp - 0x35], al
call sub.MFC42u.dll_CString::CString
cmp byte [ebp - 0x35], bl
je 0x1002e22
push 2
lea eax, [ebp - 0x3c]
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
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call sub.MFC42u.dll_CString::CString
jmp 0x1002e61
lea eax, [ebp - 0x34]
push eax
mov ecx, edi
call sub.MFC42u.dll_CString::operator
jmp 0x1002e61
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x3c], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x1002fde
lea eax, [ebp - 0x30]
push eax
mov ecx, edi
call fcn.01007b8e
mov dword [esi + 0xd4], 1
mov eax, dword [edi]
cmp dword [eax - 8], ebx
jne 0x1002ecc
call sub.MFC42u.dll_AfxGetModuleState
push dword [eax + 0x10]
lea ecx, [ebp - 0x3c]
call sub.MFC42u.dll_CString::CString_2
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call sub.MFC42u.dll_CString::CString_3
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.010075fa
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
jmp 0x1002ff8
lea ecx, [ebp - 0x44]
push ecx
push 0x65
push eax
mov dword [ebp - 0x44], ebx
call sub.NETAPI32.dll_NetServerGetInfo
cmp eax, ebx
jne 0x1002fc6
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 8]
and eax, 0xf
cmp al, 5
jb 0x1002f2e
push dword [edi]
mov dword [esi + 0xe0], 1
call fcn.0100298f
push 0x10015dc
mov dword [esi + 0xd8], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 0xe8], eax
je 0x1002f2e
push 0x10015c4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0xec], eax
mov eax, dword [ebp - 0x44]
test byte [eax + 0x10], 0x40
je 0x1002f51
push 0x10015ac
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 0xe4], eax
je 0x1002f51
xor eax, eax
inc eax
jmp 0x1002f53
xor eax, eax
push dword [ebp - 0x44]
mov dword [esi + 0xdc], eax
call sub.NETAPI32.dll_NetApiBufferFree
cmp dword [esi + 0xd4], ebx
jne 0x1002f76
push dword [edi]
call fcn.01007687
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
mov ecx, dword [ebp - 0x40]
push 0x10015f0
call fcn.01007b8e
mov ecx, dword [ebp - 0x40]
push edi
call sub.MFC42u.dll_CString::operator_1
mov ecx, dword [ebp - 0x40]
push 0x10015a8
call sub.MFC42u.dll_CString::operator_2
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.01007865
leave
ret
push dword [edi]
push 3
push eax
push 0x10
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call fcn.010075fa
add esp, 0x14
jmp 0x1002ff8
push 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call fcn.010075fa
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 0x1002fac