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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x566a6c
mov eax, dword fs:[0]
push eax
sub esp, 0x63c
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 ebx, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.0054cbf0
mov dword [ebp - method.CFileCtrl.virtual_0], vtable.CFileCtrl.0
push ebx
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push 0x104
push eax
call fcn.0054b5e8
push str._shellopencommand
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.0054b5e8
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push eax
call fcn.0054cbf0
xor eax, eax
mov dword [ebp - 0x648], 0x104
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.0054cbf0
add esp, 0x3c
lea eax, [ebp - 0x648]
push eax
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x420]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
jne 0x413146
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.0041f3a0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x413146
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
call fcn.00412cd0
test eax, eax
je 0x41305f
lea eax, [ebp - 0x630]
mov ecx, edi
push eax
call fcn.00410830
push ebx
lea ecx, [ebp - 0x634]
mov byte [ebp - 4], 1
call fcn.004058d0
lea ecx, [ebp - 0x634]
push ecx
lea ecx, [ebp - 0x63c]
push ecx
lea ecx, [edi + 0x494]
call fcn.00414d40
push dword [ebp - 0x640]
lea ecx, [ebp - 0x644]
mov dword [ebp - 0x644], 0
push dword [ebp - 0x638]
push dword [ebp - 0x63c]
call fcn.00415710
mov edx, dword [ebp - 0x634]
add esp, 0xc
cmp dword [ebp - 0x644], 0
sete byte [ebp - 0x629]
add edx, 0xfffffff0
or esi, 0xffffffff
mov eax, esi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x412fe1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x629], 0
je 0x41303d
push ebx
lea ecx, [ebp - 0x634]
call fcn.004058d0
lea eax, [ebp - 0x634]
mov byte [ebp - 4], 2
push eax
lea ecx, [edi + 0x494]
call fcn.00414890
lea ecx, [ebp - 0x630]
push ecx
mov ecx, eax
call fcn.00409360
mov byte [ebp - 4], 1
mov ecx, esi
mov edx, dword [ebp - 0x634]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41303d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi + 0x490]
test eax, eax
je 0x413050
push eax
call fcn.0041f7c3
add esp, 4
mov dword [edi + 0x490], 0
jmp 0x41311e
push ebx
lea ecx, [ebp - 0x634]
call fcn.004058d0
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x63c]
push eax
lea ecx, [edi + 0x494]
call fcn.00414d40
push dword [ebp - 0x640]
lea ecx, [ebp - 0x630]
mov dword [ebp - 0x630], 0
push dword [ebp - 0x638]
push dword [ebp - 0x63c]
call fcn.00415710
mov edx, dword [ebp - 0x634]
add esp, 0xc
cmp dword [ebp - 0x630], 0
sete byte [ebp - 0x629]
add edx, 0xfffffff0
or esi, 0xffffffff
mov eax, esi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4130de
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x629], 0
je 0x41313f
push ebx
lea ecx, [ebp - 0x630]
call fcn.004058d0
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 3
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x630]
push eax
lea ecx, [edi + 0x494]
call fcn.00414890
mov ecx, eax
call fcn.00405880
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x630]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x41313f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
jmp 0x413148
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 4