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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db8bd
mov eax, dword fs:[0]
push eax
mov eax, 0x2228
call fcn.004534e0
mov eax, dword [0x51c91c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
mov edi, dword [ebp + 0xc]
push 0x208
push 0
push eax
mov dword [ebp - 0x2230], 0
call fcn.00469210
add esp, 0xc
lea eax, [ebp - 0x218]
push edi
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40994c
push 0x2000
lea eax, [ebp - 0x2218]
push 0
push eax
call fcn.00469210
add esp, 0xc
mov dword [ebp - 0x222c], 1
lea eax, [ebp - 0x2228]
mov dword [ebp - 0x2228], 0x1000
push eax
lea eax, [ebp - 0x2218]
push eax
lea eax, [ebp - 0x222c]
push eax
push edi
push str.SOFTWAREMcSafeBox_file_pe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40994c
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov esi, eax
push str..dll
push esi
call fcn.00487bfb
add esp, 8
test eax, eax
jne 0x4097ba
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40994c
push str.Uninst
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4097ae
lea eax, [ebp - 0x218]
push eax
push str.call_dll_func_start__path__s_
call fcn.00419570
add esp, 8
lea eax, [ebp - 0x2218]
push eax
call edi
lea eax, [ebp - 0x218]
push eax
push str.call_dll_fun_end__path__s_
call fcn.00419570
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40994c
push str..exe
push esi
call fcn.00487bfb
add esp, 8
test eax, eax
jne 0x40994c
lea eax, [ebp - 0x2218]
push eax
lea ecx, [ebp - 0x221c]
call fcn.004033c0
mov eax, dword [ebp - 0x221c]
mov dword [ebp - 4], 1
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x409803
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
test ecx, ecx
jne 0x40981b
call fcn.00404320
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
call eax
mov ecx, eax
test ecx, ecx
je 0x409967
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov dword [ebp - 0x2230], 1
lea esi, [eax + 0x10]
mov eax, dword [ebp - 0x221c]
mov dword [ebp - 0x2220], esi
mov dword [ebp - 0x2234], eax
mov edx, dword [eax - 0xc]
mov dword [ebp - 0x2224], edx
lea edi, [edx + 0xb]
test edi, edi
js 0x409971
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x40987e
push edi
lea ecx, [ebp - 0x2220]
call fcn.004046b0
mov esi, dword [ebp - 0x2220]
mov edx, dword [ebp - 0x2224]
push edx
push dword [ebp - 0x2234]
push edx
push esi
call fcn.004038c0
mov eax, dword [ebp - 0x2224]
add esp, 0x10
lea ecx, [esi + eax*2]
test ecx, ecx
jne 0x4098ae
call fcn.0048470a
mov dword [eax], 0x16
call fcn.004845e4
jmp 0x4098ca
movups xmm0, xmmword [str.__uninstall]
movups xmmword [ecx], xmm0
mov eax, dword [0x4eb028]
mov dword [ecx + 0x10], eax
mov ax, word [0x4eb02c]
mov word [ecx + 0x14], ax
cmp edi, dword [esi - 8]
jg 0x409971
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
lea ecx, [ebp - 0x221c]
lea eax, [ebp - 0x2220]
push eax
call fcn.00409440
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40990c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0xc350
push 1
push 1
push dword [ebp - 0x221c]
lea eax, [ebp - 0x218]
push eax
call fcn.00409e80
mov edx, dword [ebp - 0x221c]
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x40994c
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
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004530b8
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004036d0
push 0x80070057
call fcn.004036d0
int3