Function at 0x100c05b0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100df4af
mov eax, dword fs:[0]
push eax
sub esp, 0x1c0
mov eax, dword [0x10145188]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, 7
xor ebx, ebx
xor ecx, ecx
xor edx, edx
mov byte [0x10148b48], 1
mov dword [ebp - 0x1a4], eax
mov dword [ebp - 0x1a8], ebx
mov word [ebp - 0x1b8], cx
mov dword [ebp - 0x188], eax
mov dword [ebp - 0x18c], ebx
mov word [ebp - 0x19c], dx
mov dword [ebp - 0x16c], eax
mov dword [ebp - 0x170], ebx
mov word [ebp - 0x180], cx
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x154], ebx
mov word [ebp - 0x164], dx
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x138], ebx
mov word [ebp - 0x148], cx
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x11c], ebx
mov word [ebp - 0x12c], dx
lea eax, [ebp - 0x1c0]
mov dword [ebp - 4], ebx
mov edi, dword [sym.imp.Common.dll_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_COMMON::GetAppPath_int_]
push ebx
push eax
call edi
add esp, 8
mov byte [ebp - 4], 1
mov eax, dword [eax]
mov ecx, eax
lea edx, [ecx + 2]
mov si, word [ecx]
add ecx, 2
cmp si, bx
jne 0x100c0683
sub ecx, edx
sar ecx, 1
push ecx
lea esi, [ebp - 0x1b8]
call fcn.10018190
lea ecx, [ebp - 0x1c0]
mov byte [ebp - 4], bl
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
push 0xb
mov eax, str.ErrorReport
mov ecx, esi
call fcn.100171e0
push 4
mov eax, str.D:__
lea esi, [ebp - 0x19c]
call fcn.10018190
lea ecx, [ebp - 0x1c4]
push ebx
push ecx
call edi
push eax
lea edx, [ebp - 0x1c0]
push edx
mov edi, str.CMErrorReportS.exe
mov byte [ebp - 4], 2
call fcn.10001a90
add esp, 0x10
mov byte [ebp - 4], 3
mov eax, dword [eax]
mov ecx, eax
lea edx, [ecx + 2]
jmp 0x100c0700
mov si, word [ecx]
add ecx, 2
cmp si, bx
jne 0x100c0700
sub ecx, edx
sar ecx, 1
push ecx
lea esi, [ebp - 0x164]
call fcn.10018190
lea ecx, [ebp - 0x1c0]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x1c4]
mov byte [ebp - 4], bl
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
push 5
mov eax, str.CM2.1
lea esi, [ebp - 0x148]
call fcn.10018190
push 7
mov eax, str.release
lea esi, [ebp - 0x180]
mov dword [ebp - 0x1bc], ebx
call fcn.10018190
lea ecx, [ebp - 0x1c8]
call dword [0x100ec970]
lea eax, [ebp - 0x1c8]
push eax
mov byte [ebp - 4], 4
call dword [sym.imp.Common.dll_unsigned_long_int___cdecl_COMMON::GetOSVersion_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____]
add esp, 4
test eax, eax
je 0x100c07ab
mov eax, dword [ebp - 0x1c8]
mov ecx, eax
lea esi, [ecx + 2]
nop
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x100c0790
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x12c]
call fcn.10018190
push 0xff
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x100c0867
lea ecx, [ebp - 0x1c0]
call dword [0x100ec970]
lea edx, [ebp - 0x110]
push edx
lea ecx, [ebp - 0x1c0]
mov byte [ebp - 4], 5
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
lea eax, [ebp - 0x1cc]
push eax
lea ecx, [ebp - 0x1c0]
mov ebx, 0x10117064
call fcn.10001dc0
push eax
lea ecx, [ebp - 0x1c4]
push ecx
mov edi, 0x100fc78c
mov byte [ebp - 4], 6
call fcn.10001a90
add esp, 0xc
mov byte [ebp - 4], 7
mov eax, dword [eax]
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x100c0824
sub ecx, esi
sar ecx, 1
push ecx
lea ecx, [ebp - 0x12c]
call fcn.100171e0
lea ecx, [ebp - 0x1c4]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x1cc]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x1c0]
mov byte [ebp - 4], 4
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
push 0x10117068
push 1
call dword [sym.imp.Common.dll_int___cdecl_COMMON::WriteLog_int__wchar_t_const__]
lea edx, [ebp - 0x1bc]
push edx
call dword [sym.imp.CMErrorReportC.dll_InstallErrorReport]
add esp, 0xc
lea ecx, [ebp - 0x1c8]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea esi, [ebp - 0x1bc]
call fcn.100c08c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100d0962
mov esp, ebp
pop ebp
ret