Function at 0x416080
Capabilities:
Delete file
Get common file path
Query or enumerate registry value
Resolve function by parsing pe exports
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x457bf9
mov eax, dword fs:[0]
push eax
mov eax, 0x2840
call fcn.00441390
mov eax, dword [0x46be4c]
xor eax, esp
mov dword [esp + 0x283c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46be4c]
xor eax, esp
push eax
lea eax, [esp + 0x2854]
mov dword fs:[0], eax
lea ecx, [esp + 0x1360]
mov dword [esp + 0x2c], 1
call fcn.0042df50
xor ebp, ebp
lea ecx, [esp + 0x4c]
mov dword [esp + 0x285c], ebp
call fcn.004306c2
lea ecx, [esp + 0x64]
mov byte [esp + 0x285c], 1
call fcn.004306c2
push 0x45c6da
lea ecx, [esp + 0x18]
mov byte [esp + 0x2860], 2
call fcn.004027b0
push 0x45c6da
lea ecx, [esp + 0x24]
mov byte [esp + 0x2860], 3
call fcn.004027b0
push 0x45c6da
lea ecx, [esp + 0x28]
mov byte [esp + 0x2860], 4
call fcn.004027b0
lea ecx, [esp + 0x78]
mov byte [esp + 0x285c], 5
call fcn.0042df50
lea ecx, [esp + 0x30]
mov byte [esp + 0x285c], 6
call fcn.004306c2
mov byte [esp + 0x285c], 7
call fcn.004316f5
mov esi, dword [eax + 4]
call fcn.004048c0
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0xa8]
sub eax, 0x10
push eax
call fcn.004015c0
lea edi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x18], edi
push 0xffffffffffffffff
mov bl, 8
push ebp
lea ecx, [esp + 0x38]
mov byte [esp + 0x2864], bl
call fcn.0043081b
xor esi, esi
test esi, esi
mov eax, dword [edi - 0xc]
jl 0x416236
cmp esi, eax
jge 0x416236
lea eax, [esi + edi]
push 9
push eax
call fcn.00442df6
add esp, 8
test eax, eax
je 0x416236
sub eax, dword [esp + 0x18]
mov edi, eax
js 0x416236
cmp edi, esi
jle 0x41622a
mov ecx, edi
sub ecx, esi
push ecx
push esi
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x24]
call fcn.00401910
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x1c]
push eax
push ecx
lea ecx, [esp + 0x38]
mov byte [esp + 0x2864], 0xa
call fcn.00430be6
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x285c], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41622a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [edi + 1]
mov edi, dword [esp + 0x18]
jmp 0x4161a3
push esi
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x20]
call fcn.00401ea0
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x2864], 9
call fcn.00430be6
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x285c], bl
add eax, 0xfffffff0
or ebx, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416289
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x104
lea ecx, [esp + 0x264c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x4163a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov ecx, ebx
lea edx, [eax + 0xc]
mov byte [esp + 0x285c], 7
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4162d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x285c], 6
call fcn.00430a6d
lea ecx, [esp + 0x78]
mov byte [esp + 0x285c], 5
call fcn.0042e100
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x285c], 4
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41631a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x285c], 3
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416341
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov edx, ebx
lea ecx, [eax + 0xc]
mov byte [esp + 0x285c], 2
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416368
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x64]
mov byte [esp + 0x285c], 1
call fcn.00430a6d
lea ecx, [esp + 0x4c]
mov byte [esp + 0x285c], 0
call fcn.00430a6d
lea ecx, [esp + 0x1360]
mov dword [esp + 0x285c], ebx
call fcn.0042e100
xor eax, eax
jmp 0x4168f1
lea eax, [esp + 0x2648]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4163b0
sub eax, edx
push eax
lea ecx, [esp + 0x264c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401bc0
push 0xb
push str.infother_
lea ecx, [esp + 0x1c]
call fcn.00401c50
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x416407
push 0x104
lea ecx, [esp + 0x18]
call fcn.00401570
mov edx, dword [esp + 0x14]
push str.Canon
push edx
lea ecx, [esp + 0x80]
call fcn.0042fa10
test eax, eax
jle 0x416465
push eax
mov eax, dword [esp + 0x18]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x30], esp
mov esi, esp
push eax
mov ebp, 1
call fcn.004015c0
add eax, 0x10
add esp, 4
lea edx, [esp + 0x38]
mov dword [esi], eax
push edx
lea eax, [esp + 0x84]
push eax
call fcn.00413070
mov edi, eax
add esp, 0x10
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], edi
call fcn.00401440
jmp 0x416469
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x2648]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x416473
sub eax, edx
push eax
lea ecx, [esp + 0x264c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401bc0
push 5
push str.inf_
lea ecx, [esp + 0x1c]
call fcn.00401c50
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x4164ca
push 0x104
lea ecx, [esp + 0x18]
call fcn.00401570
mov edx, dword [esp + 0x14]
push str.Canon
push edx
lea ecx, [esp + 0x80]
call fcn.0042fa10
test eax, eax
jle 0x416560
push eax
mov eax, dword [esp + 0x18]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x30], esp
mov esi, esp
push eax
mov ebp, 1
call fcn.004015c0
add eax, 0x10
add esp, 4
lea edx, [esp + 0x38]
mov dword [esi], eax
push edx
lea eax, [esp + 0x84]
push eax
call fcn.00413070
add esp, 0x10
test eax, eax
je 0x416560
test edi, edi
jne 0x416560
mov edx, dword [esp + 0x14]
test edx, edx
jne 0x41652f
xor eax, eax
jmp 0x416541
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x416534
sub eax, esi
js 0x416556
cmp eax, dword [edx - 8]
jg 0x416556
mov dword [edx - 0xc], eax
mov ecx, dword [esp + 0x14]
mov byte [eax + ecx], 0
jmp 0x4162aa
push 0x80070057
call fcn.00401090
mov edx, dword [esp + 0x14]
test edx, edx
jne 0x41656c
xor eax, eax
jmp 0x41657e
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x416571
sub eax, esi
js 0x416556
cmp eax, dword [edx - 8]
jg 0x416556
test ebp, ebp
mov dword [edx - 0xc], eax
mov ecx, dword [esp + 0x14]
mov byte [eax + ecx], 0
jne 0x41673d
lea edx, [esp + 0x1c]
push edx
push 0x20019
push ebp
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push 0x80000002
mov dword [esp + 0x3c], 1
mov dword [esp + 0x5c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4165f3
lea eax, [esp + 0x48]
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x264c]
push ecx
lea edx, [esp + 0x30]
push edx
push ebp
push str.SystemRoot
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x14]
call fcn.00401440
lea eax, [esp + 0x2648]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x416606
sub eax, edx
push eax
lea edx, [esp + 0x264c]
push edx
lea ecx, [esp + 0x1c]
call fcn.00401bc0
push 5
push str.inf_
lea ecx, [esp + 0x1c]
call fcn.00401c50
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x41665d
push 0x104
lea ecx, [esp + 0x18]
call fcn.00401570
mov edx, dword [esp + 0x14]
push str.Canon
push edx
lea ecx, [esp + 0x80]
call fcn.0042fa10
test eax, eax
jle 0x416707
push eax
mov eax, dword [esp + 0x18]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x68], esp
mov esi, esp
push eax
call fcn.004015c0
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x84]
push ecx
call fcn.00413070
add esp, 0x10
test eax, eax
je 0x416707
test edi, edi
jne 0x416707
mov edx, dword [esp + 0x14]
test edx, edx
jne 0x4166bd
xor eax, eax
jmp 0x4166d3
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4166c2
sub eax, esi
js 0x416556
cmp eax, dword [edx - 8]
jg 0x416556
mov dword [edx - 0xc], eax
mov edx, dword [esp + 0x14]
mov byte [eax + edx], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x285c], 7
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4162c5
mov edx, dword [esp + 0x14]
test edx, edx
jne 0x416713
xor eax, eax
jmp 0x416729
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x416718
sub eax, esi
js 0x416556
cmp eax, dword [edx - 8]
jg 0x416556
mov dword [edx - 0xc], eax
mov ecx, dword [esp + 0x14]
mov byte [eax + ecx], 0
mov eax, dword [esp + 0x44]
cmp eax, 2
je 0x41674f
cmp eax, 3
jne 0x4167f0
push 0x103
lea edx, [esp + 0x2751]
push 0
push edx
mov byte [esp + 0x2758], 0
call fcn.004413c0
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x2654]
push eax
lea ecx, [esp + 0x275c]
push str._sINFDrvData.BIN
push ecx
mov ebx, 1
call esi
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
add esp, 0x18
push 0x20
lea edx, [esp + 0x2750]
push edx
call edi
test eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
je 0x4167b8
lea eax, [esp + 0x274c]
push eax
call ebp
mov ebx, eax
lea ecx, [esp + 0x2648]
push ecx
lea edx, [esp + 0x2750]
push str._sINFDrvIDX.BIN
push edx
call esi
add esp, 0xc
push 0x20
lea eax, [esp + 0x2750]
push eax
call edi
test eax, eax
je 0x4167f4
lea ecx, [esp + 0x274c]
push ecx
call ebp
mov ebx, eax
jmp 0x4167f4
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x285c], 7
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41681c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x285c], 6
call fcn.00430a6d
lea ecx, [esp + 0x78]
mov byte [esp + 0x285c], 5
call fcn.0042e100
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x285c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416866
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x285c], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41688e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x285c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4168b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x64]
mov byte [esp + 0x285c], 1
call fcn.00430a6d
lea ecx, [esp + 0x4c]
mov byte [esp + 0x285c], 0
call fcn.00430a6d
lea ecx, [esp + 0x1360]
mov dword [esp + 0x285c], 0xffffffff
call fcn.0042e100
mov eax, ebx
mov ecx, dword [esp + 0x2854]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x283c]
xor ecx, esp
call fcn.0044027a
add esp, 0x284c
ret