Function at 0x424088
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x443aee
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x466034]
xor eax, esp
mov dword [esp + 0x280], eax
push ebx
push esi
push edi
mov eax, dword [0x466034]
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.00414ca3
mov byte [esp + 0x2a0], 1
push dword [eax]
lea ecx, [esp + 0x78]
call fcn.0040ab42
lea edx, [esp + 0x74]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2a0], 2
call fcn.0040ea53
push eax
lea ecx, [esp + 0x60]
call fcn.0040224d
lea ecx, [esp + 0x2c]
call fcn.00402286
push 0
push 1
lea ecx, [esp + 0x7c]
call fcn.0040253d
lea ecx, [esp + 0x10]
mov byte [esp + 0x2a0], 0
call fcn.00402409
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.0040ee15
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 + 0x150]
push str.RegisterElevationPolicy:__S
push ecx
mov dword [esp + 0x20], ecx
call fcn.00402357
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.0040ec9a
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.0040d9f3
cmp dword [edi + 0x14], 0x10
jb 0x424231
mov edi, dword [edi]
mov edx, edi
mov ecx, eax
call fcn.004320a9
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2a0], 4
call fcn.00402286
push ebx
lea eax, [esp + 0x30]
push str.Failed_to_create_AppName_for__s_elevation_policy
push eax
call fcn.0040ec9a
add esp, 0xc
mov esi, eax
push 1
push ebx
push str.AppName
lea ecx, [esp + 0x28]
mov byte [esp + 0x2ac], 6
call fcn.0040d93b
cmp dword [esi + 0x14], 0x10
jb 0x424281
mov esi, dword [esi]
mov edx, esi
mov ecx, eax
call fcn.004320a9
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2a0], 4
call fcn.00402286
push ebx
lea eax, [esp + 0x30]
push str.Failed_to_create_Policy_for__s_elevation_policy
push eax
call fcn.0040ec9a
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 0x4242e3
mov esi, dword [esi]
mov edx, esi
mov ecx, eax
call fcn.004320a9
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2a0], 4
call fcn.00402286
push ebx
lea eax, [esp + 0x30]
push str.Failed_to_create_AppPath_for__s_elevation_policy
push eax
call fcn.0040ec9a
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.0040d93b
cmp dword [esi + 0x14], 0x10
jb 0x424336
mov esi, dword [esi]
mov edx, esi
mov ecx, eax
call fcn.004320a9
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2a0], 4
call fcn.00402286
test edi, edi
je 0x424361
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 0x4243aa
push str.IERefreshElevationPolicy
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42438d
call eax
mov esi, eax
jmp 0x4243a1
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 0x4243be
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x4243d4
push esi
push str.WARNING:_RefreshPolicies_failed___HR0x_X
push dword [esp + 0x1c]
call fcn.00402357
add esp, 0xc
test edi, edi
je 0x4243df
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 1
lea ecx, [esp + 0x4c]
call fcn.0040253d
lea ecx, [esp + 0x5c]
call fcn.00402286
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.0043b9da
mov esp, ebp
pop ebp
ret 8