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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9060
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 0x475230
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 0x475226
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 [0x4eb4c0]
mov eax, str.SOFTWAREMicrosoftInternet_ExplorerExtensions
mov dword [ebp - 0x1c], edx
test eax, eax
je 0x4749bd
mov ecx, eax
shr ecx, 0x10
jne 0x474986
xor eax, eax
mov edx, str.SOFTWAREMicrosoftInternet_ExplorerExtensions
mov ax, dx
lea ecx, [ebp - 0x1c]
push eax
call fcn.00407b70
jmp 0x4749bd
push str.SOFTWAREMicrosoftInternet_ExplorerExtensions
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
cmp esi, ebx
je 0x4749bd
push esi
lea ecx, [ebp - 0x1c]
call fcn.00407580
test eax, eax
je 0x4749bd
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.00407810
lea edx, [ebp - 0x67c]
test edx, edx
jne 0x4749e3
xor eax, eax
jmp 0x4749f0
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.00407810
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 0x475210
mov ecx, dword [ebp - 0x38]
push 4
call fcn.00475ab0
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x64], ebx
je 0x475210
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 0x474ae3
mov dword [ebx + 0x34], 3
jmp 0x474b39
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 0x474b0f
mov dword [ebx + 0x34], 1
jmp 0x474b39
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 0x474b39
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 0x475207
cmp dword [ebx + 0x34], 2
je 0x475207
push ecx
mov ecx, dword [0x4eb4c0]
mov edi, esp
lea edx, [ebp - 0x26c]
test edx, edx
mov dword [ebp - 0x30], esp
mov dword [edi], ecx
je 0x474bcb
lea eax, [ebp - 0x26c]
shr eax, 0x10
jne 0x474b93
xor eax, eax
lea ecx, [ebp - 0x26c]
mov ax, cx
mov ecx, edi
push eax
call fcn.00407b70
jmp 0x474bcb
lea edx, [ebp - 0x26c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x474bcb
push esi
mov ecx, edi
call fcn.00407580
test eax, eax
je 0x474bcb
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.00476040
test eax, eax
mov dword [ebp - 0x30], eax
je 0x475207
mov ecx, dword [0x4eb4c0]
lea edx, [ebp - 0x474]
test edx, edx
mov dword [ebp - 0x18], ecx
je 0x474c4c
lea eax, [ebp - 0x474]
shr eax, 0x10
jne 0x474c12
xor eax, eax
lea ecx, [ebp - 0x474]
mov ax, cx
lea ecx, [ebp - 0x18]
push eax
call fcn.00407b70
jmp 0x474c4c
lea edx, [ebp - 0x474]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x474c4c
push esi
lea ecx, [ebp - 0x18]
call fcn.00407580
test eax, eax
je 0x474c4c
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 [0x4eb4c0]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x18]
mov byte [ebp - 4], 2
cmp word [edx], 0x40
jne 0x47511f
push 0
push str..dll
lea ecx, [ebp - 0x18]
call fcn.00410b90
cmp eax, 0xffffffff
je 0x47511f
push 0
push 0x4eccb4
lea ecx, [ebp - 0x18]
call fcn.00410b90
cmp eax, 0xffffffff
je 0x47511f
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.004a7c70
mov eax, dword [0x4eb4c0]
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.0042e150
inc eax
lea edx, [ebp - 0x58]
push eax
push edx
lea ecx, [ebp - 0x18]
call fcn.00410880
mov esi, eax
mov eax, dword [esi]
mov ecx, dword [ebp - 0x2c]
cmp ecx, eax
mov byte [ebp - 4], 5
je 0x474d56
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x474d29
mov edx, dword [0x4eb24c]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x474d30
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x474d3f
push eax
mov eax, dword [eax - 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00407780
jmp 0x474d56
lea ecx, [ebp - 0x2c]
call fcn.00407610
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 [0x4eb24c]
mov byte [ebp - 4], 4
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x474d8b
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x474d91
mov edx, dword [ebp - 0x58]
lea eax, [edx - 0xc]
push eax
call fcn.004d3765
add esp, 4
jmp 0x474d91
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push 0
push 0x2c
lea ecx, [ebp - 0x18]
call fcn.0042e150
dec eax
lea ecx, [ebp - 0x18]
push eax
lea eax, [ebp - 0x60]
push 1
push eax
call fcn.004108b0
mov esi, eax
mov eax, dword [esi]
mov ecx, dword [ebp - 0x24]
cmp ecx, eax
mov byte [ebp - 4], 6
je 0x474dfd
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x474dd0
mov edx, dword [0x4eb24c]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x474dd7
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x474de6
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [ebp - 0x24]
call fcn.00407780
jmp 0x474dfd
lea ecx, [ebp - 0x24]
call fcn.00407610
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 [0x4eb24c]
mov byte [ebp - 4], 4
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x474e2a
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x474e2a
mov eax, dword [ebp - 0x60]
add eax, 0xfffffff4
push eax
call fcn.004d3765
add esp, 4
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0xe9c]
push ecx
lea eax, [ebp - 0x40]
push edx
push eax
call fcn.00442b60
mov esi, eax
mov eax, dword [esi]
mov ecx, dword [ebp - 0x14]
cmp ecx, eax
mov byte [ebp - 4], 7
je 0x474e8e
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x474e61
mov edx, dword [0x4eb24c]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x474e68
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x474e77
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.00407780
jmp 0x474e8e
lea ecx, [ebp - 0x14]
call fcn.00407610
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 [0x4eb24c]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x474eb7
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x474eb7
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff4
push eax
call fcn.004d3765
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 0x4750a0
mov edi, dword [ebp - 0x38]
push 0x4ee640
lea eax, [ebp - 0x54]
lea edx, [edi + 0x8dc]
push edx
push eax
call fcn.004429e0
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x5c]
push ecx
push eax
push edx
mov byte [ebp - 4], 9
call fcn.00472ab0
mov esi, eax
mov eax, dword [esi]
mov ecx, dword [ebp - 0x14]
cmp ecx, eax
mov byte [ebp - 4], 0xa
je 0x474f49
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x474f1c
mov edx, dword [0x4eb24c]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x474f23
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x474f32
push eax
mov eax, dword [eax - 8]
push eax
lea ecx, [ebp - 0x14]
call fcn.00407780
jmp 0x474f49
lea ecx, [ebp - 0x14]
call fcn.00407610
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 [0x4eb24c]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x474f76
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x474f76
mov edx, dword [ebp - 0x5c]
lea eax, [edx - 0xc]
push eax
call fcn.004d3765
add esp, 4
mov eax, dword [ebp - 0x54]
mov edx, dword [0x4eb24c]
mov byte [ebp - 4], 8
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x474fa7
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x474fa7
mov edx, dword [ebp - 0x54]
lea eax, [edx - 0xc]
push eax
call fcn.004d3765
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
jne 0x4750a0
add edi, 0x8e0
push 0x4ee640
lea ecx, [ebp - 0x50]
push edi
push ecx
call fcn.004429e0
lea edx, [ebp - 0x24]
mov byte [ebp - 4], 0xb
push edx
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00472ab0
mov esi, eax
mov eax, dword [esi]
mov ecx, dword [ebp - 0x14]
cmp ecx, eax
mov byte [ebp - 4], 0xc
je 0x475032
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x475005
mov edx, dword [0x4eb24c]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x47500c
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x47501b
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.00407780
jmp 0x475032
lea ecx, [ebp - 0x14]
call fcn.00407610
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 [0x4eb24c]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x47505f
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x47505f
mov eax, dword [ebp - 0x48]
add eax, 0xfffffff4
push eax
call fcn.004d3765
add esp, 4
mov eax, dword [ebp - 0x50]
mov edx, dword [0x4eb24c]
mov byte [ebp - 4], 8
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x475090
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x475090
mov edx, dword [ebp - 0x50]
lea eax, [edx - 0xc]
push eax
call fcn.004d3765
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x475104
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 0x4750da
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.00407780
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x475104
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 3
call fcn.00407750
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00407750
mov eax, dword [ebp - 0x30]
mov edi, dword [ebp - 0x38]
push eax
mov ecx, edi
call fcn.00476300
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.00410650
lea ecx, [edi + 0x8c4]
mov dword [ebx + 0x38], esi
call fcn.004bb6a0
inc eax
lea ecx, [ebx + 0x48]
mov dword [ebx + 0x3c], eax
lea eax, [ebp - 0xa8c]
push eax
call fcn.00410650
lea ecx, [ebp - 0x18]
mov dword [ebx + 0x30], 4
push ecx
lea ecx, [ebx + 0x44]
call fcn.00410560
lea edx, [ebp - 0x67c]
lea ecx, [ebx + 0x14]
push edx
call fcn.00410650
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.004ae0e0
add esp, 0x10
test eax, eax
je 0x4751c3
cmp dword [ebp - 0x44], esi
jne 0x4751c3
mov dword [ebx + 0x10], esi
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x4751d1
mov dword [ebx + 0x3c], 0xffffffff
push ebx
mov ecx, edi
call fcn.00477760
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.00407750
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.00407750
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.00407750
xor ebx, ebx
jmp 0x4748cb
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx + 0x10]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.00407750
xor ebx, ebx
jmp 0x4748cb
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