Function at 0x4182fa
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x469361
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x4977b8]
xor eax, esp
mov dword [esp + 0x280], eax
push ebx
push esi
push edi
mov eax, dword [0x4977b8]
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.0041f775
mov byte [esp + 0x2a0], 1
push dword [eax]
lea ecx, [esp + 0x78]
call fcn.00408227
lea edx, [esp + 0x74]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2a0], 2
call fcn.0042a731
push eax
lea ecx, [esp + 0x60]
call fcn.00407d1a
lea ecx, [esp + 0x2c]
call fcn.00407d52
push 0
push 1
lea ecx, [esp + 0x7c]
call fcn.00409522
lea ecx, [esp + 0x10]
mov byte [esp + 0x2a0], 0
call fcn.0040e8ff
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.0042ab25
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.00408d80
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.0042a994
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.0040c5d3
cmp dword [edi + 0x14], 0x10
jb 0x4184a3
mov edi, dword [edi]
mov edx, edi
mov ecx, eax
call fcn.00427e28
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2a0], 4
call fcn.00407d52
push ebx
lea eax, [esp + 0x30]
push str.Failed_to_create_AppName_for__s_elevation_policy
push eax
call fcn.0042a994
add esp, 0xc
mov esi, eax
push 1
push ebx
push str.AppName
lea ecx, [esp + 0x28]
mov byte [esp + 0x2ac], 6
call fcn.0040c51b
cmp dword [esi + 0x14], 0x10
jb 0x4184f3
mov esi, dword [esi]
mov edx, esi
mov ecx, eax
call fcn.00427e28
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2a0], 4
call fcn.00407d52
push ebx
lea eax, [esp + 0x30]
push str.Failed_to_create_Policy_for__s_elevation_policy
push eax
call fcn.0042a994
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 0x418555
mov esi, dword [esi]
mov edx, esi
mov ecx, eax
call fcn.00427e28
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2a0], 4
call fcn.00407d52
push ebx
lea eax, [esp + 0x30]
push str.Failed_to_create_AppPath_for__s_elevation_policy
push eax
call fcn.0042a994
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.0040c51b
cmp dword [esi + 0x14], 0x10
jb 0x4185a8
mov esi, dword [esi]
mov edx, esi
mov ecx, eax
call fcn.00427e28
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2a0], 4
call fcn.00407d52
test edi, edi
je 0x4185d3
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 0x41861c
push str.IERefreshElevationPolicy
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4185ff
call eax
mov esi, eax
jmp 0x418613
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 0x418630
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x418646
push esi
push str.WARNING:_RefreshPolicies_failed___HR0x_X
push dword [esp + 0x1c]
call fcn.00408d80
add esp, 0xc
test edi, edi
je 0x418651
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 1
lea ecx, [esp + 0x4c]
call fcn.00409522
lea ecx, [esp + 0x5c]
call fcn.00407d52
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.0044a9a4
mov esp, ebp
pop ebp
ret 8