Function at 0x4142a0
Capabilities:
Check if file exists
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x566c77
mov eax, dword fs:[0]
push eax
sub esp, 0x860
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 esi, ecx
mov ebx, dword [ebp + 0xc]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
xor edi, edi
lea eax, [ebp - 0x216]
mov dword [ebp - 0x838], 0
push eax
call fcn.0054cbf0
add esp, 0xc
mov dword [ebp - 0x858], edi
mov dword [ebp - method.CFileCtrl.virtual_0], vtable.CFileCtrl.0
mov ecx, ebx
mov dword [ebp - 4], edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414315
sub ecx, edx
sar ecx, 1
je 0x4146cd
lea eax, [ebp - 0x838]
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
push SysReAllocString
call ebx
test eax, eax
jne 0x4146bc
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
push dword [ebp - 0x838]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x4146bc
lea esp, [esp]
lea eax, [ebp - 0x858]
push eax
lea eax, [ebp - 0x218]
push eax
push SysReAllocString
call ebx
test eax, eax
jne 0x41469a
push 0x206
push eax
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push eax
call fcn.0054cbf0
mov dword [ebp - method.CFileCtrl.virtual_0], vtable.CFileCtrl.0
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x628]
push 0x104
push eax
call fcn.0054b5e8
push str._shellopencommand
lea eax, [ebp - 0x628]
push 0x104
push eax
call fcn.0054b5e8
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x830], ax
lea eax, [ebp - 0x82e]
push eax
call fcn.0054cbf0
xor eax, eax
mov dword [ebp - 0x83c], 0x104
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.0054cbf0
add esp, 0x3c
lea eax, [ebp - 0x83c]
push eax
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x628]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
jne 0x414696
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.0041f3a0
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x414696
lea eax, [ebp - 0x420]
mov ecx, esi
push eax
call fcn.00412cd0
test eax, eax
je 0x4145a6
lea eax, [ebp - 0x854]
mov ecx, esi
push eax
call fcn.00410830
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x848]
call fcn.004058d0
lea ecx, [ebp - 0x848]
push ecx
lea ecx, [ebp - 0x860]
push ecx
lea ecx, [esi + 0x494]
call fcn.00414d40
push dword [ebp - 0x840]
lea ecx, [ebp - 0x834]
mov dword [ebp - 0x834], 0
push dword [ebp - 0x85c]
push dword [ebp - 0x860]
call fcn.00415710
mov edx, dword [ebp - 0x848]
add esp, 0xc
cmp dword [ebp - 0x834], 0
sete bl
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41451c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x41457a
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x84c]
call fcn.004058d0
lea eax, [ebp - 0x84c]
mov byte [ebp - 4], 3
push eax
lea ecx, [esi + 0x494]
call fcn.00414890
lea ecx, [ebp - 0x854]
push ecx
mov ecx, eax
call fcn.00409360
mov byte [ebp - 4], 2
or ecx, 0xffffffff
mov edx, dword [ebp - 0x84c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41457a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi + 0x490]
test eax, eax
je 0x41458d
push eax
call fcn.0041f7c3
add esp, 4
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x854]
mov dword [esi + 0x490], 0
jmp 0x414670
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x850]
call fcn.004058d0
lea ecx, [ebp - 0x850]
push ecx
lea ecx, [ebp - 0x868]
push ecx
lea ecx, [esi + 0x494]
call fcn.00414d40
push dword [ebp - 0x840]
lea ecx, [ebp - 0x834]
mov dword [ebp - 0x834], 0
push dword [ebp - 0x864]
push dword [ebp - 0x868]
call fcn.00415710
mov edx, dword [ebp - 0x850]
add esp, 0xc
cmp dword [ebp - 0x834], 0
sete bl
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x414625
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x41468a
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x844]
call fcn.004058d0
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x844]
push eax
lea ecx, [esi + 0x494]
call fcn.00414890
mov ecx, eax
call fcn.00405880
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x844]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41468a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
jmp 0x41469a
mov byte [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x218]
inc edi
push eax
push edi
push dword [ebp - 0x838]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x414370
mov eax, dword [ebp - 0x838]
test eax, eax
je 0x4146cd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
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