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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52971d
mov eax, dword fs:[0]
push eax
sub esp, 0x650
mov eax, dword [0x576644]
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 ebx, dword [ebp + 8]
mov dword [ebp - 0x634], ebx
test ebx, ebx
je 0x46485e
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ebx
call esi
test eax, eax
je 0x46485e
push 0x208
lea eax, [ebp - 0x628]
mov dword [ebp - 0x638], 0
push 0
push eax
call fcn.004ca680
add esp, 0xc
mov dword [ebp - 0x640], 0x208
lea ecx, [ebp - 0x648]
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Pathshalowp.exe_run_list
call fcn.00411080
mov eax, dword [ebp - 0x648]
or edi, 0xffffffff
mov dword [ebp - 4], 0
cmp dword [eax - 0xc], 0
jne 0x464472
push str.fail:get_reg_subkey_error.
call fcn.00455860
add esp, 4
jmp 0x46483c
lea ecx, [ebp - 0x638]
push ecx
push 0xf003f
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x464830
push eax
push eax
mov dword [ebp - 0x644], eax
lea eax, [ebp - 0x658]
push eax
push 0
lea eax, [ebp - 0x640]
push eax
lea eax, [ebp - 0x628]
push eax
push 0
push dword [ebp - 0x638]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x464830
nop dword [eax]
inc dword [ebp - 0x644]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
mov dword [ebp - 0x640], 0x208
call fcn.004ca680
push ebx
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004fb2e9
add esp, 0x18
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call esi
test eax, eax
je 0x4647fa
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004ca680
add esp, 0xc
mov dword [ebp - 0x65c], 0x104
lea eax, [ebp - 0x65c]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x658]
push eax
lea eax, [ebp - 0x628]
push eax
push dword [ebp - 0x648]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x630]
call fcn.00411080
mov eax, dword [ebp - 0x630]
mov byte [ebp - 4], 1
cmp dword [eax - 0xc], 0
jge 0x4645a1
or esi, 0xffffffff
jmp 0x4645d4
push str._Regtest
push eax
call fcn.004cb4f4
mov esi, eax
add esp, 8
test esi, esi
jne 0x4645ba
or esi, 0xffffffff
jmp 0x4645d4
sub esi, dword [ebp - 0x630]
sar esi, 1
cmp esi, 0xffffffff
je 0x4645d4
push str.Regtest__no_need_to_check_sign.
call fcn.00455860
add esp, 4
xor ebx, ebx
lea eax, [ebp - 0x218]
cmp esi, 0xffffffff
push eax
sete bl
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
lea ecx, [ebp - 0x62c]
call fcn.00411080
push dword [ebp - 0x62c]
mov byte [ebp - 4], 2
push str.file_extension:_s
call fcn.00455860
push str..DLL
push dword [ebp - 0x62c]
call fcn.004f5041
add esp, 0x10
test eax, eax
je 0x464754
push str..TPI
push dword [ebp - 0x62c]
call fcn.004f5041
add esp, 8
test eax, eax
je 0x464754
push str..EXE
push dword [ebp - 0x62c]
call fcn.004f5041
add esp, 8
test eax, eax
jne 0x4647ac
push eax
lea eax, [ebp - 0x650]
push eax
call fcn.004c9890
lea eax, [ebp - 0x64c]
mov byte [ebp - 4], 4
push 0
push eax
call fcn.004c93c0
add esp, 0x10
mov byte [ebp - 4], 5
call fcn.0040d510
mov ecx, eax
test ecx, ecx
je 0x46487a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x63c], eax
push dword [ebp - 0x64c]
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 6
push dword [ebp - 0x650]
push eax
lea eax, [ebp - 0x63c]
push str._s___PRODUCT_s___PID_s
push eax
call fcn.00413080
add esp, 0x14
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x464731
lea eax, [ebp - 0x218]
push eax
call fcn.00449c00
mov esi, dword [ebp - 0x63c]
lea eax, [ebp - 0x218]
push esi
push eax
push str.call_exe_begin__path__s___cmd__s_
call fcn.00455860
add esp, 0xc
lea eax, [ebp - 0x218]
push 0xea60
push 0
push 1
push ebx
push 1
push esi
push eax
call fcn.00449e00
push 1
push esi
lea ecx, [ebp - 0x218]
push ecx
push eax
push str.call_exe_return___s__path__s__cmd__s__sync__s_
call fcn.00455860
add esp, 0x14
lea ecx, [ebp - 0x63c]
call fcn.0040c9d0
lea ecx, [ebp - 0x64c]
call fcn.0040c9d0
lea ecx, [ebp - 0x650]
call fcn.0040c9d0
jmp 0x4647ac
push ebx
lea eax, [ebp - 0x420]
push eax
push str.Uninst
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x654]
push eax
call fcn.00464180
push dword [ebp - 0x654]
mov byte [ebp - 4], 3
push str.CallDllInterfaceEx_return_value_s
call fcn.00455860
mov edx, dword [ebp - 0x654]
add esp, 0x1c
mov byte [ebp - 4], 2
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4647ac
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x62c]
mov eax, edi
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4647cd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x630]
mov eax, edi
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4647ee
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, dword [ebp - 0x634]
push 0
push 0
lea eax, [ebp - 0x658]
push eax
push 0
lea eax, [ebp - 0x640]
push eax
lea eax, [ebp - 0x628]
push eax
mov eax, dword [ebp - 0x644]
push eax
push dword [ebp - 0x638]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x4644d0
push dword [ebp - 0x638]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x648]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x46485e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.004a7695
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00409d40
int3