Function at 0x497220
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x548a20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov ebx, dword [ecx + 4]
push edi
mov edi, dword [esp + 0x24]
push str.FILE
mov eax, dword [edi]
push eax
call fcn.004f9670
add esp, 8
test eax, eax
je 0x497485
mov ecx, dword [0x5ab980]
mov dword [esp + 0x24], ecx
test ebx, ebx
mov dword [esp + 0x1c], 0
je 0x49746f
mov ebp, dword [esp + 0x2c]
mov eax, ebx
mov ebx, dword [ebx]
test ebp, ebp
mov esi, dword [eax + 8]
je 0x49728b
cmp dword [esi + 4], ebp
je 0x497467
lea edx, [esi + 8]
lea ecx, [esp + 0x24]
push edx
call fcn.00512a1d
mov eax, dword [edi]
push str.HKEY_L
push eax
call fcn.00422ad0
add esp, 8
test eax, eax
je 0x4972de
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push edi
call fcn.00512659
push ecx
mov byte [esp + 0x24], 1
mov ecx, esp
mov dword [esp + 0x18], esp
push str.HKLM
call fcn.00512952
lea eax, [esp + 0x2c]
mov byte [esp + 0x24], 0
push eax
jmp 0x497367
mov eax, dword [edi]
push str.HKEY_U
push eax
call fcn.00422ad0
add esp, 8
test eax, eax
jne 0x497306
mov eax, dword [edi]
push str.HKEY_CU
push eax
call fcn.00422ad0
add esp, 8
test eax, eax
je 0x49736f
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push edi
call fcn.00512659
push ecx
mov byte [esp + 0x24], 2
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x5981dc
call fcn.00512952
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], 0
push ecx
call fcn.00425630
add esp, 8
mov ecx, esp
mov dword [esp + 0x30], esp
push edi
call fcn.00512659
push ecx
mov byte [esp + 0x24], 3
mov ecx, esp
mov dword [esp + 0x18], esp
push str.HKCU
call fcn.00512952
lea edx, [esp + 0x2c]
mov byte [esp + 0x24], 0
push edx
call fcn.00425630
add esp, 0xc
mov eax, dword [edi]
push eax
mov eax, dword [esp + 0x28]
push eax
call fcn.00422ad0
add esp, 8
test eax, eax
je 0x497467
mov eax, dword [esi + 4]
dec eax
je 0x4973f3
dec eax
jne 0x497467
mov ecx, dword [0x5ab980]
mov dword [esp + 0x2c], ecx
mov esi, dword [esi + 0xc]
mov byte [esp + 0x1c], 4
mov eax, dword [esi - 8]
test eax, eax
jne 0x4973d5
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x2c]
lea eax, [esp + 0x28]
push edx
push eax
push ecx
call fcn.0041f330
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
push edx
push eax
call fcn.0041e9a0
add esp, 0x14
jmp 0x4973e3
mov ecx, dword [esp + 0x24]
push esi
push ecx
call fcn.0041ea90
add esp, 8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1c], 0
call fcn.005128e4
jmp 0x497467
mov eax, dword [esi + 0x4c]
cmp eax, 4
jne 0x497412
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0xc]
push edx
push eax
mov eax, dword [esp + 0x2c]
push eax
call fcn.0041e5a0
add esp, 0xc
jmp 0x497467
cmp eax, 1
jne 0x49742d
mov eax, dword [esi + 0x14]
mov esi, dword [esi + 0xc]
mov ecx, dword [esp + 0x24]
push 1
push eax
push esi
push ecx
call fcn.0041e450
jmp 0x497464
cmp eax, 7
jne 0x497449
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0x24]
add esi, 0x30
push esi
push eax
push edx
call fcn.0041e820
add esp, 0xc
jmp 0x497467
cmp eax, 3
jne 0x497467
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
mov esi, dword [esi + 0xc]
push eax
mov eax, dword [esp + 0x28]
push ecx
push esi
push eax
call fcn.0041e6f0
add esp, 0x10
test ebx, ebx
jne 0x497277
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.005128e4
jmp 0x497524
test ebx, ebx
je 0x497524
mov ebp, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
mov eax, ebx
mov ebx, dword [ebx]
test ebp, ebp
mov eax, dword [eax + 8]
je 0x4974a5
cmp dword [eax + 4], ebp
je 0x49751c
mov ecx, dword [eax + 0x10]
lea esi, [eax + 0x10]
mov edx, dword [ecx - 8]
test edx, edx
je 0x49751c
cmp dword [eax + 4], 4
jne 0x49751c
lea edx, [esp + 0x28]
mov ecx, 0x5b8c78
push edx
push esi
call fcn.0049e260
cmp eax, 1
jne 0x4974de
mov eax, dword [esi]
push eax
push str._nSuccessfully_backedup____s
push edi
call fcn.0050e6c7
add esp, 0xc
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x49751c
push esi
lea ecx, [esp + 0x30]
push str._nFile_Removed__
push ecx
call fcn.00512bed
push eax
mov ecx, edi
mov dword [esp + 0x20], 5
call fcn.00512cfc
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c], 0xffffffff
call fcn.005128e4
test ebx, ebx
jne 0x497495
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0x10
ret 0xc