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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x447e16
push eax
mov dword fs:[0], esp
sub esp, 0x35c
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.SOFTWARECanonPortSet
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4077f6
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 8]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x10]
push eax
push 0
push str.Path
push ecx
mov dword [esp + 0x24], 0x104
mov dword [esp + 0x20], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4077e2
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [esp + 0x35c]
mov dword fs:[0], ecx
add esp, 0x368
ret
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00405880
test eax, eax
jne 0x407810
mov eax, 1
mov ecx, dword [esp + 0x35c]
mov dword fs:[0], ecx
add esp, 0x368
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push edi
push str.SOFTWARECanonPortSet
push reloc.OLEAUT32.dll_SysReAllocString
call esi
push str.SOFTWARECANON_
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040a110
add esp, 8
cmp eax, 1
jne 0x407847
push str.SOFTWARECANON_
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x124]
push str._s.
push edx
call edi
add esp, 0xc
lea eax, [esp + 0x224]
push eax
lea ecx, [esp + 0x124]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4078d1
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
nop
lea edx, [esp + 0x258]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x130]
push 0x44bbe8
push ecx
call edi
add esp, 0x10
lea edx, [esp + 0x128]
push edx
call ebp
lea eax, [esp + 0x22c]
push eax
push esi
call ebx
test eax, eax
jne 0x407890
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
pop ebx
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 0x1c]
push ecx
call esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0xc]
call fcn.00402470
mov eax, dword [esp + 8]
push 0x5c
push eax
mov dword [esp + 0x374], 0
call fcn.0042dfa2
add esp, 8
test eax, eax
jne 0x407917
or eax, 0xffffffff
jmp 0x40791b
sub eax, dword [esp + 8]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x10]
call fcn.00403670
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x370], 1
call fcn.00401e30
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x36c], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407962
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 8]
push eax
call esi
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov dword [esp + 0x36c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407992
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x364]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x368
ret