Function at 0x41561a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4627e1
mov eax, dword fs:[0]
push eax
sub esp, 0x2a0
mov eax, dword [0x488180]
xor eax, esp
mov dword [esp + 0x298], eax
push ebx
push esi
push edi
mov eax, dword [0x488180]
xor eax, esp
push eax
lea eax, [esp + 0x2b0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov edi, ecx
xor ebx, ebx
push ebx
lea ecx, [esp + 0x8c]
mov dword [esp + 0x20], eax
mov dword [esp + 0xa4], 0xf
call fcn.0040a537
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0x2bc], ebx
call dword [sym.imp.ole32.dll_CoCreateGuid]
push 0x100
lea eax, [esp + 0xa8]
push eax
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea eax, [esp + 0xa4]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00410833
mov byte [esp + 0x2b8], 1
push dword [eax]
lea esi, [esp + 0x44]
call fcn.0040858a
mov edx, esi
lea ecx, [esp + 0x24]
mov byte [esp + 0x2b8], 2
call fcn.0042a4b5
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x94]
mov byte [esp + 0x2c4], 3
call fcn.00409640
push ebx
push 1
lea ecx, [esp + 0x2c]
call fcn.004097af
push ebx
push 1
call fcn.00409a53
lea eax, [esp + 0x14]
mov byte [esp + 0x2b8], bl
call fcn.0040f17c
cmp dword [esp + 0xa0], 0x10
mov eax, dword [esp + 0x8c]
jae 0x41573a
lea eax, [esp + 0x8c]
push eax
push str.SoftwareMicrosoftInternet_ExplorerLow_RightsElevationPolicy_S
lea esi, [esp + 0x74]
call fcn.0042a83f
pop ecx
pop ecx
mov byte [esp + 0x2b8], 4
cmp dword [esp + 0x84], 8
mov eax, dword [esp + 0x70]
jae 0x415765
lea eax, [esp + 0x70]
push eax
lea esi, [edi + 0x188]
push str.RegisterElevationPolicy:__S
mov dword [esp + 0x28], esi
call fcn.0040939b
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
push dword [esp + 0x20]
lea esi, [esp + 0x30]
push str.Failed_to_create_key_for__s_elevation_policy
mov byte [esp + 0x2c8], 5
call fcn.0042a6df
add esp, 0x10
mov esi, eax
mov byte [esp + 0x2b8], 6
cmp dword [esp + 0x84], 8
mov eax, dword [esp + 0x70]
jae 0x4157bb
lea eax, [esp + 0x70]
push eax
xor eax, eax
cmp byte [edi + 0x59], bl
lea ecx, [esp + 0x60]
sete al
add eax, 0x80000001
push eax
mov eax, 0x2001f
call fcn.0040cf3a
push eax
mov eax, esi
call fcn.00427086
pop ecx
push ebx
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2c0], 5
call fcn.004097af
mov edi, dword [esp + 0x18]
push edi
push str.Failed_to_create_AppName_for__s_elevation_policy
lea esi, [esp + 0x2c]
call fcn.0042a6df
pop ecx
pop ecx
mov esi, eax
push 1
push edi
push str.AppName
lea eax, [esp + 0x68]
push eax
mov byte [esp + 0x2c8], 7
call fcn.0040cf04
push eax
mov eax, esi
call fcn.00427086
pop ecx
push ebx
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2c0], 5
call fcn.004097af
push edi
push str.Failed_to_create_Policy_for__s_elevation_policy
lea esi, [esp + 0x2c]
call fcn.0042a6df
pop ecx
pop ecx
mov esi, eax
push 4
lea eax, [esp + 0x18]
push eax
push 4
push ebx
mov byte [esp + 0x2c8], 8
push str.Policy
push dword [esp + 0x70]
mov dword [esp + 0x2c], 3
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push eax
mov eax, esi
call fcn.00427086
pop ecx
push ebx
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2c0], 5
call fcn.004097af
push edi
push str.Failed_to_create_AppPath_for__s_elevation_policy
lea esi, [esp + 0x2c]
call fcn.0042a6df
pop ecx
pop ecx
mov esi, eax
push 1
push dword [esp + 0x20]
mov byte [esp + 0x2c0], 9
push str.AppPath
lea eax, [esp + 0x68]
push eax
call fcn.0040cf04
push eax
mov eax, esi
call fcn.00427086
pop ecx
push ebx
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2c0], 5
call fcn.004097af
cmp dword [esp + 0x5c], ebx
je 0x4158fd
push dword [esp + 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x5c], ebx
push str.ieframe.dll
mov dword [esp + 0x64], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
je 0x415946
push str.IERefreshElevationPolicy
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x415926
call eax
jmp 0x415930
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jg 0x415934
mov esi, eax
jmp 0x41593d
movzx esi, ax
or esi, 0x80070000
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x41595d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jg 0x415954
mov esi, eax
jmp 0x41595d
movzx esi, ax
or esi, 0x80070000
cmp esi, ebx
jge 0x415972
push esi
mov esi, dword [esp + 0x24]
push str.WARNING:_RefreshPolicies_failed___HR0x_X
call fcn.0040939b
pop ecx
pop ecx
cmp dword [esp + 0x5c], ebx
je 0x415982
push dword [esp + 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push 1
lea esi, [esp + 0x74]
call fcn.00409a53
push ebx
push 1
lea ecx, [esp + 0x90]
call fcn.004097af
mov ecx, dword [esp + 0x2b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x298]
xor ecx, esp
call fcn.00443d6d
mov esp, ebp
pop ebp
ret 8