Function at 0x410690
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52d759
mov eax, dword fs:[0]
push eax
sub esp, 0x838
mov eax, dword [0x5976b8]
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 esi, ecx
call fcn.0041b2d7
push 0x206
lea ecx, [ebp - 0x626]
xor eax, eax
push ebx
push ecx
mov dword [esi + 0xb8], ebx
mov word [ebp - 0x628], ax
call fcn.005149a0
push 0x206
lea eax, [ebp - 0x82e]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x830], dx
call fcn.005149a0
add esp, 0x1c
lea ecx, [ebp - 0x840]
push ecx
push 0x104
lea edx, [ebp - 0x830]
push edx
mov edx, dword [esi + 0x48]
push 0x104
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x834]
push ecx
push ebx
push ebx
push edx
mov ecx, esi
mov dword [ebp - 0x834], ebx
mov dword [ebp - 0x840], ebx
call fcn.004101a0
mov edi, eax
cmp edi, ebx
jne 0x410788
lea eax, [ebp - 0x840]
push eax
mov eax, dword [esi + 0x48]
push 0x104
lea ecx, [ebp - 0x628]
push ecx
lea edx, [ebp - 0x834]
push edx
push ebx
push ebx
push eax
mov ecx, esi
call fcn.0040fd70
mov edi, eax
cmp edi, ebx
jne 0x410788
mov dword [esi + 0xb8], 0x643
jmp 0x410ab1
push 0x206
lea edx, [ebp - 0x216]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x218], cx
call fcn.005149a0
push 0x206
lea ecx, [ebp - 0x41e]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x420], ax
call fcn.005149a0
add esp, 0x18
push 0x104
lea edx, [ebp - 0x218]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x410aab
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.00515cb7
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x410a9f
lea ecx, [ebx + 2]
push ecx
lea edx, [ebp - 0x420]
push 0x104
push edx
call fcn.00515853
xor eax, eax
add esp, 0xc
mov word [ebx], ax
cmp edi, 6
je 0x41081e
cmp edi, 5
jne 0x410848
mov ecx, dword [ebp - 0x834]
push ecx
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x410848
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x104
lea edx, [ebp - 0x218]
push edx
mov eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x838]
call fcn.00404f70
xor ebx, ebx
lea ecx, [ebp - 0x838]
mov dword [ebp - 4], ebx
call fcn.0040f360
push 0xd744
call fcn.00415512
add esp, 4
mov dword [ebp - 0x844], eax
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x4108a3
mov ecx, eax
call fcn.00407440
mov ebx, eax
mov edx, dword [ebp - 0x840]
mov eax, dword [esi + 0xbc]
push edx
push eax
push edi
lea ecx, [ebp - 0x830]
push ecx
lea edx, [ebp - 0x420]
push edx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x628]
push ecx
mov ecx, ebx
mov byte [ebp - 4], 0
call fcn.0040a2e0
test eax, eax
je 0x410915
mov dword [esi + 0xb8], eax
mov eax, dword [ebp - 0x838]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x410ab1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x410ab1
lea eax, [edi - 1]
cmp eax, 5
ja case.default.0x410921
jmp dword [eax*4 + 0x410ad0]
mov ecx, ebx
call fcn.0040d8b0
mov dword [esi + 0xb8], eax
test eax, eax
jne 0x410956
push eax
push eax
push edi
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 0x218]
push edx
mov ecx, esi
call fcn.0040ed20
jmp 0x410a6c
cmp eax, 0xbc2
jne 0x41097c
push 0
push 1
push edi
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x218]
push ecx
mov ecx, esi
call fcn.0040ed20
jmp 0x410a6c
cmp eax, 0xffffffff
jne 0x410a6c
mov dword [esi + 0xb8], eax
jmp 0x410a6c
mov ecx, ebx
call fcn.0040d8b0
test eax, eax
je 0x410a19
cmp eax, 0xbc2
je 0x410a19
cmp eax, 0xffffffff
jne 0x410a6c
lea edx, [ebp - 0x83c]
push edx
push 0xf003f
push 0
push str.SOFTWARECanonIJAppUpdateInstall
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esi + 0xb8], eax
mov dword [ebp - 0x83c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x410a6c
mov ecx, dword [ebp - 0x83c]
push 4
lea eax, [ebp - 0x844]
push eax
push 4
push 0
push str.ProcessID
push ecx
mov dword [ebp - 0x844], 0xffffffff
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x83c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x410a6c
lea eax, [ebp - 0x834]
push eax
push 0
push edi
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 0x218]
push edx
mov ecx, esi
call fcn.0040ed20
mov eax, dword [ebp - 0x834]
jmp 0x410a66
mov ecx, ebx
call fcn.0040d8b0
mov ecx, ebx
mov dword [esi + 0xb8], eax
call fcn.0040a7d0
jmp 0x410a6c
mov ecx, ebx
call fcn.004076d0
jmp 0x410a66
mov ecx, ebx
call fcn.0040a7d0
mov dword [esi + 0xb8], eax
mov ecx, ebx
call fcn.00406cc0
test ebx, ebx
je 0x410a81
mov edx, dword [ebx]
mov eax, dword [edx]
push 1
mov ecx, ebx
call eax
cmp edi, 6
jne case.default.0x410921
push 0
push 0
push 0
call dword [sym.imp.SETUPAPI.dll_SetupPromptReboot]
lea ecx, [ebp - 0x838]
call fcn.004037d0
jmp 0x410ab1
mov dword [esi + 0xb8], 0
jmp 0x410ab1
mov dword [esi + 0xb8], ebx
xor eax, eax
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.00514990
mov esp, ebp
pop ebp
ret