Function at 0x58c460
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d3b20
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x638fe4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov eax, dword [0x643bf0]
test eax, eax
je 0x58c6c0
xor ebx, ebx
cmp esi, 0x9fbf1
push 0x50021
setne bl
dec ebx
and ebx, 4
push dword [ebx + 0x644028]
call eax
cmp eax, 0xb
jl 0x58c6c0
push 0x20001
mov edx, 0x1e240
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
call fcn.005b5f80
add esp, 4
mov byte [ebp - 4], 1
mov ecx, 0x60ab98
mov eax, dword [ebp - 0x1c]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x58c516
test dx, dx
je 0x58c512
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x58c516
add eax, 4
add ecx, 4
test dx, dx
jne 0x58c4f0
xor eax, eax
jmp 0x58c51b
sbb eax, eax
or eax, 1
test eax, eax
je 0x58c534
push str.SULA
lea ecx, [ebp - 0x1c]
call fcn.00404810
test eax, eax
jne 0x58c6b8
mov eax, dword [0x643bf0]
test eax, eax
je 0x58c54a
push 0x2000000
push dword [ebx + 0x644028]
call eax
push eax
mov edx, esi
lea ecx, [ebp - 0x24]
call fcn.005b5f80
add esp, 4
push 0x20014
mov edx, esi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.005b5f80
add esp, 4
push 0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 3
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 0x58c5b0
push 0x62e4b0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x420
push eax
call fcn.005479aa
lea ecx, [ebp - 0x18]
call fcn.00402be0
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x14]
mov edx, str.PEDev
push eax
call fcn.005b0e00
add esp, 4
test eax, eax
je 0x58c650
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00404490
add esp, 8
test al, al
jne 0x58c650
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
mov edx, str.PEManualTYP
call fcn.005b0e00
add esp, 4
test eax, eax
je 0x58c61a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00404490
add esp, 8
test al, al
je 0x58c690
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.PEManualTYP
push dword [ebp - 0x14]
call esi
test eax, eax
je 0x58c690
push 0x62e4b0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0x436
push eax
call fcn.005479aa
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 0x58c5ee
push 0x62e4b0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x42b
push eax
call fcn.005479aa
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], 0
call fcn.00402b90
lea ecx, [ebp - 0x20]
call fcn.00402b90
lea ecx, [ebp - 0x24]
call fcn.00402b90
lea ecx, [ebp - 0x1c]
call fcn.00402b90
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