Function at 0x4124d0
Capabilities:
Delete registry value
Set registry value

Disassembly:
sub esp, 0xc
mov eax, dword [0x46b21c]
push esi
push edi
mov ecx, str.SoftwareMicrosoftInternet_ExplorerMainFeatureControlFEATURE_BROWSER_EMULATION_
xor edi, edi
mov dword [esp + 0xc], eax
test ecx, ecx
mov dword [esp + 8], edi
je 0x412527
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
cmp esi, edi
je 0x412527
push esi
lea ecx, [esp + 0x10]
call fcn.00401ce0
test eax, eax
je 0x412527
mov edx, dword [esp + 0xc]
inc esi
push esi
push str.SoftwareMicrosoftInternet_ExplorerMainFeatureControlFEATURE_BROWSER_EMULATION_
push edx
call fcn.00402650
add esp, 0xc
lea ecx, [esp + 0xc]
push 0xffffffffffffffff
call fcn.00401f50
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], edi
push eax
push 0xf003f
push edi
push ecx
push SysReAllocStringLen
call esi
cmp eax, edi
jne 0x41255d
lea ecx, [esp + 8]
call fcn.00404330
mov edx, dword [esp + 0x10]
mov dword [esp + 8], edx
cmp dword [esp + 0x1c], edi
je 0x412688
cmp eax, edi
je 0x4125bc
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
push ecx
push edi
push 0xf003f
push edi
push edi
push edi
push edx
push SysReAllocStringLen
mov dword [esp + 0x40], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
jne 0x4125a9
lea ecx, [esp + 8]
call fcn.00404330
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], eax
jmp 0x4125ad
mov eax, dword [esp + 8]
cmp eax, edi
je 0x4125bc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 8], edi
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x1c]
push eax
push 0xf003f
push edi
push ecx
push SysReAllocStringLen
mov dword [esp + 0x30], edi
call esi
test eax, eax
jne 0x4125ec
lea ecx, [esp + 8]
call fcn.00404330
mov edx, dword [esp + 0x1c]
mov dword [esp + 8], edx
lea eax, [esp + 0x1c]
push eax
call fcn.00412380
mov eax, dword [eax]
mov edx, dword [esp + 0xc]
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0x2af9
push 4
push ecx
push 4
push edi
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [0x46b220]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov esi, eax
mov eax, dword [esp + 0x1c]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41264c
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x41264c
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call fcn.00459de2
add esp, 4
mov eax, dword [esp + 0xc]
mov edx, dword [0x46b220]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x412677
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x412677
mov edx, dword [esp + 0xc]
add edx, 0xfffffff4
push edx
call fcn.00459de2
add esp, 4
lea ecx, [esp + 8]
call fcn.00404330
mov eax, esi
pop edi
pop esi
add esp, 0xc
ret
lea eax, [esp + 0x1c]
push eax
call fcn.00412380
mov eax, dword [eax]
mov ecx, dword [esp + 0xc]
add esp, 4
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [0x46b220]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov edi, eax
mov eax, dword [esp + 0x1c]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4126d6
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4126d6
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff4
push eax
call fcn.00459de2
add esp, 4
mov eax, dword [esp + 0xc]
mov edx, dword [0x46b220]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x412701
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x412701
mov edx, dword [esp + 0xc]
add edx, 0xfffffff4
push edx
call fcn.00459de2
add esp, 4
lea ecx, [esp + 8]
call fcn.00404330
mov eax, edi
pop edi
pop esi
add esp, 0xc
ret