Function at 0x417a22
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x467c2d
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x4947b8]
xor eax, esp
mov dword [esp + 0x280], eax
push ebx
push esi
push edi
mov eax, dword [0x4947b8]
xor eax, esp
push eax
lea eax, [esp + 0x298]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], eax
mov byte [esp + 0x5c], al
mov dword [esp + 0x2a0], eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
push 0x100
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x14]
call fcn.0041eb81
mov byte [esp + 0x2a0], 1
push dword [eax]
lea ecx, [esp + 0x78]
call fcn.004082fa
lea edx, [esp + 0x74]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2a0], 2
call fcn.0042974d
push eax
lea ecx, [esp + 0x60]
call fcn.00407ded
lea ecx, [esp + 0x2c]
call fcn.00407e25
push 0
push 1
lea ecx, [esp + 0x7c]
call fcn.004095c3
lea ecx, [esp + 0x10]
mov byte [esp + 0x2a0], 0
call fcn.0040e9e9
cmp dword [esp + 0x70], 0x10
lea eax, [esp + 0x5c]
cmovae eax, dword [esp + 0x5c]
push eax
lea eax, [esp + 0x48]
push str.SoftwareMicrosoftInternet_ExplorerLow_RightsElevationPolicy_S
push eax
call fcn.00429b41
add esp, 0xc
mov byte [esp + 0x2a0], 3
cmp dword [esp + 0x58], 8
lea eax, [esp + 0x44]
cmovae eax, dword [esp + 0x44]
push eax
lea ecx, [esi + 0x160]
push str.RegisterElevationPolicy:__S
push ecx
mov dword [esp + 0x20], ecx
call fcn.00408e53
xor eax, eax
add esp, 0xc
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
push ebx
lea eax, [esp + 0x30]
push str.Failed_to_create_key_for__s_elevation_policy
push eax
mov byte [esp + 0x2ac], 4
call fcn.004299b0
mov edi, eax
mov byte [esp + 0x2ac], 5
cmp dword [esp + 0x64], 8
lea ecx, [esp + 0x50]
cmovae ecx, dword [esp + 0x50]
xor eax, eax
cmp byte [esi + 0x4d], al
mov dword [esp], 0x2001f
sete al
push ecx
push ecx
push ecx
lea ecx, [esp + 0x34]
add eax, 0x80000001
push eax
call fcn.0040c6bd
cmp dword [edi + 0x14], 0x10
jb 0x417bcb
mov edi, dword [edi]
mov edx, edi
mov ecx, eax
call fcn.00426e1d
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2a0], 4
call fcn.00407e25
push ebx
lea eax, [esp + 0x30]
push str.Failed_to_create_AppName_for__s_elevation_policy
push eax
call fcn.004299b0
add esp, 0xc
mov esi, eax
push 1
push ebx
push str.AppName
lea ecx, [esp + 0x28]
mov byte [esp + 0x2ac], 6
call fcn.0040c605
cmp dword [esi + 0x14], 0x10
jb 0x417c1b
mov esi, dword [esi]
mov edx, esi
mov ecx, eax
call fcn.00426e1d
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2a0], 4
call fcn.00407e25
push ebx
lea eax, [esp + 0x30]
push str.Failed_to_create_Policy_for__s_elevation_policy
push eax
call fcn.004299b0
add esp, 0xc
mov esi, eax
push 4
lea eax, [esp + 0x14]
push eax
push 4
push 0
mov byte [esp + 0x2b0], 7
mov edi, dword [esp + 0x2c]
push str.Policy
push edi
mov dword [esp + 0x28], 3
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [esi + 0x14], 0x10
jb 0x417c7d
mov esi, dword [esi]
mov edx, esi
mov ecx, eax
call fcn.00426e1d
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2a0], 4
call fcn.00407e25
push ebx
lea eax, [esp + 0x30]
push str.Failed_to_create_AppPath_for__s_elevation_policy
push eax
call fcn.004299b0
add esp, 0xc
mov esi, eax
push 1
push dword [esp + 0x1c]
lea ecx, [esp + 0x24]
push str.AppPath
mov byte [esp + 0x2ac], 8
call fcn.0040c605
cmp dword [esi + 0x14], 0x10
jb 0x417cd0
mov esi, dword [esi]
mov edx, esi
mov ecx, eax
call fcn.00426e1d
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2a0], 4
call fcn.00407e25
test edi, edi
je 0x417cfb
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [esp + 0x1c], edi
and dword [esp + 0x20], 0
push str.ieframe.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x417d44
push str.IERefreshElevationPolicy
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x417d27
call eax
mov esi, eax
jmp 0x417d3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x417d58
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x417d6e
push esi
push str.WARNING:_RefreshPolicies_failed___HR0x_X
push dword [esp + 0x1c]
call fcn.00408e53
add esp, 0xc
test edi, edi
je 0x417d79
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 1
lea ecx, [esp + 0x4c]
call fcn.004095c3
lea ecx, [esp + 0x5c]
call fcn.00407e25
mov ecx, dword [esp + 0x298]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x280]
xor ecx, esp
call fcn.004492e4
mov esp, ebp
pop ebp
ret 8