Function at 0x41ea3f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46e811
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x49b7f8]
xor eax, esp
mov dword [esp + 0x280], eax
push ebx
push esi
push edi
mov eax, dword [0x49b7f8]
xor eax, esp
push eax
lea eax, [esp + 0x298]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x2a4], ebx
call dword [sym.imp.ole32.dll_CoCreateGuid]
push pe_nt_image_headers32
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.004132b0
mov byte [esp + 0x2a0], 1
push dword [eax]
lea ecx, [esp + 0x78]
call fcn.00408580
lea edx, [esp + 0x74]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2a0], 2
call fcn.0042f811
push eax
lea ecx, [esp + 0x60]
call fcn.00407e40
lea ecx, [esp + 0x2c]
call fcn.00404060
lea ecx, [esp + 0x74]
call fcn.00408690
lea ecx, [esp + 0x10]
mov byte [esp + 0x2a0], bl
call fcn.00410c00
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.0042fbea
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.004087a0
add esp, 0xc
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
push edi
lea eax, [esp + 0x30]
push str.Failed_to_create_key_for__s_elevation_policy
push eax
mov byte [esp + 0x2ac], 4
call fcn.0042fa5d
mov ebx, eax
mov byte [esp + 0x2ac], 5
cmp dword [esp + 0x64], 8
lea ecx, [esp + 0x50]
cmovae ecx, dword [esp + 0x50]
mov dword [esp], 0x2001f
push ecx
xor eax, eax
cmp byte [esi + 0x4d], al
push ecx
sete al
push ecx
lea ecx, [esp + 0x34]
add eax, 0x80000001
push eax
call fcn.0042cf40
cmp dword [ebx + 0x14], 0x10
jb 0x41ebe1
mov ebx, dword [ebx]
mov edx, ebx
mov ecx, eax
call fcn.0042d96a
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2a0], 4
call fcn.00404060
push edi
lea eax, [esp + 0x30]
push str.Failed_to_create_AppName_for__s_elevation_policy
push eax
call fcn.0042fa5d
add esp, 0xc
mov esi, eax
push 1
push edi
push str.AppName
lea ecx, [esp + 0x28]
mov byte [esp + 0x2ac], 6
call fcn.0040fb10
cmp dword [esi + 0x14], 0x10
jb 0x41ec31
mov esi, dword [esi]
mov edx, esi
mov ecx, eax
call fcn.0042d96a
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2a0], 4
call fcn.00404060
push edi
lea eax, [esp + 0x30]
push str.Failed_to_create_Policy_for__s_elevation_policy
push eax
call fcn.0042fa5d
add esp, 0xc
mov esi, eax
push 4
lea eax, [esp + 0x14]
push eax
push 4
push 0
mov byte [esp + 0x2b0], 7
push str.Policy
push dword [esp + 0x30]
mov dword [esp + 0x28], 3
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [esi + 0x14], 0x10
jb 0x41ec92
mov esi, dword [esi]
mov edx, esi
mov ecx, eax
call fcn.0042d96a
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2a0], 4
call fcn.00404060
push edi
lea eax, [esp + 0x30]
push str.Failed_to_create_AppPath_for__s_elevation_policy
push eax
call fcn.0042fa5d
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.0040fb10
cmp dword [esi + 0x14], 0x10
jb 0x41ece5
mov esi, dword [esi]
mov edx, esi
mov ecx, eax
call fcn.0042d96a
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2a0], 4
call fcn.00404060
lea ecx, [esp + 0x1c]
call fcn.0040fb60
push str.ieframe.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x41ed4c
push str.IERefreshElevationPolicy
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41ed2f
call eax
mov esi, eax
jmp 0x41ed43
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x41ed60
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x41ed76
push esi
push str.WARNING:_RefreshPolicies_failed___HR0x_X
push dword [esp + 0x1c]
call fcn.004087a0
add esp, 0xc
lea ecx, [esp + 0x1c]
call fcn.0040fb90
lea ecx, [esp + 0x44]
call fcn.00408690
lea ecx, [esp + 0x5c]
call fcn.00404060
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.0044f834
mov esp, ebp
pop ebp
ret 8