Function at 0x416b80
Capabilities:
Delete directory
Delete file
Delete registry key
Enumerate files on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x564aa1
mov eax, dword fs:[0]
push eax
sub esp, 0x688
mov eax, dword [0x5c0490]
xor eax, esp
mov dword [esp + 0x680], eax
push ebx
push esi
push edi
mov eax, dword [0x5c0490]
xor eax, esp
push eax
lea eax, [esp + 0x698]
mov dword fs:[0], eax
xor esi, esi
push esi
lea eax, [esp + 0x1c]
push str.Tool_PortSetToolDelete
push eax
call fcn.00401190
add esp, 0xc
push 0x208
mov dword [esp + 0x6a4], esi
lea ecx, [esp + 0x280]
push esi
push ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call fcn.00541d20
add esp, 0xc
push 0x208
lea edx, [esp + 0x488]
push esi
push edx
call fcn.00541d20
add esp, 0xc
push 0x250
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00541d20
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push esi
push str.SOFTWARECanonPortSet
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
je 0x416c7a
push 1
push str.return___08x
push 2
lea edx, [esp + 0x24]
push edx
call fcn.00401410
add esp, 0x10
lea ecx, [esp + 0x18]
mov dword [esp + 0x6a0], 0xffffffff
call fcn.00401370
mov eax, 1
jmp 0x416eb2
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x280]
push ecx
lea edx, [esp + 0x2c]
push edx
push esi
push str.Path
push eax
mov dword [esp + 0x38], 0x208
mov dword [esp + 0x3c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
je 0x416cec
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push str.return___08x
lea edx, [esp + 0x20]
push 2
push edx
call fcn.00401410
add esp, 0x10
lea ecx, [esp + 0x18]
mov dword [esp + 0x6a0], 0xffffffff
call fcn.00401370
xor eax, eax
jmp 0x416eb2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0041a4c0
test eax, eax
jne 0x416d13
push 1
push str.return___08x
push 2
lea ecx, [esp + 0x24]
push ecx
jmp 0x416c54
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push str.SOFTWARECanonPortSet
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
mov edi, str.SOFTWARECANON_
mov esi, reloc.OLEAUT32.dll_SysReAllocString
call fcn.0041df30
cmp eax, 1
jne 0x416d3d
push edi
push esi
call ebx
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [esp + 0x27c]
push edx
lea eax, [esp + 0x488]
push 0x597190
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x488]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x416dc0
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ecx]
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x280]
push ecx
lea edx, [esp + 0x48c]
push str._s_s
push edx
call edi
add esp, 0x10
lea eax, [esp + 0x484]
push eax
call ebx
lea ecx, [esp + 0x2c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x416d80
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea edx, [esp + 0x27c]
push edx
call edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [esp + 0x27c]
push eax
lea ecx, [esp + 0x14]
call fcn.00404f00
mov byte [esp + 0x6a0], 1
mov ecx, dword [esp + 0x10]
push 0x5c
push ecx
call fcn.0053dda2
add esp, 8
test eax, eax
jne 0x416e09
or eax, 0xffffffff
jmp 0x416e0f
sub eax, dword [esp + 0x10]
sar eax, 1
push eax
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x18]
call fcn.00410460
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x6a4], 2
call fcn.004063a0
mov byte [esp + 0x6a0], 1
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416e58
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
push ecx
call edi
push esi
push str.return___08x
lea edx, [esp + 0x20]
push 2
push edx
call fcn.00401410
mov byte [esp + 0x6b0], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416e9c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x6a0], 0xffffffff
call fcn.00401370
mov eax, esi
mov ecx, dword [esp + 0x698]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x680]
xor ecx, esp
call fcn.0053ca73
mov esp, ebp
pop ebp
ret