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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x448439
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x2848
call fcn.0042dd50
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x1570]
mov dword [esp + 0x2c], 1
call fcn.00424960
xor ebp, ebp
lea ecx, [esp + 0x4c]
mov dword [esp + 0x2864], ebp
call fcn.0043be4f
lea ecx, [esp + 0x60]
mov byte [esp + 0x2864], 1
call fcn.0043be4f
push 0x44b62a
lea ecx, [esp + 0x18]
mov byte [esp + 0x2868], 2
call fcn.00402470
push 0x44b62a
lea ecx, [esp + 0x24]
mov byte [esp + 0x2868], 3
call fcn.00402470
push 0x44b62a
lea ecx, [esp + 0x28]
mov byte [esp + 0x2868], 4
call fcn.00402470
lea ecx, [esp + 0x288]
mov byte [esp + 0x2864], 5
call fcn.00424960
lea ecx, [esp + 0x30]
mov byte [esp + 0x2864], 6
call fcn.0043be4f
mov byte [esp + 0x2864], 7
call fcn.0044608e
mov esi, dword [eax + 4]
call fcn.00404100
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0xa4]
sub eax, 0x10
push eax
call fcn.004014e0
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 + 0x286c], bl
call fcn.0043bec1
xor esi, esi
test esi, esi
mov eax, dword [edi - 0xc]
jl 0x41091c
cmp esi, eax
jge 0x41091c
lea eax, [esi + edi]
push 9
push eax
call fcn.0042f4d1
add esp, 8
test eax, eax
je 0x41091c
sub eax, dword [esp + 0x18]
mov edi, eax
js 0x41091c
cmp edi, esi
jle 0x410910
sub eax, esi
push eax
push esi
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x24]
call fcn.00401730
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x286c], 0xa
call fcn.0043c0dd
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x2864], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410910
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea esi, [edi + 1]
mov edi, dword [esp + 0x18]
jmp 0x410891
push esi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
call fcn.00401cf0
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x1c]
push ecx
push edx
lea ecx, [esp + 0x38]
mov byte [esp + 0x286c], 9
call fcn.0043c0dd
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x2864], 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 0x41096d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 0x104
lea eax, [esp + 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x41098c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x410ce4
lea eax, [esp + 0x78]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410993
sub eax, edx
push eax
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401a70
push 0xb
push str.infother_
lea ecx, [esp + 0x1c]
call fcn.00401b10
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [edx - 8]
sub eax, 0x104
or eax, ecx
jge 0x4109e7
push 0x104
lea ecx, [esp + 0x18]
call fcn.00401490
mov edx, dword [esp + 0x14]
push str.Canon
push edx
lea ecx, [esp + 0x290]
call fcn.00426470
test eax, eax
jle 0x410a45
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.004014e0
add esp, 4
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x294]
add eax, 0x10
push edx
mov dword [esi], eax
call fcn.0040f3c0
mov edi, eax
add esp, 0x10
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], edi
call fcn.00401360
jmp 0x410a49
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x78]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410a50
sub eax, edx
push eax
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401a70
push 5
push str.inf_
lea ecx, [esp + 0x1c]
call fcn.00401b10
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [edx - 8]
sub eax, 0x104
or eax, ecx
jge 0x410aa4
push 0x104
lea ecx, [esp + 0x18]
call fcn.00401490
mov edx, dword [esp + 0x14]
push str.Canon
push edx
lea ecx, [esp + 0x290]
call fcn.00426470
test eax, eax
jle 0x410b53
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.004014e0
add esp, 4
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x294]
add eax, 0x10
push edx
mov dword [esi], eax
call fcn.0040f3c0
add esp, 0x10
test eax, eax
je 0x410b53
test edi, edi
jne 0x410b53
mov edx, dword [esp + 0x14]
test edx, edx
jne 0x410b09
xor eax, eax
jmp 0x410b1f
mov eax, edx
lea esi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410b10
sub eax, esi
js 0x410fe1
cmp eax, dword [edx - 8]
jg 0x410fe1
mov dword [edx - 0xc], eax
mov ecx, dword [esp + 0x14]
mov byte [eax + ecx], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x2864], 7
lea edx, [eax + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x410cff
mov edx, dword [esp + 0x14]
test edx, edx
jne 0x410b5f
xor eax, eax
jmp 0x410b73
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410b64
sub eax, esi
js 0x410fe1
cmp eax, dword [edx - 8]
jg 0x410fe1
test ebp, ebp
mov dword [edx - 0xc], eax
mov ecx, dword [esp + 0x14]
mov byte [eax + ecx], 0
jne 0x410e23
lea edx, [esp + 0x1c]
push edx
push 0x20019
push ebp
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x3c], 1
mov dword [esp + 0x5c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x410be9
lea eax, [esp + 0x48]
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x7c]
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.00401360
lea eax, [esp + 0x78]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410c00
sub eax, edx
push eax
lea edx, [esp + 0x7c]
push edx
lea ecx, [esp + 0x1c]
call fcn.00401a70
push 5
push str.inf_
lea ecx, [esp + 0x1c]
call fcn.00401b10
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [edx - 8]
sub eax, 0x104
or eax, ecx
jge 0x410c54
push 0x104
lea ecx, [esp + 0x18]
call fcn.00401490
mov edx, dword [esp + 0x14]
push str.Canon
push edx
lea ecx, [esp + 0x290]
call fcn.00426470
test eax, eax
jle 0x410dea
push eax
mov eax, dword [esp + 0x18]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x7c], esp
mov esi, esp
push eax
call fcn.004014e0
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x294]
push ecx
call fcn.0040f3c0
add esp, 0x10
test eax, eax
je 0x410dea
test edi, edi
jne 0x410dea
mov edx, dword [esp + 0x14]
test edx, edx
jne 0x410cbc
xor eax, eax
jmp 0x410cd0
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410cc1
sub eax, esi
js 0x410fe1
cmp eax, dword [edx - 8]
jg 0x410fe1
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 + 0x2864], 7
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410d09
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x30]
mov byte [esp + 0x2864], 6
call fcn.0043bea1
lea ecx, [esp + 0x288]
mov byte [esp + 0x2864], 5
call fcn.00424aa0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x2864], 4
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410d53
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x2864], 3
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410d78
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x2864], 2
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410d9d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x60]
mov byte [esp + 0x2864], 1
call fcn.0043bea1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x2864], 0
call fcn.0043bea1
lea ecx, [esp + 0x1570]
mov dword [esp + 0x2864], ebx
call fcn.00424aa0
xor eax, eax
mov ecx, dword [esp + 0x285c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x14]
test edx, edx
jne 0x410df6
xor eax, eax
jmp 0x410e0f
mov eax, edx
lea esi, [eax + 1]
jmp 0x410e00
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410e00
sub eax, esi
js 0x410fe1
cmp eax, dword [edx - 8]
jg 0x410fe1
mov dword [edx - 0xc], eax
mov ecx, dword [esp + 0x14]
mov byte [eax + ecx], 0
mov eax, dword [esp + 0x44]
cmp eax, 2
je 0x410e35
cmp eax, 3
jne 0x410ecf
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
xor eax, eax
mov byte [esp + 0x180], 0
mov ecx, 0x40
lea edi, [esp + 0x181]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x78]
push edx
stosb byte es:[edi], al
lea eax, [esp + 0x184]
push str._sINFDrvData.BIN
push eax
mov ebx, 1
call esi
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
add esp, 0xc
push 0x20
lea ecx, [esp + 0x184]
push ecx
call edi
test eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
je 0x410e9a
lea edx, [esp + 0x180]
push edx
call ebp
mov ebx, eax
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x184]
push str._sINFDrvIDX.BIN
push ecx
call esi
add esp, 0xc
push 0x20
lea edx, [esp + 0x184]
push edx
call edi
test eax, eax
je 0x410ed3
lea eax, [esp + 0x180]
push eax
call ebp
mov ebx, eax
jmp 0x410ed3
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x2864], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410ef9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x30]
mov byte [esp + 0x2864], 6
call fcn.0043bea1
lea ecx, [esp + 0x288]
mov byte [esp + 0x2864], 5
call fcn.00424aa0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x2864], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410f44
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x2864], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410f6a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x2864], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410f90
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x60]
mov byte [esp + 0x2864], 1
call fcn.0043bea1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x2864], 0
call fcn.0043bea1
lea ecx, [esp + 0x1570]
mov dword [esp + 0x2864], 0xffffffff
call fcn.00424aa0
mov ecx, dword [esp + 0x285c]
pop edi
mov eax, ebx
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004010c0
int3