Function at 0x405f00
Capabilities:
Get hostname

Disassembly:
push ebp
lea ebp, [esp - 0x84]
sub esp, 0x84
push 0xffffffffffffffff
push 0x41fe3e
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x42e7a0]
xor eax, ebp
mov dword [ebp + 0x80], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x90]
mov edi, ecx
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], 0x80
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp]
push edx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x18]
push eax
push 0x422cf8
push 0x17
push ebx
push 0x422d70
mov byte [ebp - 4], 2
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x405fc1
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ole32.dll_OleRun]
mov esi, eax
cmp esi, ebx
jl 0x405fb2
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
mov edx, dword [edx]
lea ecx, [ebp - 0x14]
push ecx
push 0x422cc8
push eax
call edx
mov esi, eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp esi, ebx
jge 0x405fc4
mov dword [ebp - 0x14], ebx
lea esi, [edi + 0x54]
mov eax, 8
push esi
mov word [ebp - 0x44], ax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jne 0x405fec
cmp esi, ebx
je 0x405fec
push 0x8007000e
call fcn.0041e850
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 3
cmp ecx, ebx
jne 0x406001
push 0x80004003
call fcn.0041e850
lea edx, [ebp - 0x44]
push edx
call fcn.004054c0
movzx esi, ax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp si, bx
je 0x40618f
lea ecx, [ebp - 0x18]
call dword [0x422778]
lea ecx, [ebp]
push ecx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetLength]
test eax, eax
jg 0x406059
lea edx, [ebp - 0x18]
push str.Kies
push edx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
add esp, 8
push ecx
lea eax, [ebp - 0x18]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call dword [0x422830]
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push 0x422d44
mov byte [ebp - 4], 5
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
push ecx
mov ecx, dword [ebp - 0x14]
mov eax, esp
mov dword [eax], ecx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], esp
cmp eax, ebx
je 0x406098
mov edx, dword [eax]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.00405c20
lea ecx, [ebp - 0x20]
push ecx
mov ecx, edi
call fcn.00404eb0
mov esi, eax
push 0x422d40
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 6
call fcn.00405520
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push esi
push eax
mov bl, 7
push ecx
mov byte [ebp - 4], bl
call fcn.004050c0
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push str.__modelDescription
mov byte [ebp - 4], 8
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
mov edx, dword [ebp - 0x14]
push ecx
mov eax, esp
mov dword [eax], edx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], esp
test eax, eax
je 0x40610e
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov ecx, edi
mov byte [ebp - 4], bl
call fcn.00405c20
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
jne 0x40613f
push 0x80004003
call fcn.0041e850
lea eax, [ebp - 0x20]
push eax
call fcn.00405b00
mov eax, dword [eax]
mov byte [ebp - 4], 9
test eax, eax
je 0x406156
mov eax, dword [eax]
jmp 0x406158
xor eax, eax
push eax
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.00405ab0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x406184
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
xor ebx, ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 1
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetLength]
test eax, eax
jle 0x4061d4
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::AllocSysString]
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp eax, ebx
je 0x4061c4
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, 1
jmp 0x406206
mov eax, dword [ebp - 0x14]
cmp eax, ebx
jmp 0x4061ed
mov byte [ebp - 4], 0
je 0x4061fb
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x80]
xor ecx, ebp
call fcn.0041d7e6
add ebp, 0x84
mov esp, ebp
pop ebp
ret 8