Function at 0x460f80
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55b008
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x5c7cec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x5cd61c]
xor bh, bh
test eax, eax
jne 0x461155
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x6c], 0x104
mov dword [ebp - 0x68], 0x104
mov dword [ebp - 0x64], eax
call fcn.00461310
mov edi, eax
test edi, edi
je 0x4612f7
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x5677a4]
mov ecx, edi
call esi
lea esi, [eax + 0x10]
mov dword [ebp - 0x60], esi
lea eax, [ebp - 0x64]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftInternet_Explorer
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x461125
mov edx, dword [ebp - 0x68]
test edx, edx
js 0x461301
mov eax, dword [esi - 8]
mov edi, 1
mov ecx, edi
sub eax, edx
sub ecx, dword [esi - 4]
or eax, ecx
jge 0x46104e
push edx
lea ecx, [ebp - 0x60]
call fcn.00461490
mov esi, dword [ebp - 0x60]
lea eax, [ebp - 0x68]
push eax
push esi
push 0
push 0
push str.svcVersion
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4610a6
cmp dword [ebp - 0x68], eax
jbe 0x46111c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x5cd61c
push str._u._u._u._u
push esi
call fcn.00461650
add esp, 0x18
cmp eax, 4
je 0x46111c
mov dword [0x5cd61c], 0
jmp 0x46111c
mov ecx, dword [ebp - 0x6c]
test ecx, ecx
js 0x461301
mov eax, dword [esi - 8]
sub edi, dword [esi - 4]
sub eax, ecx
or eax, edi
jge 0x4610c9
push ecx
lea ecx, [ebp - 0x60]
call fcn.00461490
mov esi, dword [ebp - 0x60]
lea eax, [ebp - 0x6c]
push eax
push esi
push 0
push 0
push str.Version
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46111c
cmp dword [ebp - 0x6c], eax
jbe 0x46111c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x5cd61c
push str._u._u._u._u
push esi
call fcn.00461650
mov ecx, dword [0x5cd61c]
xor edx, edx
add esp, 0x18
cmp eax, 4
cmovne ecx, edx
mov dword [0x5cd61c], ecx
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x461150
mov edi, dword [esi]
push esi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x5677a4]
mov ecx, edi
call esi
mov eax, dword [0x5cd61c]
cmp eax, 7
ja 0x461206
cmp dword [ebp + 8], 0
je 0x4612d9
mov ecx, dword [0x5ccda4]
lea eax, [ebp - 0x5c]
push 0x31
push eax
call fcn.00491b8e
mov edi, dword [0x5ccda4]
mov dword [ebp - 4], 1
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov bl, byte [edi + 0x49]
push esi
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, 0x10
mov byte [ebp - 4], 1
test bl, bl
mov eax, 3
cmovne eax, ecx
mov ecx, dword [0x5ccda4]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00491b8e
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x44]
push 0x30
cmovae ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x5c]
cmp dword [ebp - 0x48], 8
push ecx
cmovae eax, dword [ebp - 0x5c]
mov ecx, dword [0x5ccda4]
push eax
mov byte [ebp - 4], 3
call fcn.004c44f0
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x44]
call fcn.00408e50
lea ecx, [ebp - 0x5c]
call fcn.00408e50
jmp 0x4612d9
cmp byte [0x5cd620], 0
je 0x461216
mov bh, 1
jmp 0x4612d9
push eax
call fcn.004628b0
add esp, 4
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], 0
push 0
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push str.SOFTWAREMicrosoftInternet_ExplorerMainFeatureControlFEATURE_BROWSER_EMULATION
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4612d9
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x28], 4
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 4
push eax
push 0
push 0x5698c8
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x4612a4
push 4
lea eax, [ebp - 0x14]
push eax
push 4
push 0
push 0x5698c8
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4612d0
jmp 0x4612c8
test eax, eax
jne 0x4612d0
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x14]
je 0x4612c8
push 4
lea eax, [ebp - 0x14]
push eax
push 4
push 0
push 0x5698c8
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov bh, 1
mov byte [0x5cd620], bh
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bh
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040154f
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004791f0
push 0x80070057
call fcn.004791f0
int3