Function at 0x412560
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5669ce
mov eax, dword fs:[0]
push eax
sub esp, 0x648
mov eax, dword [0x5d51c0]
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 edi, ecx
mov dword [ebp - 0x638], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x63c], eax
mov dword [ebp - 4], 0
call fcn.004206b9
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4125c2
push 0x80004005
call fcn.00405730
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x62c], ebx
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.0054cbf0
add esp, 0xc
mov dword [ebp - 0x650], 0x104
mov dword [ebp - 0x648], 0
mov dword [ebp - 0x644], 0
mov dword [ebp - 0x640], 0
mov byte [ebp - 4], 2
lea esi, [edi + 0x494]
mov eax, dword [esi]
mov ecx, esi
push dword [eax + 4]
call fcn.00414ad0
mov eax, dword [esi]
mov dword [eax + 4], eax
mov eax, dword [esi]
mov dword [eax], eax
mov eax, dword [esi]
mov dword [eax + 8], eax
mov eax, dword [ebp + 8]
mov dword [esi + 4], 0
lea esi, [ebx - 0x10]
lea edx, [eax - 0x10]
cmp edx, esi
je 0x4126ab
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x412693
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x412693
push edx
call fcn.004092f0
add esp, 4
mov dword [ebp - 0x630], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x412688
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x630]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x62c], ebx
jmp 0x4126a8
push dword [eax - 0xc]
lea ecx, [ebp - 0x62c]
push eax
call fcn.00405780
mov ebx, dword [ebp - 0x62c]
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
je 0x412ad1
lea eax, [ebp - 0x654]
push eax
push ebx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x412ad1
lea eax, [ebp - 0x634]
push eax
push 0x20019
push 0
push 0x5b23d0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x412841
lea eax, [ebp + 8]
push str..doc
push eax
call fcn.00408f50
add esp, 8
test al, al
je 0x412715
push str.Word.Document.doc.96
jmp 0x41283a
lea eax, [ebp + 8]
push str..docx
push eax
call fcn.00408f50
add esp, 8
test al, al
je 0x412734
push str.Word.Document.docx.96
jmp 0x41283a
lea eax, [ebp + 8]
push str..odt
push eax
call fcn.00408f50
add esp, 8
test al, al
je 0x412753
push str.Word.Document.odt.96
jmp 0x41283a
lea eax, [ebp + 8]
push str..xls
push eax
call fcn.00408f50
add esp, 8
test al, al
je 0x412772
push str.HCell.Document.xls.96
jmp 0x41283a
lea eax, [ebp + 8]
push str..xlsx
push eax
call fcn.00408f50
add esp, 8
test al, al
je 0x412791
push str.HCell.Document.xlsx.96
jmp 0x41283a
lea eax, [ebp + 8]
push str..ods
push eax
call fcn.00408f50
add esp, 8
test al, al
je 0x4127b0
push str.HCell.Document.ods.96
jmp 0x41283a
lea eax, [ebp + 8]
push str..ppt
push eax
call fcn.00408f50
add esp, 8
test al, al
je 0x4127cc
push str.HSlide.Document.ppt.96
jmp 0x41283a
lea eax, [ebp + 8]
push str..pptx
push eax
call fcn.00408f50
add esp, 8
test al, al
je 0x4127e8
push str.HSlide.Document.pptx.96
jmp 0x41283a
lea eax, [ebp + 8]
push str..pps
push eax
call fcn.00408f50
add esp, 8
test al, al
je 0x412804
push str.HSlide.Document.pps.96
jmp 0x41283a
lea eax, [ebp + 8]
push str..ppsx
push eax
call fcn.00408f50
add esp, 8
test al, al
je 0x412820
push str.HSlide.Document.ppsx.96
jmp 0x41283a
lea eax, [ebp + 8]
push str..odp
push eax
call fcn.00408f50
add esp, 8
test al, al
je 0x412841
push str.HSlide.Document.odp.96
mov ecx, edi
call fcn.00412e20
lea eax, [ebp - 0x650]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
jne 0x4128a5
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
jmp 0x412870
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412870
sub ecx, edx
sar ecx, 1
je 0x4128a5
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
call fcn.00412e20
test eax, eax
je 0x4128a5
mov ecx, dword [ebp - 0x63c]
lea eax, [ebp - 0x218]
push eax
call fcn.00405880
push 0x10
push str.OpenWithProgids
lea ecx, [ebp - 0x62c]
call fcn.00408fb0
mov ebx, dword [ebp - 0x62c]
cmp dword [ebx - 4], 1
jle 0x4128d7
push dword [ebx - 0xc]
lea ecx, [ebp - 0x62c]
call fcn.00405590
mov ebx, dword [ebp - 0x62c]
lea eax, [ebp - 0x648]
push eax
push ebx
push SysReAllocString
call fcn.00413170
push dword [ebx - 8]
push ebx
call fcn.0054b654
add esp, 8
test eax, eax
js 0x412ac7
cmp eax, dword [ebx - 8]
jg 0x412ac7
xor ecx, ecx
mov dword [ebx - 0xc], eax
mov word [ebx + eax*2], cx
lea eax, [ebp - 0x648]
push eax
mov ecx, edi
call fcn.004132d0
mov ecx, 0x1e
lea edi, [ebp - 0x420]
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts_
lea eax, [ebp - 0x3a6]
rep movsd dword es:[edi], dword [esi]
push 0x18e
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.0054cbf0
mov eax, dword [ebp + 8]
add esp, 0xc
cmp dword [eax - 4], 1
jle 0x41295e
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.00405590
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.0054b5e8
mov eax, dword [ebp + 8]
push dword [eax - 8]
push eax
call fcn.0054b654
mov edx, eax
add esp, 0x14
test edx, edx
js 0x412ac7
mov ecx, dword [ebp + 8]
cmp edx, dword [ecx - 8]
jg 0x412ac7
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x634], 1
mov dword [ebp - 0x64c], 0x104
mov word [eax + edx*2], cx
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x420]
push eax
push SysReAllocString
call esi
lea eax, [ebp - 0x630]
push eax
push 0x5b1060
push dword [ebp - 0x630]
call esi
lea eax, [ebp - 0x64c]
push eax
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x634]
push eax
push 0
push str.Progid
push dword [ebp - 0x630]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [ebp - 0x638]
test eax, eax
jne 0x412a3a
lea eax, [ebp - 0x628]
mov ecx, esi
push eax
call fcn.00412e20
test eax, eax
je 0x412a3a
mov ecx, dword [ebp - 0x63c]
lea eax, [ebp - 0x628]
push eax
call fcn.00405880
push str.OpenWithProgids
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.0054b5e8
add esp, 0xc
lea eax, [ebp - 0x648]
push eax
lea eax, [ebp - 0x420]
push eax
push SysReAllocString
call fcn.00413170
lea eax, [ebp - 0x648]
mov ecx, esi
push eax
call fcn.004132d0
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x412a90
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.00405590
mov eax, dword [ebp + 8]
push eax
push ecx
mov ecx, esi
call fcn.004142a0
mov eax, dword [ebp + 8]
push dword [eax - 8]
push eax
call fcn.0054b654
mov edx, eax
add esp, 8
test edx, edx
js 0x412ac7
mov ecx, dword [ebp + 8]
cmp edx, dword [ecx - 8]
jg 0x412ac7
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp + 8]
lea edi, [ecx + 1]
mov word [eax + edx*2], cx
jmp 0x412ad3
push 0x80070057
call fcn.00405730
xor edi, edi
lea ecx, [ebp - 0x648]
call fcn.00414c20
add ebx, 0xfffffff0
mov byte [ebp - 4], 0
or ecx, 0xffffffff
lea eax, [ebx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x412afc
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x412b20
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.0054a22c
mov esp, ebp
pop ebp
ret 8