Function at 0x5673c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b0a88
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x616040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor eax, eax
cmp edi, 0x9fbf1
jne 0x5673fc
mov eax, 1
mov ecx, dword [0x621a6c]
test ecx, ecx
je 0x56749f
push 0x50021
push dword [eax*4 + 0x621ebc]
call ecx
cmp eax, 0xb
jl 0x56749f
push 0x20001
mov edx, 0x1e240
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.0058f8e0
add esp, 4
mov byte [ebp - 4], 1
mov edx, 0x5e9af0
mov eax, dword [ebp - 0x28]
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x567478
test si, si
je 0x567474
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x567478
add ecx, 4
add edx, 4
test si, si
jne 0x567452
xor ecx, ecx
jmp 0x56747d
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x5674b3
lea edx, [eax - 0x10]
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x56749f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp edi, 0x9fbf1
jne 0x5674c2
mov eax, 1
mov ecx, dword [0x621a6c]
test ecx, ecx
jne 0x5674d0
xor eax, eax
jmp 0x5674de
push 0x2000000
push dword [eax*4 + 0x621ebc]
call ecx
push eax
mov edx, edi
lea ecx, [ebp - 0x24]
call fcn.0058f8e0
add esp, 4
push 0x20013
mov edx, edi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.0058f8e0
add esp, 4
push 0x20014
mov edx, edi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.0058f8e0
add esp, 4
push 0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 4
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWARECanonIJ_Scan_Utility
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp dword [ebp - 0x14], 0
jne 0x56755a
push 0x60baf4
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x424
push eax
call fcn.0052d7c1
call fcn.0041505f
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x567576
push 0x80004005
call fcn.00402740
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x14]
mov edx, str.PEDev
push eax
call fcn.0058b990
add esp, 4
test eax, eax
je 0x56761f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00403c90
add esp, 8
test al, al
jne 0x56761f
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
mov edx, str.PEManualDEV
call fcn.0058b990
add esp, 4
test eax, eax
je 0x5675e9
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00403c90
add esp, 8
test al, al
je 0x56765f
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax - 0xc]
lea ecx, [ecx*2 + 2]
push ecx
push eax
push 1
push 0
push str.PEManualDEV
push dword [ebp - 0x14]
call esi
test eax, eax
je 0x56765f
push 0x60baf4
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0x43a
push eax
call fcn.0052d7c1
mov eax, dword [ebp - 0x24]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [eax - 0xc]
lea ecx, [ecx*2 + 2]
push ecx
push eax
push 1
push 0
push str.PEDev
push dword [ebp - 0x14]
call esi
test eax, eax
je 0x5675bd
push 0x60baf4
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0x42f
push eax
call fcn.0052d7c1
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
mov edx, str.PEManualTYP
call fcn.0058b990
add esp, 4
test eax, eax
je 0x56768b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00403c90
add esp, 8
test al, al
je 0x5676c1
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax - 0xc]
lea ecx, [ecx*2 + 2]
push ecx
push eax
push 1
push 0
push str.PEManualTYP
push dword [ebp - 0x14]
call esi
test eax, eax
je 0x5676c1
push 0x60baf4
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0x445
push eax
call fcn.0052d7c1
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], 0
call fcn.00402b60
lea ecx, [ebp - 0x1c]
call fcn.00402b60
lea ecx, [ebp - 0x20]
call fcn.00402b60
lea ecx, [ebp - 0x24]
call fcn.00402b60
lea ecx, [ebp - 0x28]
call fcn.00402b60
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret