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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a0490
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x62cf50]
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 [0x635400]
xor bh, bh
test eax, eax
jne 0x46fe1d
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x84], 0x104
mov dword [ebp - 0x80], 0x104
mov dword [ebp - 0x7c], eax
call fcn.00470080
mov edi, eax
test edi, edi
je 0x470059
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x5b1854]
mov ecx, edi
call esi
lea esi, [eax + 0x10]
mov dword [ebp - 0x78], esi
lea eax, [ebp - 0x7c]
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 0x46fdea
mov edx, dword [ebp - 0x80]
test edx, edx
js 0x470063
mov eax, dword [esi - 8]
mov edi, 1
mov ecx, edi
sub eax, edx
sub ecx, dword [esi - 4]
or eax, ecx
jge 0x46fd04
push edx
lea ecx, [ebp - 0x78]
lfence
call fcn.004701e0
mov esi, dword [ebp - 0x78]
lea eax, [ebp - 0x80]
push eax
push esi
push 0
push 0
push str.svcVersion
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46fd5f
cmp dword [ebp - 0x80], eax
jbe 0x46fde1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x635400
push str._u._u._u._u
push esi
call fcn.004703f0
add esp, 0x18
cmp eax, 4
je 0x46fde1
mov dword [0x635400], 0
jmp 0x46fde1
mov ecx, dword [ebp - 0x84]
test ecx, ecx
js 0x470063
mov eax, dword [esi - 8]
sub edi, dword [esi - 4]
sub eax, ecx
or eax, edi
jge 0x46fd88
push ecx
lea ecx, [ebp - 0x78]
lfence
call fcn.004701e0
mov esi, dword [ebp - 0x78]
lea eax, [ebp - 0x84]
push eax
push esi
push 0
push 0
push str.Version
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46fde1
cmp dword [ebp - 0x84], eax
jbe 0x46fde1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x635400
push str._u._u._u._u
push esi
call fcn.004703f0
mov ecx, dword [0x635400]
xor edx, edx
add esp, 0x18
cmp eax, 4
cmovne ecx, edx
mov dword [0x635400], ecx
push dword [ebp - 0x7c]
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 0x46fe18
lfence
mov edi, dword [esi]
push esi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x5b1854]
mov ecx, edi
call esi
mov eax, dword [0x635400]
cmp eax, 7
ja 0x46ff0b
cmp dword [ebp + 8], 0
je 0x47003b
mov ecx, dword [0x634a80]
lea eax, [ebp - 0x5c]
push 0x31
push eax
call fcn.004a6626
mov edi, dword [0x634a80]
mov dword [ebp - 4], 1
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov bl, byte [edi + 0x4d]
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 [0x634a80]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004a6626
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 [0x634a80]
push eax
mov byte [ebp - 4], 3
call fcn.004e08a0
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 4
cmp eax, 8
jb 0x46fed2
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.0040a5e0
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 4], 5
cmp eax, 8
jb 0x47003b
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.0040a5e0
jmp 0x47003b
cmp byte [0x635404], 0
je 0x46ff1b
mov bh, 1
jmp 0x47003b
push eax
call fcn.00471620
add esp, 4
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0x78], 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 0x47003b
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 4
mov dword [ebp - 0x2c], 4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.00471670
add esp, 8
cmp dword [ebp - 0x60], 8
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 6
push eax
lea eax, [ebp - 0x2c]
push eax
lea esi, [ebp - 0x74]
cmovae esi, dword [ebp - 0x74]
push 0
push esi
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x46ffc6
push 4
lea eax, [ebp - 0x14]
push eax
push 4
push 0
push esi
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x46ffee
jmp 0x46ffe6
test eax, eax
jne 0x46ffee
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x14]
je 0x46ffe6
push 4
lea eax, [ebp - 0x14]
push eax
push 4
push 0
push esi
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov bh, 1
mov byte [0x635404], bh
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x60]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x47003b
mov ecx, dword [ebp - 0x74]
lea edx, [edx*2 + 2]
mov eax, ecx
mov dword [ebp - 4], 7
cmp edx, 0x1000
jb 0x470031
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47006d
push edx
push ecx
call fcn.0040a1a2
add esp, 8
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 int.004016cd
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00484ba0
push 0x80070057
call fcn.00484ba0
call fcn.0056e2db
int3