Function at 0x406530
Capabilities:
Delete file
Delete registry key
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x511ab1
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x5467a4]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5467a4]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov ebx, dword [esp + 0xb8]
lea esi, [esp + 0x88]
call fcn.0043e4e0
lea edi, [ebx + 0x298]
lea eax, [esp + 0x88]
push edi
xor esi, esi
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0xb8], esi
mov dword [esp + 0x38], edi
call fcn.0043b740
add esp, 8
push 0xffffffffffffffff
push esi
push eax
lea eax, [esp + 0x94]
mov byte [esp + 0xbc], 1
call fcn.00401610
mov ebp, 8
mov byte [esp + 0xb0], 0
cmp dword [esp + 0x2c], ebp
jb 0x4065de
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004e7d7e
add esp, 4
lea edx, [esp + 0x88]
push edx
call fcn.0043a990
push edi
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
lea edi, [esp + 0x74]
call fcn.00407750
add esp, 8
mov byte [esp + 0xb0], 2
cmp dword [esp + 0x84], ebp
mov eax, dword [esp + 0x70]
jae 0x406616
lea eax, [esp + 0x70]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0xd
mov dword [esp + 0x2c], esi
mov word [esp + 0x1c], si
mov edi, 7
push 0x51a640
lea esi, [esp + 0x1c]
mov dword [esp + 0x34], edi
call fcn.00407330
mov eax, esi
push eax
add ebx, 0x2d0
push ebx
lea ecx, [esp + 0x58]
mov byte [esp + 0xb8], 3
call fcn.0043b740
add esp, 8
mov byte [esp + 0xb0], 5
cmp dword [esp + 0x2c], ebp
jb 0x40667d
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004e7d7e
add esp, 4
xor eax, eax
cmp dword [esp + 0x68], ebp
mov dword [esp + 0x28], eax
mov word [esp + 0x18], ax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x2c], edi
jae 0x40669a
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [esp + 0x54]
and eax, 0xfffffffe
cmp dword [esp + 0x68], ebp
jae 0x4066b2
lea ecx, [esp + 0x54]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esp + 0x68], ebp
mov eax, dword [esp + 0x54]
jae 0x4066c8
lea eax, [esp + 0x54]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
lea esi, [esp + 0x34]
call fcn.0043e4a0
mov edx, dword [esp + 0x30]
push edx
mov eax, esi
mov bl, 6
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb8], bl
call fcn.0043b740
add esp, 8
push 0xffffffffffffffff
xor esi, esi
push esi
push eax
lea eax, [esp + 0x40]
mov byte [esp + 0xbc], 7
call fcn.00401610
mov byte [esp + 0xb0], bl
cmp dword [esp + 0x2c], ebp
jb 0x406728
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004e7d7e
add esp, 4
push 4
push 0x51a628
lea ecx, [esp + 0x3c]
call fcn.00407230
cmp dword [esp + 0x4c], ebp
mov eax, dword [esp + 0x38]
jae 0x406746
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [esp + 0x38]
and eax, 0xfffffffe
cmp dword [esp + 0x4c], ebp
jae 0x40675e
lea ecx, [esp + 0x38]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esp + 0x4c], ebp
mov eax, dword [esp + 0x38]
jae 0x406774
lea eax, [esp + 0x38]
push eax
call edi
cmp dword [esp + 0x4c], ebp
jb 0x40678a
mov edx, dword [esp + 0x38]
push edx
call fcn.004e7d7e
add esp, 4
cmp dword [esp + 0x68], ebp
mov edi, 7
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], esi
mov word [esp + 0x38], si
jb 0x4067af
mov eax, dword [esp + 0x54]
push eax
call fcn.004e7d7e
add esp, 4
cmp dword [esp + 0x84], ebp
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], esi
mov word [esp + 0x54], si
jb 0x4067d2
mov ecx, dword [esp + 0x70]
push ecx
call fcn.004e7d7e
add esp, 4
cmp dword [esp + 0xa0], ebp
mov dword [esp + 0x84], edi
mov dword [esp + 0x80], esi
mov word [esp + 0x70], si
jb 0x4067fe
mov edx, dword [esp + 0x8c]
push edx
call fcn.004e7d7e
add esp, 4
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.004e7d6f
add esp, 0xa0
ret 4