Function at 0x476330
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da600
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe90
push ebx
push esi
push edi
lea eax, [ebp - 0x34]
mov dword [ebp - 0x10], esp
push eax
xor ebx, ebx
push str.SOFTWAREMicrosoftInternet_ExplorerExtensions
mov dword [ebp - 0x38], ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp dword [ebp - 0x34], ebx
je 0x476d00
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x67a]
mov word [ebp - 0x67c], bx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x4c], 0x104
stosw word es:[edi], ax
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x4c]
lea edx, [ebp - 0x67c]
push ecx
mov ecx, dword [ebp - 0x34]
push edx
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_SHEnumKeyExW]
test eax, eax
jne 0x476cf6
mov ecx, 0x81
lea edi, [ebp - 0xa8a]
mov word [ebp - 0xa8c], bx
mov word [ebp - 0x474], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x472]
mov word [ebp - 0x26c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x26a]
mov edx, dword [ebp - 0x3c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0xc92]
mov word [ebp - 0xc94], bx
rep stosd dword es:[edi], eax
inc edx
mov dword [ebp - 0x4c], 0x208
stosw word es:[edi], ax
mov dword [ebp - 0x3c], edx
mov edx, dword [0x4ed0fc]
mov eax, str.SOFTWAREMicrosoftInternet_ExplorerExtensions
mov dword [ebp - 0x1c], edx
test eax, eax
je 0x47648d
mov ecx, eax
shr ecx, 0x10
jne 0x476456
xor eax, eax
mov edx, str.SOFTWAREMicrosoftInternet_ExplorerExtensions
mov ax, dx
lea ecx, [ebp - 0x1c]
push eax
call fcn.00406b70
jmp 0x47648d
push str.SOFTWAREMicrosoftInternet_ExplorerExtensions
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
cmp esi, ebx
je 0x47648d
push esi
lea ecx, [ebp - 0x1c]
call fcn.00406580
test eax, eax
je 0x47648d
mov edi, dword [ebp - 0x1c]
lea ecx, [esi + esi]
mov eax, ecx
mov esi, str.SOFTWAREMicrosoftInternet_ExplorerExtensions
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], ebx
push ecx
push 1
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x30], 0x5c
call fcn.00406810
lea edx, [ebp - 0x67c]
test edx, edx
jne 0x4764b3
xor eax, eax
jmp 0x4764c0
lea eax, [ebp - 0x67c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x67c]
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.00406810
lea edx, [ebp - 0x20]
lea eax, [ebp - 0xa8c]
push edx
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x28]
push eax
push ecx
push str.CLSID
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x20], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp - 0xa8c]
push str.1FBA04EE_3024_11D2_8F1F_0000F87ABD16
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x476ce0
mov ecx, dword [ebp - 0x38]
push 4
call fcn.00477580
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x64], ebx
je 0x476ce0
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x474]
push ecx
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x28]
push edx
push eax
push str.ButtonText
mov edi, 0x208
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x20], edi
call esi
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x26c]
push edx
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x28]
push eax
push ecx
push str.Icon
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x20], edi
call esi
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0xc94]
push eax
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x28]
push ecx
push edx
push str.Exec
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x20], edi
call esi
test eax, eax
jne 0x4765b3
mov dword [ebx + 0x34], 3
jmp 0x476609
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0xc94]
push ecx
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x28]
push edx
push eax
push str.Script
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x4765df
mov dword [ebx + 0x34], 1
jmp 0x476609
lea edx, [ebp - 0x20]
lea eax, [ebp - 0xa8c]
push edx
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x28]
push eax
push ecx
push str.ClsidExtension
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x476609
mov dword [ebx + 0x34], 2
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
je 0x476cd7
cmp dword [ebx + 0x34], 2
je 0x476cd7
push ecx
mov ecx, dword [0x4ed0fc]
mov edi, esp
lea edx, [ebp - 0x26c]
test edx, edx
mov dword [ebp - 0x30], esp
mov dword [edi], ecx
je 0x47669b
lea eax, [ebp - 0x26c]
shr eax, 0x10
jne 0x476663
xor eax, eax
lea ecx, [ebp - 0x26c]
mov ax, cx
mov ecx, edi
push eax
call fcn.00406b70
jmp 0x47669b
lea edx, [ebp - 0x26c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x47669b
push esi
mov ecx, edi
call fcn.00406580
test eax, eax
je 0x47669b
mov edi, dword [edi]
lea ecx, [esi + esi]
mov eax, ecx
lea esi, [ebp - 0x26c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x38]
call fcn.00477b10
test eax, eax
mov dword [ebp - 0x30], eax
je 0x476cd7
mov ecx, dword [0x4ed0fc]
lea edx, [ebp - 0x474]
test edx, edx
mov dword [ebp - 0x18], ecx
je 0x47671c
lea eax, [ebp - 0x474]
shr eax, 0x10
jne 0x4766e2
xor eax, eax
lea ecx, [ebp - 0x474]
mov ax, cx
lea ecx, [ebp - 0x18]
push eax
call fcn.00406b70
jmp 0x47671c
lea edx, [ebp - 0x474]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x47671c
push esi
lea ecx, [ebp - 0x18]
call fcn.00406580
test eax, eax
je 0x47671c
mov edi, dword [ebp - 0x18]
lea ecx, [esi + esi]
mov eax, ecx
lea esi, [ebp - 0x474]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x4ed0fc]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x18]
mov byte [ebp - 4], 2
cmp word [edx], 0x40
jne 0x476bef
push 0
push str..dll
lea ecx, [ebp - 0x18]
call fcn.0040fd70
cmp eax, 0xffffffff
je 0x476bef
push 0
push 0x4ee8a8
lea ecx, [ebp - 0x18]
call fcn.0040fd70
cmp eax, 0xffffffff
je 0x476bef
xor esi, esi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0xe9a]
mov word [ebp - 0xe9c], si
mov word [ebp - 0x884], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x882]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0xe9c]
lea ecx, [ebp - 0xc94]
push eax
push ecx
call fcn.004a8fc0
mov eax, dword [0x4ed0fc]
add esp, 8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], eax
push esi
push 0x2c
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.0042e510
inc eax
lea edx, [ebp - 0x58]
push eax
push edx
lea ecx, [ebp - 0x18]
call fcn.0040fa60
mov esi, eax
mov eax, dword [esi]
mov ecx, dword [ebp - 0x2c]
cmp ecx, eax
mov byte [ebp - 4], 5
je 0x476826
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4767f9
mov edx, dword [0x4ed100]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x476800
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x47680f
push eax
mov eax, dword [eax - 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00406780
jmp 0x476826
lea ecx, [ebp - 0x2c]
call fcn.00406610
mov esi, dword [esi]
mov dword [ebp - 0x2c], esi
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [ebp - 0x58]
mov edx, dword [0x4ed100]
mov byte [ebp - 4], 4
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x47685b
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x476861
mov edx, dword [ebp - 0x58]
lea eax, [edx - 0xc]
push eax
call fcn.004d4cc1
add esp, 4
jmp 0x476861
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push 0
push 0x2c
lea ecx, [ebp - 0x18]
call fcn.0042e510
dec eax
lea ecx, [ebp - 0x18]
push eax
lea eax, [ebp - 0x60]
push 1
push eax
call fcn.0040fa90
mov esi, eax
mov eax, dword [esi]
mov ecx, dword [ebp - 0x24]
cmp ecx, eax
mov byte [ebp - 4], 6
je 0x4768cd
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4768a0
mov edx, dword [0x4ed100]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4768a7
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4768b6
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [ebp - 0x24]
call fcn.00406780
jmp 0x4768cd
lea ecx, [ebp - 0x24]
call fcn.00406610
mov esi, dword [esi]
mov dword [ebp - 0x24], esi
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [ebp - 0x60]
mov ecx, dword [0x4ed100]
mov byte [ebp - 4], 4
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4768fa
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4768fa
mov eax, dword [ebp - 0x60]
add eax, 0xfffffff4
push eax
call fcn.004d4cc1
add esp, 4
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0xe9c]
push ecx
lea eax, [ebp - 0x40]
push edx
push eax
call fcn.00443ef0
mov esi, eax
mov eax, dword [esi]
mov ecx, dword [ebp - 0x14]
cmp ecx, eax
mov byte [ebp - 4], 7
je 0x47695e
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x476931
mov edx, dword [0x4ed100]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x476938
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x476947
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.00406780
jmp 0x47695e
lea ecx, [ebp - 0x14]
call fcn.00406610
mov esi, dword [esi]
mov dword [ebp - 0x14], esi
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [ebp - 0x40]
mov ecx, dword [0x4ed100]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x476987
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x476987
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff4
push eax
call fcn.004d4cc1
add esp, 4
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 8
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
jne 0x476b70
mov edi, dword [ebp - 0x38]
push 0x4ef314
lea eax, [ebp - 0x54]
lea edx, [edi + 0x8dc]
push edx
push eax
call fcn.00443d70
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x5c]
push ecx
push eax
push edx
mov byte [ebp - 4], 9
call fcn.004743f0
mov esi, eax
mov eax, dword [esi]
mov ecx, dword [ebp - 0x14]
cmp ecx, eax
mov byte [ebp - 4], 0xa
je 0x476a19
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4769ec
mov edx, dword [0x4ed100]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4769f3
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x476a02
push eax
mov eax, dword [eax - 8]
push eax
lea ecx, [ebp - 0x14]
call fcn.00406780
jmp 0x476a19
lea ecx, [ebp - 0x14]
call fcn.00406610
mov esi, dword [esi]
mov dword [ebp - 0x14], esi
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [ebp - 0x5c]
mov edx, dword [0x4ed100]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x476a46
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x476a46
mov edx, dword [ebp - 0x5c]
lea eax, [edx - 0xc]
push eax
call fcn.004d4cc1
add esp, 4
mov eax, dword [ebp - 0x54]
mov edx, dword [0x4ed100]
mov byte [ebp - 4], 8
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x476a77
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x476a77
mov edx, dword [ebp - 0x54]
lea eax, [edx - 0xc]
push eax
call fcn.004d4cc1
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
jne 0x476b70
add edi, 0x8e0
push 0x4ef314
lea ecx, [ebp - 0x50]
push edi
push ecx
call fcn.00443d70
lea edx, [ebp - 0x24]
mov byte [ebp - 4], 0xb
push edx
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004743f0
mov esi, eax
mov eax, dword [esi]
mov ecx, dword [ebp - 0x14]
cmp ecx, eax
mov byte [ebp - 4], 0xc
je 0x476b02
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x476ad5
mov edx, dword [0x4ed100]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x476adc
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x476aeb
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.00406780
jmp 0x476b02
lea ecx, [ebp - 0x14]
call fcn.00406610
mov esi, dword [esi]
mov dword [ebp - 0x14], esi
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [ebp - 0x48]
mov ecx, dword [0x4ed100]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x476b2f
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x476b2f
mov eax, dword [ebp - 0x48]
add eax, 0xfffffff4
push eax
call fcn.004d4cc1
add esp, 4
mov eax, dword [ebp - 0x50]
mov edx, dword [0x4ed100]
mov byte [ebp - 4], 8
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x476b60
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x476b60
mov edx, dword [ebp - 0x50]
lea eax, [edx - 0xc]
push eax
call fcn.004d4cc1
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x476bd4
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x884]
push 0x103
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__wtoi]
add esp, 4
neg eax
push eax
push esi
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x884]
test eax, eax
je 0x476baa
lea ecx, [ebp - 0x884]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [ebp - 0x884]
lea ecx, [ebp - 0x18]
push edx
push eax
call fcn.00406780
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x476bd4
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 3
call fcn.00406750
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00406750
mov eax, dword [ebp - 0x30]
mov edi, dword [ebp - 0x38]
push eax
mov ecx, edi
call fcn.00477dd0
mov ecx, dword [ebp - 0x30]
mov esi, eax
push ecx
call dword [sym.imp.USER32.dll_DestroyIcon]
lea edx, [ebp - 0xc94]
lea ecx, [ebx + 0x4c]
push edx
call fcn.0040f830
lea ecx, [edi + 0x8c4]
mov dword [ebx + 0x38], esi
call fcn.004bdb40
inc eax
lea ecx, [ebx + 0x48]
mov dword [ebx + 0x3c], eax
lea eax, [ebp - 0xa8c]
push eax
call fcn.0040f830
lea ecx, [ebp - 0x18]
mov dword [ebx + 0x30], 4
push ecx
lea ecx, [ebx + 0x44]
call fcn.0040f740
lea edx, [ebp - 0x67c]
lea ecx, [ebx + 0x14]
push edx
call fcn.0040f830
lea eax, [ebp - 0x44]
push reloc.DSOUND.dll_DirectSoundCreate
lea ecx, [ebp - 0x67c]
push eax
mov esi, 1
push ecx
push str.PlugIn
mov dword [ebp - 0x44], esi
mov dword [ebx + 0x10], 0
call fcn.004af430
add esp, 0x10
test eax, eax
je 0x476c93
cmp dword [ebp - 0x44], esi
jne 0x476c93
mov dword [ebx + 0x10], esi
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x476ca1
mov dword [ebx + 0x3c], 0xffffffff
push ebx
mov ecx, edi
call fcn.00479230
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.00406750
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.00406750
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.00406750
xor ebx, ebx
jmp 0x47639b
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx + 0x10]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.00406750
xor ebx, ebx
jmp 0x47639b
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret