Function at 0x409390
Capabilities:
Delete file
Query or enumerate registry value
Set file attributes
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52d130
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x5976b8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x29c]
push ecx
push 0x2001f
xor ebx, ebx
push ebx
push str.SYSTEMCurrentControlSetControlSession_Manager
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x2ac], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x29c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4098da
mov eax, dword [ebp - 0x29c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 0x294]
push edx
push ebx
push ebx
push ebx
push str.PendingFileRenameOperations
push eax
mov dword [ebp - 0x294], ebx
call esi
mov eax, dword [ebp - 0x294]
xor ecx, ecx
lea eax, [eax + eax + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00415541
mov edi, eax
mov eax, dword [ebp - 0x294]
xor ecx, ecx
lea eax, [eax + eax + 1]
add esp, 4
mov edx, 2
mul edx
seto cl
mov dword [ebp - 0x2b0], edi
neg ecx
or ecx, eax
push ecx
call fcn.00415541
mov ecx, dword [ebp - 0x29c]
add esp, 4
mov dword [ebp - 0x2a8], eax
lea eax, [ebp - 0x294]
push eax
push edi
push ebx
push ebx
push str.PendingFileRenameOperations
push ecx
call esi
cmp eax, ebx
je 0x4094db
mov eax, dword [ebp - 0x2a8]
cmp eax, ebx
je 0x4094a1
push eax
call fcn.0041554c
add esp, 4
cmp edi, ebx
je 0x4094ae
push edi
call fcn.0041554c
add esp, 4
mov edx, dword [ebp - 0x29c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00514990
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x294]
mov edx, dword [ebp - 0x2a8]
lea ecx, [eax + eax + 1]
mov dword [ebp - 0x290], ebx
mov dword [ebp - 0x298], ebx
mov dword [ebp - 0x2a4], ecx
mov dword [ebp - 0x2a0], edx
mov esi, edi
jmp 0x40950d
mov ebx, dword [ebp - 0x290]
cmp ebx, eax
jae 0x409889
mov eax, dword [ebp - 0x2ac]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x40970f
xor ecx, ecx
mov eax, esi
mov dword [ebp - 0x2b4], esi
mov dword [ebp - 0x25c], 7
mov dword [ebp - 0x260], 0
mov word [ebp - 0x270], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409553
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x270]
call fcn.00408030
cmp dword [ebp - 0x25c], 8
mov edi, dword [ebp - 0x260]
jb 0x40958d
mov edx, dword [ebp - 0x270]
push edx
call fcn.0041554c
add esp, 4
xor eax, eax
mov word [ebp - 0x270], ax
mov eax, dword [ebp - 0x294]
mov dword [ebp - 0x25c], 7
mov dword [ebp - 0x260], 0
lea esi, [esi + edi*2]
lea ebx, [ebx + edi*2]
cmp word [esi], 0
mov dword [ebp - 0x290], ebx
jne 0x4095ce
cmp ebx, eax
jae 0x4095ce
add esi, 2
add ebx, 2
jmp 0x4095b6
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x21a]
push edx
mov word [ebp - 0x21c], cx
call fcn.005149a0
push 6
push str.____
call fcn.0051611e
push eax
push esi
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.00516051
add esp, 0x24
push str.____
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x409704
mov edx, dword [ebp - 0x2b4]
push 0x3a
push edx
call fcn.00515c90
add esp, 8
lea edi, [eax - 2]
push 0x20
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
mov word [ebp - 0x28c], ax
mov eax, esi
mov dword [ebp - 0x278], 7
mov dword [ebp - 0x27c], 0
lea edx, [eax + 2]
jmp 0x409670
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409670
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x28c]
call fcn.00408030
cmp dword [ebp - 0x278], 8
mov edi, dword [ebp - 0x27c]
jb 0x4096aa
mov ecx, dword [ebp - 0x28c]
push ecx
call fcn.0041554c
add esp, 4
mov eax, dword [ebp - 0x294]
xor edx, edx
mov dword [ebp - 0x278], 7
mov dword [ebp - 0x27c], 0
mov word [ebp - 0x28c], dx
lea esi, [esi + edi*2]
lea ebx, [ebx + edi*2]
mov dword [ebp - 0x290], ebx
cmp word [esi], dx
jne 0x4096ea
cmp ebx, eax
jae 0x4096f2
add esi, 2
add ebx, 2
jmp 0x4096d3
cmp ebx, eax
jb 0x409515
mov ecx, dword [ebp - 0x2a0]
xor eax, eax
add dword [ebp - 0x298], 2
mov word [ecx], ax
mov eax, dword [ebp - 0x294]
jmp 0x40950d
mov edx, dword [ebp - 0x2a4]
mov edi, dword [ebp - 0x2a0]
push esi
push edx
push edi
call fcn.00515853
add esp, 0xc
xor eax, eax
mov word [ebp - 0x254], ax
mov ebx, 7
mov eax, edi
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x244], 0
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409750
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x254]
call fcn.00408030
cmp dword [ebp - 0x240], 8
mov edi, dword [ebp - 0x244]
jb 0x40978a
mov ecx, dword [ebp - 0x254]
push ecx
call fcn.0041554c
add esp, 4
sub dword [ebp - 0x2a4], edi
mov dword [ebp - 0x240], ebx
xor edx, edx
lea ebx, [edi + edi]
add dword [ebp - 0x2a0], ebx
xor eax, eax
mov word [ebp - 0x238], ax
mov eax, esi
mov word [ebp - 0x254], dx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x224], 7
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4097d0
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x238]
call fcn.00408030
cmp dword [ebp - 0x224], 8
mov edi, dword [ebp - 0x228]
jb 0x40980a
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.0041554c
add esp, 4
add dword [ebp - 0x298], ebx
xor edx, edx
lea eax, [edi + edi]
add dword [ebp - 0x290], eax
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], 0
mov word [ebp - 0x238], dx
lea esi, [esi + edi*2]
lea esp, [esp]
mov eax, dword [ebp - 0x294]
cmp dword [ebp - 0x290], eax
jae 0x409507
cmp word [esi], dx
jne 0x409507
mov eax, dword [ebp - 0x2a0]
xor ecx, ecx
mov word [eax], cx
mov ecx, 2
add dword [ebp - 0x298], ecx
add dword [ebp - 0x290], ecx
add eax, ecx
add esi, ecx
dec dword [ebp - 0x2a4]
mov dword [ebp - 0x2a0], eax
jmp 0x409840
mov edx, dword [ebp - 0x298]
mov esi, dword [ebp - 0x2a8]
mov eax, dword [ebp - 0x29c]
push edx
push esi
push 7
push 0
push str.PendingFileRenameOperations
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x29c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x2b0]
test eax, eax
je 0x4098cd
push eax
call fcn.0041554c
add esp, 4
test esi, esi
je 0x4098da
push esi
call fcn.0041554c
add esp, 4
mov eax, 1
jmp 0x4094bd