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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53953d
mov eax, dword fs:[0]
push eax
sub esp, 0x654
mov eax, dword [0x589644]
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 0x47075e
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ebx
call esi
test eax, eax
je 0x47075e
push 0x208
lea eax, [ebp - 0x628]
mov dword [ebp - 0x638], 0
push 0
push eax
call fcn.004d7bd0
add esp, 0xc
mov dword [ebp - 0x644], 0x208
lea ecx, [ebp - 0x639]
call fcn.0046fe20
push eax
lea ecx, [ebp - 0x64c]
call fcn.004108d0
mov eax, dword [ebp - 0x64c]
or edi, 0xffffffff
mov dword [ebp - 4], 0
cmp dword [eax - 0xc], 0
jne 0x470379
push str.fail:get_reg_subkey_error.
call fcn.0045cb30
add esp, 4
jmp 0x47073c
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 0x470730
push eax
push eax
mov dword [ebp - 0x648], eax
lea eax, [ebp - 0x65c]
push eax
push 0
lea eax, [ebp - 0x644]
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 0x470730
inc dword [ebp - 0x648]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
mov dword [ebp - 0x644], 0x208
call fcn.004d7bd0
push ebx
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00508485
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 0x4706fa
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004d7bd0
add esp, 0xc
mov dword [ebp - 0x660], 0x104
lea eax, [ebp - 0x660]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x65c]
push eax
lea eax, [ebp - 0x628]
push eax
push dword [ebp - 0x64c]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x630]
call fcn.004108d0
mov eax, dword [ebp - 0x630]
mov byte [ebp - 4], 1
cmp dword [eax - 0xc], 0
jge 0x4704a1
or esi, 0xffffffff
jmp 0x4704d4
push str._Regtest
push eax
call fcn.004d8a44
mov esi, eax
add esp, 8
test esi, esi
jne 0x4704ba
or esi, 0xffffffff
jmp 0x4704d4
sub esi, dword [ebp - 0x630]
sar esi, 1
cmp esi, 0xffffffff
je 0x4704d4
push str.Regtest__no_need_to_check_sign.
call fcn.0045cb30
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.004108d0
push dword [ebp - 0x62c]
mov byte [ebp - 4], 2
push str.file_extension:_s
call fcn.0045cb30
push str..DLL
push dword [ebp - 0x62c]
call fcn.00502591
add esp, 0x10
test eax, eax
je 0x470654
push str..TPI
push dword [ebp - 0x62c]
call fcn.00502591
add esp, 8
test eax, eax
je 0x470654
push str..EXE
push dword [ebp - 0x62c]
call fcn.00502591
add esp, 8
test eax, eax
jne 0x4706ac
push eax
lea eax, [ebp - 0x654]
push eax
call fcn.004d6df0
lea eax, [ebp - 0x650]
mov byte [ebp - 4], 4
push 0
push eax
call fcn.004d6930
add esp, 0x10
mov byte [ebp - 4], 5
call fcn.0040cb80
mov ecx, eax
test ecx, ecx
je 0x47077a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x640], eax
push dword [ebp - 0x650]
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 6
push dword [ebp - 0x654]
push eax
lea eax, [ebp - 0x640]
push str._s___PRODUCT_s___PID_s
push eax
call fcn.00413040
add esp, 0x14
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x470631
lea eax, [ebp - 0x218]
push eax
call fcn.0044ee30
mov esi, dword [ebp - 0x640]
lea eax, [ebp - 0x218]
push esi
push eax
push str.call_exe_begin__path__s___cmd__s_
call fcn.0045cb30
add esp, 0xc
lea eax, [ebp - 0x218]
push 0xea60
push 0
push 1
push ebx
push 1
push esi
push eax
call fcn.0044f030
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.0045cb30
add esp, 0x14
lea ecx, [ebp - 0x640]
call fcn.0040c040
lea ecx, [ebp - 0x650]
call fcn.0040c040
lea ecx, [ebp - 0x654]
call fcn.0040c040
jmp 0x4706ac
push ebx
lea eax, [ebp - 0x420]
push eax
push str.Uninst
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x658]
push eax
call fcn.00470080
push dword [ebp - 0x658]
mov byte [ebp - 4], 3
push str.CallDllInterfaceEx_return_value_s
call fcn.0045cb30
mov edx, dword [ebp - 0x658]
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 0x4706ac
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 0x4706cd
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 0x4706ee
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 - 0x65c]
push eax
push 0
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x628]
push eax
mov eax, dword [ebp - 0x648]
push eax
push dword [ebp - 0x638]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x4703d0
push dword [ebp - 0x638]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x64c]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x47075e
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.004b85ea
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00408f30
int3