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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa6c
mov eax, dword [0x4c4004]
xor eax, esp
mov dword [esp + 0xa68], eax
push ebx
push esi
push edi
push 0
push 0
push 0x1009
push 0x2760
push dword [0x4def88]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0xc]
push eax
push 0x20119
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts_
push 0x80000001
mov dword [esp + 0x20], 0
call esi
test eax, eax
jne 0x420ce4
xor edi, edi
mov dword [esp + 0x1c], 0x104
push edi
push edi
push edi
push edi
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x7c]
push eax
push edi
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, 0x103
je 0x420cde
inc edi
mov dword [esp + 0x1c], 0x104
cmp dword [0x4c5194], 0
mov dword [esp + 0x24], edi
je 0x420cf9
lea eax, [esp + 0x18]
push eax
push 0x20119
push 0
lea eax, [esp + 0x74]
push eax
push dword [esp + 0x1c]
call esi
test eax, eax
jne 0x420cb6
cmp word [esp + 0x68], 0x2e
jne 0x420cb0
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push 0x20119
push 0
push str.OpenWithProgids
push dword [esp + 0x28]
call esi
test eax, eax
je 0x420cb0
push dword [esp + 0x10]
call ebx
lea eax, [esp + 0x14]
push eax
push 0x20119
push 0
push str.UserChoice
push dword [esp + 0x28]
call esi
test eax, eax
jne 0x420b73
push 0x7fe
push eax
mov word [esp + 0x278], ax
lea eax, [esp + 0x27a]
push eax
call fcn.0048e880
add esp, 0xc
mov dword [esp + 0x20], 0x400
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x274]
push eax
lea eax, [esp + 0x30]
push eax
push 0
push str.Progid
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 0x14]
test eax, eax
jne 0x420b71
call ebx
jmp 0x420cb0
call ebx
lea eax, [esp + 0x10]
push eax
push 0x20119
push 0
lea eax, [esp + 0x74]
push eax
push 0x80000000
call esi
test eax, eax
je 0x420cb0
push 0x27c0
push dword [0x4def88]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0
mov ebx, eax
mov dword [0x4cfb28], 8
push 0x1004
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, 0x21
mov dword [0x4cfb10], eax
mov esi, str.HKCU:_SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts_
mov dword [0x4cfb14], 0
lea edi, [esp + 0x270]
rep movsd dword es:[edi], dword [esi]
push 0x77a
lea eax, [esp + 0x2fa]
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.0048e880
add esp, 0xc
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x274]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0x270]
push 0x4cfb0c
push 0
push 0x104d
push ebx
mov dword [0x4cfb20], eax
call esi
mov edx, 0x4af21c
mov dword [esp + 0x34], 1
mov ecx, 0x4ad9cc
call fcn.00477440
mov dword [esp + 0x40], eax
lea eax, [esp + 0x2c]
push eax
push dword [0x4cfb10]
push 0x1074
push ebx
call esi
mov edx, 0x4af21c
mov dword [esp + 0x34], 2
mov ecx, 0x4ad9cc
call fcn.00477440
mov dword [esp + 0x40], eax
lea eax, [esp + 0x2c]
push eax
push dword [0x4cfb10]
push 0x1074
push ebx
call esi
push 0x1869f
push 0
push 0x1014
push ebx
call esi
push dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [esp + 0x24]
push dword [esp + 0x18]
call ebx
push 0
push 0
push 0
push 0
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x7c]
push eax
push edi
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x420a90
push dword [esp + 0xc]
call ebx
mov ecx, dword [esp + 0xa74]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0048d925
mov esp, ebp
pop ebp
ret
call fcn.004227e0
int3