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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cf6bd
mov eax, dword fs:[0]
push eax
mov eax, 0x222c
call fcn.004652c0
mov eax, dword [0x653510]
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, 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.00526470
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 0x41023f
push 0x2000
lea eax, [ebp - 0x2218]
push 0
push eax
call fcn.00526470
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.SOFTWAREADBlockMaster_file_pe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x41023f
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov esi, eax
push str..dll
push esi
call fcn.005430de
add esp, 8
test eax, eax
jne 0x41006b
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x41023f
push str.Uninst
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x41005f
lea eax, [ebp - 0x218]
push eax
push str.call_dll_func_start__path__s_
call fcn.00426190
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.00426190
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x41023f
push 0x5e88a0
push esi
call fcn.005430de
add esp, 8
test eax, eax
jne 0x41023f
lea eax, [ebp - 0x2218]
push eax
lea ecx, [ebp - 0x221c]
call fcn.004077f0
mov eax, dword [ebp - 0x221c]
mov dword [ebp - 4], 1
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x4100b2
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x4100c8
call fcn.00408750
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x41025b
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [ebp - 0x2230], 1
lea esi, [eax + 0x10]
mov eax, dword [ebp - 0x221c]
mov dword [ebp - 0x2224], esi
mov dword [ebp - 0x2220], eax
mov edi, dword [eax - 0xc]
lea ebx, [edi + 0x1a]
test ebx, ebx
js 0x410265
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x41011d
push ebx
lea ecx, [ebp - 0x2224]
call fcn.00408ae0
mov esi, dword [ebp - 0x2224]
add edi, edi
push edi
push dword [ebp - 0x2220]
push edi
push esi
call fcn.004148c0
lea eax, [edi + esi]
add esp, 0x10
test eax, eax
jne 0x410149
call fcn.00541cb7
mov dword [eax], 0x16
call fcn.00541b90
jmp 0x410159
push 0x34
push str.__uninstall__productbizhi
push eax
call fcn.00526b60
add esp, 0xc
cmp ebx, dword [esi - 8]
jg 0x410265
mov dword [esi - 0xc], ebx
lea edi, [esi - 0x10]
xor eax, eax
mov word [esi + ebx*2], ax
or ebx, 0xffffffff
mov ecx, dword [ebp - 0x221c]
add ecx, 0xfffffff0
mov dword [ebp - 0x2234], ecx
cmp edi, ecx
je 0x4101e7
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x2220], eax
jl 0x4101d8
mov eax, dword [edi]
cmp eax, dword [ecx]
jne 0x4101d8
push edi
call fcn.00407c60
mov edx, dword [ebp - 0x2220]
add esp, 4
mov dword [ebp - 0x2238], eax
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4101cd
mov esi, dword [ebp - 0x2234]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x2238]
add eax, 0x10
mov dword [ebp - 0x221c], eax
jmp 0x4101e7
push dword [esi - 0xc]
lea ecx, [ebp - 0x221c]
push esi
call fcn.00408f10
mov byte [ebp - 4], 0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4101ff
mov ecx, dword [edi]
push edi
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.00410770
mov edx, dword [ebp - 0x221c]
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x41023f
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.00464e98
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00407b00
push 0x80070057
call fcn.00407b00
int3