Function at 0x401dd0
Capabilities:
Check if file exists
Delete registry value
Get file attributes
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x224
mov eax, dword [esp + 0x228]
push esi
mov esi, ecx
sub eax, 0x9001
mov dword [esp + 0x18], esi
je 0x402082
dec eax
jne 0x4020b2
lea eax, [esp + 8]
push eax
push str.SoftwareAdobeAcrobat_DistillerSpooledJobs
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4020b2
push ebx
push ebp
push edi
mov ecx, 0x81
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x10]
stosb byte es:[edi], al
push ecx
lea eax, [esp + 0x1c]
xor ebp, ebp
push edx
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x34]
push ebp
lea edx, [esp + 0x3c]
push ecx
push edx
push ebp
push eax
mov dword [esp + 0x40], ebp
mov dword [esp + 0x48], 0x208
mov dword [esp + 0x38], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x3c], 4
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x40201d
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
inc eax
lea edx, [esp + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
push ecx
push edx
mov edx, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x38]
push ebp
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401f07
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebp
push ebp
push 3
push ebp
push 6
lea ecx, [esp + 0x40]
push 0x40000000
push ecx
call esi
cmp eax, 0xffffffff
je 0x401faf
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
push 0x12c
call ebx
push ebp
push ebp
push 3
push ebp
push 6
lea edx, [esp + 0x40]
push 0x40000000
push edx
call esi
cmp eax, 0xffffffff
jne 0x402043
jmp 0x401faf
lea ebp, [esp + 0x2c]
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
sub ebp, 3
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x40a12c
mov edx, ecx
or ecx, 0xffffffff
add edx, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401fad
push 0x12c
call ebx
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x2c]
push edx
mov ecx, dword [eax]
push ecx
call fcn.00401390
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x40a128
mov edx, ecx
or ecx, 0xffffffff
add edx, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
xor ebp, ebp
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x10]
stosb byte es:[edi], al
lea eax, [esp + 0x1c]
inc edx
push eax
lea eax, [esp + 0x1c]
push ecx
push eax
lea ecx, [esp + 0x34]
push ebp
lea eax, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x28]
push eax
push edx
push ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x48], 0x208
mov dword [esp + 0x38], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x3c], 4
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x401e7b
cmp dword [esp + 0x20], ebp
jne 0x40206a
mov esi, dword [esp + 0x24]
mov edx, dword [esi]
push 0x9002
push edx
call dword [sym.imp.USER32.dll_KillTimer]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x224
ret 4
push eax
call edi
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x2c]
push edx
mov ecx, dword [eax]
push ecx
call fcn.00401390
add esp, 8
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x224
ret 4
mov eax, dword [esi + 0x88]
mov ecx, dword [esi + eax*4 + 0x64]
push ecx
mov ecx, esi
call fcn.00401c30
mov ecx, dword [esi + 0x88]
inc ecx
mov eax, ecx
mov dword [esi + 0x88], ecx
cmp eax, 2
jle 0x4020b2
mov dword [esi + 0x88], 1
pop esi
add esp, 0x224
ret 4