Function at 0x426280
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x586481
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x5eb770]
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
xor ebx, ebx
push ebx
mov edi, ecx
push str.Tool_RemoveReg_CAPTShareModule
push ebx
lea ecx, [ebp - 0x434]
call fcn.0044ca70
add esp, 0xc
mov dword [ebp - 4], ebx
call fcn.0046d2d8
mov esi, dword [eax + 4]
push 0x206
lea ecx, [ebp - 0x41e]
xor eax, eax
push ebx
push ecx
mov dword [ebp - 0x428], ebx
mov word [ebp - 0x420], ax
call fcn.0055ca80
add esp, 0xc
push 0x206
lea eax, [ebp - 0x216]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x218], dx
call fcn.0055ca80
add esp, 0xc
push 0x5b69a4
lea ecx, [ebp - 0x424]
call fcn.00403340
mov byte [ebp - 4], 1
mov ecx, dword [esi + 0x664]
push ecx
lea edx, [ebp - 0x424]
push str._sSMK.DLL
push edx
call fcn.0040a740
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov eax, dword [ebp - 0x424]
cmp dword [eax - 4], 1
jle 0x426383
mov edx, dword [eax - 0xc]
push edx
lea ecx, [ebp - 0x424]
call fcn.00403ba0
mov eax, dword [ebp - 0x424]
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x420]
push 0x5b7940
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea edx, [ebp - 0x420]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42640a
push 1
push str.return___08x
lea eax, [ebp - 0x434]
push 2
push eax
call fcn.0044cd10
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x424]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4263ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x434]
mov dword [ebp - 4], 0xffffffff
call fcn.0044cc70
mov eax, 1
jmp 0x426517
call fcn.00461e32
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x426424
push 0x80004005
call fcn.004025a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x42c], eax
mov byte [ebp - 4], 2
mov ecx, dword [esi + 0x664]
push ecx
push str.SOFTWARECANON_
lea edx, [ebp - 0x42c]
push 0x5b7940
push edx
call fcn.0040a740
mov esi, dword [ebp - 0x42c]
add esp, 0x10
lea eax, [ebp - 0x428]
push eax
push 0x2001f
push ebx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x426494
mov ecx, dword [ebp - 0x428]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push edi
call fcn.00425ff0
add esp, 8
mov edi, eax
jmp 0x4264a7
cmp eax, 2
je 0x4264a2
cmp eax, 3
je 0x4264a2
xor edi, edi
jmp 0x4264a7
mov edi, 1
push edi
push str.return___08x
lea edx, [ebp - 0x434]
push 2
push edx
call fcn.0044cd10
lea eax, [esi - 0x10]
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4264de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x424]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x426503
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x434]
mov dword [ebp - 4], 0xffffffff
call fcn.0044cc70
mov eax, edi
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.0055649d
mov esp, ebp
pop ebp
ret