Function at 0x406df0
Capabilities:
Check os version
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4255fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1ac
push ebx
push ebp
push esi
push edi
xor edi, edi
push 0x34
lea eax, [esp + 0x88]
push edi
mov ebx, ecx
push eax
call sub.ssapi.dll_public:_static_void___cdecl_MSMEM::Fill_void___int__int_
or ebp, 0xffffffff
add esp, 0xc
mov dword [esp + 0x10], ebp
xor esi, esi
push 0xffffccc8
mov dword [esp + 0x1c8], edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x34], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], edi
call sym.analyze.exe_int___cdecl_LogMessage_int_
mov ecx, dword [ebx + 0x9c]
add esp, 4
add ecx, 0x11c
lea edx, [esp + 0xb8]
push str.um.dat
push ecx
push edx
call sub.ssapi.dll_public:_static_int___cdecl_MSFS::AppendPath_char___char_const___char_const__
add esp, 0xc
cmp eax, edi
jge 0x406e9d
push str.um.dat
push eax
call sub.ssapi.dll_public:_static_int___cdecl_MSERR::Error_int_
add esp, 8
mov esi, eax
mov dword [esp + 0x1c4], ebp
jmp 0x4073cd
mov eax, dword [ebx + 0x9c]
lea edx, [esp + 0xb8]
mov ecx, dword [eax + 0x320]
and cl, 0x40
neg cl
sbb ecx, ecx
and cl, 0x3e
add ecx, 0xc3
push ecx
push edx
lea ecx, [esp + 0x18]
call fcn.0040e150
cmp eax, edi
jge 0x406f2a
cmp eax, 0xffffd83b
push str.um.dat
je 0x406f0f
push eax
call sub.ssapi.dll_public:_static_int___cdecl_MSERR::Error_int_
add esp, 8
lea eax, [esp + 0xb8]
push eax
push str.Cannot_open_UM_file__s
call sym.analyze.exe_int___cdecl_DebugMessage_char_const__
add esp, 8
mov ecx, ebx
push edi
call fcn.00407460
mov esi, eax
mov dword [esp + 0x1c4], ebp
jmp 0x4073cd
push 0xffffd83b
call sub.ssapi.dll_public:_static_int___cdecl_MSERR::Error_int_
add esp, 8
mov esi, eax
mov dword [esp + 0x1c4], ebp
jmp 0x4073cd
lea ecx, [esp + 0xb8]
push ecx
push str.Opened_UM_file__s
call sym.analyze.exe_int___cdecl_DebugMessage_char_const__
add esp, 8
lea edx, [esp + 0x84]
lea ecx, [esp + 0x10]
push 0x34
push edx
call fcn.0040e1a0
cmp eax, 0x34
jae 0x406f83
push str.Failed_to_read_UM_file_format
call sym.analyze.exe_int___cdecl_DebugMessage_char_const__
add esp, 4
lea ecx, [esp + 0x10]
call fcn.0040e210
push edi
mov ecx, ebx
call fcn.00407460
mov esi, eax
mov dword [esp + 0x1c4], ebp
jmp 0x4073cd
push str.Read_UM_file_format_successfully
call sym.analyze.exe_int___cdecl_DebugMessage_char_const__
add esp, 4
lea eax, [esp + 0x84]
push str.UserManagement_Microsoft
push eax
call sub.ssapi.dll_public:_static_int___cdecl_MSSTR::Cmp_char_const___char_const__
add esp, 8
test eax, eax
je 0x406fd5
push str.UM_Format_signature_does_not_match
call sym.analyze.exe_int___cdecl_DebugMessage_char_const__
add esp, 4
lea ecx, [esp + 0x10]
call fcn.0040e210
push edi
mov ecx, ebx
call fcn.00407460
mov esi, eax
mov dword [esp + 0x1c4], ebp
jmp 0x4073cd
cmp word [esp + 0xa4], 6
jge 0x406ffb
push 0xffffd6c8
call sub.ssapi.dll_public:_static_int___cdecl_MSERR::Error_int_
add esp, 4
mov esi, eax
mov dword [esp + 0x1c4], ebp
jmp 0x4073cd
lea eax, [ebx + 0x5c]
push 0x40
push eax
push 0x5548
lea ecx, [esp + 0x1c]
call fcn.0040e320
cmp eax, edi
mov dword [esp + 0x18], eax
jge 0x40704a
cmp eax, 0xffffcd38
je 0x407078
push str.Failed_to_read_UM_file_header
call sym.analyze.exe_int___cdecl_DebugMessage_char_const__
add esp, 4
lea ecx, [esp + 0x10]
call fcn.0040e210
push edi
mov ecx, ebx
call fcn.00407460
mov esi, eax
mov dword [esp + 0x1c4], ebp
jmp 0x4073cd
cmp eax, 0xffffcd38
je 0x407078
lea ecx, [esp + 0x74]
push 0x10
lea edx, [ebx + 0x64]
push ecx
push edx
mov dword [esp + 0x20], 1
call sub.ssapi.dll_public:_static_int___cdecl_MSMEM::Copy_void_const__const__void__const__int_
mov esi, dword [esp + 0x20]
add esp, 0xc
jmp 0x407078
mov esi, dword [esp + 0x14]
xor edi, edi
cmp esi, edi
je 0x407093
movsx ecx, word [ebx + 0x5c]
mov eax, dword [esp + 0x2c]
mov edx, eax
inc eax
cmp edx, ecx
mov dword [esp + 0x2c], eax
jge 0x40731e
lea eax, [esp + 0x3c]
push 0x38
push eax
push 0x5555
lea ecx, [esp + 0x1c]
call fcn.0040e320
cmp eax, 0x38
mov dword [esp + 0x18], eax
je 0x4070bc
cmp eax, 0xffffcd38
jne 0x40731e
cmp eax, 0xffffcd38
je 0x4072fb
lea ecx, [esp + 0x3c]
push ecx
mov ecx, ebx
call fcn.00407400
test eax, eax
jne 0x4072fb
mov ecx, dword [esp + 0x60]
xor edx, edx
mov ebp, 0x94
lea eax, [ecx - 0x80]
div ebp
test edx, edx
jne 0x4072fb
mov ax, word [esp + 0x5e]
cmp ax, di
je 0x407107
cmp ax, 1
jne 0x4072fb
lea edx, [esp + 0x3c]
push ecx
push edx
push str.Read_user__s_with_rights_ID__d
call sym.analyze.exe_int___cdecl_DebugMessage_char_const__
mov ecx, dword [ebx + 0x50]
add esp, 0xc
mov esi, ecx
mov dword [esp + 0x38], esi
lea ebp, [esi + 1]
cmp ebp, edi
jne 0x407148
mov eax, dword [ebx + 0x4c]
cmp eax, edi
je 0x40713d
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [ebx + 0x4c], edi
mov dword [ebx + 0x54], edi
mov dword [ebx + 0x50], edi
jmp 0x407284
mov edx, dword [ebx + 0x4c]
cmp edx, edi
jne 0x407186
mov edi, ebp
shl edi, 3
sub edi, ebp
shl edi, 3
push edi
call sub.MFC42.DLL_operatornew
mov edx, eax
mov ecx, edi
mov dword [ebx + 0x4c], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebx + 0x54], ebp
mov dword [ebx + 0x50], ebp
jmp 0x407284
mov edi, dword [ebx + 0x54]
cmp ebp, edi
jg 0x4071c3
cmp ebp, ecx
jle 0x4071bb
mov eax, ebp
lea edi, [ecx*8]
sub eax, ecx
sub edi, ecx
mov ecx, eax
shl ecx, 3
sub ecx, eax
lea edi, [edx + edi*8]
shl ecx, 3
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebx + 0x50], ebp
jmp 0x407284
mov eax, dword [ebx + 0x58]
test eax, eax
jne 0x4071ed
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x4071e1
mov eax, 4
jmp 0x4071ed
cmp eax, 0x400
jle 0x4071ed
mov eax, 0x400
add eax, edi
cmp ebp, eax
jge 0x4071f9
mov dword [esp + 0x1c], eax
jmp 0x4071ff
mov dword [esp + 0x1c], ebp
mov eax, ebp
mov ecx, eax
shl ecx, 3
sub ecx, eax
shl ecx, 3
push ecx
call sub.MFC42.DLL_operatornew
mov edx, dword [ebx + 0x50]
mov esi, dword [ebx + 0x4c]
mov ecx, edx
mov edi, eax
shl ecx, 3
sub ecx, edx
mov dword [esp + 0x38], eax
shl ecx, 3
mov edx, ecx
add esp, 4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
lea esi, [ecx*8]
sub esi, ecx
mov ecx, edx
shl ecx, 3
sub ecx, edx
lea edi, [eax + esi*8]
shl ecx, 3
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebx + 0x4c]
push eax
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x3c]
add esp, 4
mov dword [ebx + 0x4c], eax
mov dword [ebx + 0x50], ebp
mov dword [ebx + 0x54], ecx
mov eax, dword [ebx + 0x4c]
mov edx, esi
shl edx, 3
sub edx, esi
mov ecx, 0xe
lea esi, [esp + 0x3c]
push 0xffffffffffffffff
lea edi, [eax + edx*8]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x64]
push ecx
mov ecx, ebx
call fcn.0040a0a0
test eax, eax
jl 0x4073b2
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x28]
movsx edx, word [esp + 0x5e]
inc eax
add ebp, edx
mov dword [esp + 0x20], eax
lea eax, [esp + 0x3c]
push str.Admin
push eax
mov dword [esp + 0x30], ebp
call sub.ssapi.dll_public:_static_int___cdecl_MSSTR::Cmp_char_const___char_const__
add esp, 8
test eax, eax
jne 0x407072
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x30], 1
mov dword [ebx + 0xb0], ecx
jmp 0x407072
lea edx, [esp + 0x3c]
push edx
push 0xffffccc7
call sym.analyze.exe_int___cdecl_LogMessage_int_
add esp, 8
mov dword [esp + 0x24], 1
mov dword [esp + 0x18], edi
jmp 0x407078
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x407345
cmp eax, 0x38
je 0x407345
push str.unknown
push 0xffffccc7
call sym.analyze.exe_int___cdecl_LogMessage_int_
add esp, 8
mov dword [esp + 0x24], 1
cmp dword [esp + 0x24], edi
jne 0x407395
cmp esi, edi
je 0x407395
cmp dword [esp + 0x30], edi
je 0x407395
movsx ecx, word [ebx + 0x5c]
mov eax, dword [esp + 0x20]
cmp ecx, eax
jne 0x407395
mov edi, dword [esp + 0x28]
movsx edx, word [ebx + 0x5e]
sub eax, edi
dec eax
cmp edx, eax
jne 0x407395
push 0xffffccc6
call sym.analyze.exe_int___cdecl_LogMessage_int_
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c4], 0xffffffff
call fcn.0040e140
xor eax, eax
jmp 0x4073d8
lea ecx, [esp + 0x10]
call fcn.0040e210
neg esi
sbb esi, esi
lea eax, [esp + 0x74]
and esi, eax
mov ecx, ebx
push esi
call fcn.00407460
jmp 0x4073c0
lea ecx, [esp + 0x3c]
push ecx
push eax
call sub.ssapi.dll_public:_static_int___cdecl_MSERR::Error_int_
add esp, 8
mov esi, eax
mov dword [esp + 0x1c4], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.0040e140
mov eax, esi
mov ecx, dword [esp + 0x1bc]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1b8
ret