Function at 0x415a70
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xfc
mov eax, dword [0x46be4c]
xor eax, esp
mov dword [esp + 0xf8], eax
xor eax, eax
test edx, edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x28], 0
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd8], eax
mov dword [esp + 0xdc], eax
mov dword [esp + 0xe0], eax
mov dword [esp + 0xe4], eax
mov dword [esp + 0xe8], eax
mov dword [esp + 0xec], eax
mov dword [esp + 0xf0], eax
mov dword [esp + 0xf4], eax
je 0x416063
test ecx, ecx
je 0x416063
lea eax, [esp + 0x14]
push eax
push 0xf003f
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x416063
mov eax, dword [esp + 0x14]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0xb8]
push edx
push edi
mov esi, 0x20
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x5c], edi
call ebp
test eax, eax
jne 0x41603b
push ebx
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
push 0
lea edx, [esp + 0xb4]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x416006
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0xec]
push edx
lea eax, [esp + 0x4c]
push eax
push 0
push str.ManufacturerTag
mov ebx, 1
push ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x5c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x415fc2
push str.Canon_Inc.
lea edx, [esp + 0xec]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x415fc2
mov edx, dword [esp + 0x14]
push eax
push eax
push eax
push eax
mov dword [esp + 0x40], eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x7c]
push ecx
push 0
push edx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x30], esi
call ebp
test eax, eax
jne 0x415fc2
lea esp, [esp]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push 0xf003f
push 0
lea ecx, [esp + 0x74]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x415f63
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x18]
call fcn.00412270
mov edi, eax
test edi, edi
jne 0x415f53
mov edx, dword [esp + 0x18]
push eax
push eax
push eax
push eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x5c]
push ecx
push edi
push edx
mov dword [esp + 0x30], esi
call ebp
test eax, eax
jne 0x415f53
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
push 0xf003f
push 0
lea ecx, [esp + 0x54]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x415ef4
mov edx, dword [esp + 0x20]
push eax
push eax
push eax
push eax
mov dword [esp + 0x44], eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x9c]
push ecx
push 0
push edx
mov dword [esp + 0x30], esi
call ebp
test eax, eax
jne 0x415ee4
nop
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x1c]
push eax
push 0xf003f
push 0
lea ecx, [esp + 0x94]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x415e77
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x10], esi
xor esi, esi
push esi
push esi
push esi
push esi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0xdc]
push ecx
push esi
push edx
call ebp
test eax, eax
jne 0x415e62
mov edi, edi
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x3c]
push eax
push 0xf003f
push 0
lea ecx, [esp + 0xd4]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x415e02
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x3c]
call fcn.00412270
mov edi, eax
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, 2
je 0x415e35
cmp edi, 1
jae 0x415e62
mov eax, dword [esp + 0x1c]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0xdc]
push edx
add esi, 1
push esi
push eax
mov dword [esp + 0x30], 0x20
call ebp
test eax, eax
je 0x415dc0
jmp 0x415e62
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0xc8]
push ecx
push edx
call fcn.0040cf30
add esp, 8
cmp eax, 1
jne 0x415e62
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0xc8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, 2
je 0x415eb2
mov esi, 0x20
cmp edi, 1
jae 0x415ee4
mov eax, dword [esp + 0x34]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
add eax, 1
lea edx, [esp + 0x9c]
push edx
push eax
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x3c]
push eax
mov dword [esp + 0x30], esi
call ebp
test eax, eax
je 0x415d70
jmp 0x415ee4
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x88]
push ecx
push edx
call fcn.0040cf30
add esp, 8
cmp eax, 1
jne 0x415edf
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x88]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, 0x20
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, 2
je 0x415f2c
cmp edi, 1
jae 0x415f53
mov eax, dword [esp + 0x28]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
add eax, 1
lea edx, [esp + 0x5c]
push edx
push eax
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x34]
push eax
mov dword [esp + 0x30], esi
call ebp
test eax, eax
je 0x415d21
jmp 0x415f53
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x48]
push ecx
push edx
call fcn.0040cf30
add esp, 8
cmp eax, 1
jne 0x415f53
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, 2
je 0x415f9b
cmp edi, 1
jae 0x415fc2
mov eax, dword [esp + 0x30]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
add eax, 1
lea edx, [esp + 0x7c]
push edx
push eax
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x30]
push eax
mov dword [esp + 0x30], esi
call ebp
test eax, eax
je 0x415cc0
jmp 0x415fc2
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x68]
push ecx
push edx
call fcn.0040cf30
add esp, 8
cmp eax, 1
jne 0x415fc2
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x68]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, 2
jne 0x415fff
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0xa8]
push eax
push ecx
call fcn.0040cf30
add esp, 8
cmp eax, 1
jne 0x415fff
mov eax, dword [esp + 0x24]
lea edx, [esp + 0xa8]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [esp + 0x38], 0
jne 0x41603a
mov eax, dword [esp + 0x40]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
add eax, 1
lea edx, [esp + 0xbc]
push edx
push eax
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x40]
push eax
mov dword [esp + 0x30], esi
call ebp
test eax, eax
je 0x415c16
pop ebx
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0xf8]
xor ecx, esp
call fcn.0044027a
add esp, 0xfc
ret
mov ecx, dword [esp + 0xf8]
xor ecx, esp
xor eax, eax
call fcn.0044027a
add esp, 0xfc
ret