Function at 0x567400
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b06b8
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 0x56743c
mov eax, 1
mov ecx, dword [0x621a6c]
test ecx, ecx
je 0x5674df
push 0x50021
push dword [eax*4 + 0x621ebc]
call ecx
cmp eax, 0xb
jl 0x5674df
push 0x20001
mov edx, 0x1e240
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.0058f590
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 0x5674b8
test si, si
je 0x5674b4
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x5674b8
add ecx, 4
add edx, 4
test si, si
jne 0x567492
xor ecx, ecx
jmp 0x5674bd
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x5674f3
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 0x5674df
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 0x567502
mov eax, 1
mov ecx, dword [0x621a6c]
test ecx, ecx
jne 0x567510
xor eax, eax
jmp 0x56751e
push 0x2000000
push dword [eax*4 + 0x621ebc]
call ecx
push eax
mov edx, edi
lea ecx, [ebp - 0x24]
call fcn.0058f590
add esp, 4
push 0x20013
mov edx, edi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.0058f590
add esp, 4
push 0x20014
mov edx, edi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.0058f590
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 0x56759a
push 0x60bae4
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x424
push eax
call fcn.0052d791
call fcn.00414e1f
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x5675b6
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.0058b690
add esp, 4
test eax, eax
je 0x56765f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00403c90
add esp, 8
test al, al
jne 0x56765f
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.0058b690
add esp, 4
test eax, eax
je 0x567629
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00403c90
add esp, 8
test al, al
je 0x56769f
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 0x56769f
push 0x60bae4
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0x43a
push eax
call fcn.0052d791
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 0x5675fd
push 0x60bae4
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0x42f
push eax
call fcn.0052d791
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
mov edx, str.PEManualTYP
call fcn.0058b690
add esp, 4
test eax, eax
je 0x5676cb
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00403c90
add esp, 8
test al, al
je 0x567701
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 0x567701
push 0x60bae4
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0x445
push eax
call fcn.0052d791
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