Function at 0x42b410
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c63c0
mov eax, dword fs:[0]
push eax
sub esp, 0x1b4
mov eax, dword [0x515bb8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x15c], ecx
lea ecx, [ebp - 0x124]
call dword [sym.imp.mfc110.dll_Ordinal_316]
mov dword [ebp - 4], 0
mov dword [ebp - 0x134], 0x100
mov dword [ebp - 0x118], 0x5dc0
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x42b49a
push str._noname
push 0x100
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.MSVCR110.dll_strcpy_s]
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x138]
push ecx
lea edx, [ebp - 0x110]
push edx
call fcn.00401f1e
mov ecx, eax
call fcn.004029a0
mov ecx, eax
call fcn.004907c0
cmp dword [ebp - 0x118], 0x5dc0
je 0x42b524
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.00401f1e
mov ecx, eax
call fcn.004029a0
mov ecx, eax
call fcn.0048f9b0
mov edx, 7
mov word [ebp - 0x11c], dx
lea eax, [ebp - 0x118]
push eax
movzx ecx, word [ebp - 0x11c]
push ecx
lea edx, [ebp - 0x110]
push edx
call fcn.00401f1e
mov ecx, eax
call fcn.004029a0
mov ecx, eax
call fcn.00491060
push 0
push str._n_This_user_
call sub.bv_util.dll_void___cdecl_LogError_char_const___unsigned_int_
add esp, 8
push 0
lea eax, [ebp - 0x110]
push eax
call sub.bv_util.dll_void___cdecl_LogError_char_const___unsigned_int_
add esp, 8
push 0
lea ecx, [ebp - 0x1c0]
call sub.bv_util.dll_public:_void___thiscall_CXMLDOMClass::constructor_bool_
mov byte [ebp - 4], 1
push ecx
mov ecx, esp
mov dword [ebp - 0x17c], esp
push 0x4e449c
call dword [sym.imp.mfc110.dll_Ordinal_310]
mov dword [ebp - 0x180], eax
lea ecx, [ebp - 0x1c0]
call sym.Calibr.exe_public:_long_int___thiscall_CXMLDOMClass::SetKeyRoot_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char____
push str.Software__Cummins__BServer
lea ecx, [ebp - 0x114]
call dword [sym.imp.mfc110.dll_Ordinal_310]
mov byte [ebp - 4], 2
push 0x4e44cc
lea ecx, [ebp - 0x114]
call dword [sym.imp.mfc110.dll_Ordinal_1687]
push 0x4e44d0
lea ecx, [ebp - 0x114]
call dword [sym.imp.mfc110.dll_Ordinal_1687]
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x1c0]
call sym.Calibr.exe_public:_long_int___thiscall_CXMLDOMClass::SetKeyEx_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char____const__
lea ecx, [ebp - 0x1c0]
call sub.bv_util.dll_public:_long_int___thiscall_CXMLDOMClass::IsKeyPresent_void_
cmp eax, 0x5dc0
je 0x42b7b3
mov edx, dword [ebp - 0x114]
push edx
push str._n_ErrorG_RegOpenKey___d
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.mfc110.dll_Ordinal_4746]
add esp, 0xc
push 0
push 0x4e4504
push str.Key_name_
lea ecx, [ebp - 0x114]
push ecx
push str._n_setting_value_at_
lea edx, [ebp - 0x148]
push edx
call fcn.00403472
add esp, 0xc
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0x158]
mov dword [ebp - 0x154], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x154]
push ecx
lea edx, [ebp - 0x140]
push edx
call fcn.0040107d
add esp, 0xc
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x14c], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x14c]
push ecx
lea edx, [ebp - 0x12c]
push edx
call fcn.0040107d
add esp, 0xc
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x144]
mov dword [ebp - 0x130], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x130]
call dword [sym.imp.mfc110.dll_Ordinal_1652]
push eax
call sub.bv_util.dll_void___cdecl_LogError_char_const___unsigned_int_
add esp, 8
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x12c]
call dword [sym.imp.mfc110.dll_Ordinal_1038]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x140]
call dword [sym.imp.mfc110.dll_Ordinal_1038]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x148]
call dword [sym.imp.mfc110.dll_Ordinal_1038]
mov dword [ebp - 0x168], 4
push ecx
mov ecx, esp
mov dword [ebp - 0x178], esp
push 0x4e4538
call dword [sym.imp.mfc110.dll_Ordinal_310]
mov dword [ebp - 0x150], eax
mov ecx, dword [ebp - 0x150]
mov dword [ebp - 0x170], ecx
mov byte [ebp - 4], 6
push ecx
mov ecx, esp
mov dword [ebp - 0x160], esp
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.mfc110.dll_Ordinal_300]
mov dword [ebp - 0x164], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c0]
call sub.bv_util.dll_public:_long_int___thiscall_CXMLDOMClass::CreateKeyFullPath_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char_____class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char____
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x128]
call dword [sym.imp.mfc110.dll_Ordinal_310]
mov byte [ebp - 4], 7
push str.AdminUser
lea ecx, [ebp - 0x120]
call dword [sym.imp.mfc110.dll_Ordinal_310]
mov byte [ebp - 4], 8
push ecx
mov ecx, esp
mov dword [ebp - 0x16c], esp
lea edx, [ebp - 0x128]
push edx
call dword [sym.imp.mfc110.dll_Ordinal_300]
mov dword [ebp - 0x174], eax
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x1c0]
call sub.bv_util.dll_public:_long_int___thiscall_CXMLDOMClass::SetValueData_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char____const___class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char____
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x120]
call dword [sym.imp.mfc110.dll_Ordinal_1038]
lea ecx, [ebp - 0x1c0]
call sub.bv_util.dll_public:_long_int___thiscall_CXMLDOMClass::Save_void_
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x128]
call dword [sym.imp.mfc110.dll_Ordinal_1038]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x114]
call dword [sym.imp.mfc110.dll_Ordinal_1038]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c0]
call sub.bv_util.dll_public_virtual:_void___thiscall_CXMLDOMClass::destructor_void_
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x124]
call dword [sym.imp.mfc110.dll_Ordinal_1038]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b5ffc
mov esp, ebp
pop ebp
ret