Function at 0x4050a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448138
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x47a008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x274], edi
mov eax, dword [ebp + 8]
push 1
mov dword [ebp - 0x27c], eax
mov dword [ebp - 0x34], 0
call fcn.00430ab5
mov dword [ebp - 0x34], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [ebp - 0x14c]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov dword [ebp - 0x150], 0x11c
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x405132
cmp dword [ebp - 0x14c], 6
mov eax, dword [ebp - 0x34]
setae cl
mov byte [eax], cl
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea ecx, [ebp - 0x34]
call fcn.0040f470
test al, al
je 0x405158
mov byte [ebp - 0x26d], 1
jmp 0x4053fa
mov eax, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40516d
push eax
call esi
mov dword [edi], 0
lea eax, [ebp - 0x280]
mov dword [ebp - 0x278], 0
push eax
lea eax, [ebp - 0x278]
mov dword [ebp - 0x280], 0
push eax
call fcn.0040f1b0
mov edi, dword [ebp - 0x278]
test al, al
je 0x4052df
push edi
call fcn.00408860
add esp, 4
test al, al
je 0x40548d
cmp dword [0x47a554], 0
je 0x4052aa
push 0
mov ecx, 0x47a550
call fcn.00409700
mov eax, dword [0x47a554]
cmp byte [eax + 0x54], 0
je 0x4052aa
cmp dword [eax + 0x58], 2
jb 0x4052aa
mov al, byte [eax + 0x5c]
mov byte [ebp - 0x26d], al
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
push 0xb
push str.admin_user_
call fcn.00404970
push 0x4e
push str.RC::RCSafeAppRun::RunSafeAppAsAdmin
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhino_safe_srcproductexe_safeexe_src_saferun_rcsafeapprun.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x47a550
push eax
push 2
call fcn.0040a6b0
cmp byte [ebp - 0x26d], 0
je 0x405256
lea eax, [ebp - 0x28]
mov ecx, 0x47a550
push eax
call fcn.0040ad30
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x405296
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40528c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40528c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00430ae5
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push 0
push ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x30]
push str.Global633581FF_6901_49B2_BA10_4C21431986DC
movups xmmword [ebp - 0x30], xmm0
movups xmmword [ebp - 0x20], xmm0
call fcn.0040df40
mov byte [ebp - 4], 2
cmp byte [ebp - 0x2c], 0
jne 0x40542c
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.0040e060
push edi
call esi
push dword [ebp - 0x27c]
call fcn.004056f0
test al, al
jne 0x4053f3
cmp dword [0x47a554], 0
je 0x4053f3
push 0
mov ecx, 0x47a550
call fcn.00409700
mov eax, dword [0x47a554]
cmp byte [eax + 0x54], 0
je 0x4053f3
cmp dword [eax + 0x58], 2
jb 0x4053f3
mov al, byte [eax + 0x5c]
mov byte [ebp - 0x26d], al
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x28]
push str.CreateAdminProcessByUAC_error___d_.
push eax
call fcn.00410910
add esp, 0xc
lea eax, [ebp - 0x28]
mov ecx, 0x47a550
push 0x7c
push str.RC::RCSafeAppRun::RunSafeAppAsAdmin
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhino_safe_srcproductexe_safeexe_src_saferun_rcsafeapprun.cpp
push eax
push 2
call fcn.0040a6b0
cmp byte [ebp - 0x26d], 0
je 0x4053a1
lea eax, [ebp - 0x28]
mov ecx, 0x47a550
push eax
call fcn.0040ad30
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4053df
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4053d5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405564
push edx
push ecx
call fcn.00430ae5
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 0x26d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0040e720
mov al, byte [ebp - 0x26d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00430aa4
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x405444
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x405444
push eax
call esi
mov ecx, dword [ebp - 0x274]
push 0xc8
push 0x96
push dword [ebp - 0x27c]
mov dword [ebp - 0x30], 0
call fcn.004058f0
mov byte [ebp - 0x26d], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.0040e060
cmp byte [ebp - 0x26d], 0
je 0x4052df
push edi
call esi
jmp 0x4053f3
lea ecx, [ebp - 0x26c]
call fcn.0040ffb0
cmp dword [ebp - 0x268], 6
jb 0x405664
call fcn.004089b0
mov ecx, 0x47a550
push 2
test al, al
jne 0x405590
call fcn.0040a670
mov dword [ebp - 0x274], eax
test eax, eax
je 0x405588
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
push 0x24
push str.disabled_uac_or_no_admin_os_process_
call fcn.00404970
push 0x5f
push str.RC::RCSafeAppRun::RunSafeAppAsAdmin
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhino_safe_srcproductexe_safeexe_src_saferun_rcsafeapprun.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x47a550
push eax
push 2
call fcn.0040a6b0
cmp dword [ebp - 0x274], 1
jbe 0x405534
lea eax, [ebp - 0x28]
mov ecx, 0x47a550
push eax
call fcn.0040ad30
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x405574
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40556a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40556a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00430ae5
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push edi
call esi
jmp 0x4053f3
call fcn.0040a670
mov dword [ebp - 0x274], eax
test eax, eax
je 0x4052df
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
push 0xc
push str.enabled_uac_
call fcn.00404970
push 0x66
push str.RC::RCSafeAppRun::RunSafeAppAsAdmin
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhino_safe_srcproductexe_safeexe_src_saferun_rcsafeapprun.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x47a550
push eax
push 2
call fcn.0040a6b0
cmp dword [ebp - 0x274], 1
jbe 0x40560b
lea eax, [ebp - 0x28]
mov ecx, 0x47a550
push eax
call fcn.0040ad30
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40564b
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405641
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x405641
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00430ae5
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
jmp 0x4052df
push 2
mov ecx, 0x47a550
call fcn.0040a670
mov dword [ebp - 0x274], eax
test eax, eax
je 0x405588
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
push 8
push str.xp_user_
call fcn.00404970
push 0x6c
push str.RC::RCSafeAppRun::RunSafeAppAsAdmin
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhino_safe_srcproductexe_safeexe_src_saferun_rcsafeapprun.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x47a550
push eax
push 2
call fcn.0040a6b0
cmp dword [ebp - 0x274], 1
jbe 0x405534
jmp 0x405526