Function at 0x54b970
Capabilities:
Delete registry value
Move file
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62a160
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x45c
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 0xdc]
mov dword [ebp - 0x10], esp
test eax, eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 4], 0
je 0x54bbf7
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push esi
push 0x6bdd8c
push eax
mov dword [ebp - 0x38], 0x10
call fcn.005e6db3
add esp, 0xc
lea ecx, [ebp - 0x38]
lea edx, [ebp - 0x58]
lea eax, [ebp - 0x18]
push ecx
mov ecx, dword [ebx + 0xdc]
push edx
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x54bbf7
mov edx, dword [0x6cc708]
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0x58]
mov edi, dword [ebp + 0xc]
push eax
push edi
lea ecx, [ebp - 0x468]
push str._s_d
push ecx
mov byte [ebp - 4], 1
call fcn.005e72e7
add esp, 0x10
test esi, esi
je 0x54ba34
push esi
push edi
lea edx, [ebp - 0x260]
push str._s_d
push edx
call fcn.005e72e7
add esp, 0x10
jmp 0x54ba49
push edi
lea eax, [ebp - 0x260]
push 0x6bd9b4
push eax
call fcn.005e72e7
add esp, 0xc
lea ecx, [ebp - 0x30]
call fcn.00554de0
lea ecx, [ebp - 0x468]
mov byte [ebp - 4], 2
push ecx
lea ecx, [ebp - 0x30]
call fcn.00555020
test eax, eax
jne 0x54bbc1
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00555470
test eax, eax
jne 0x54ba89
push 0
push esi
push str.Getting_file_size_error_during_check_alternative_for_record__d__errcode___ld_n
jmp 0x54bbc8
lea ecx, [ebp - 0x30]
call fcn.00554e30
lea ecx, [ebp - 0x260]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00555020
test eax, eax
jne 0x54bbc1
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00555470
test eax, eax
je 0x54ba7c
lea ecx, [ebp - 0x30]
call fcn.00554e30
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x3c]
cmp ecx, eax
jl 0x54bb46
jg 0x54bad6
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x40]
cmp edx, eax
jbe 0x54bb46
lea eax, [ebp - 0x260]
push eax
call fcn.005e7e7e
add esp, 4
lea ecx, [ebp - 0x260]
cmp eax, 0xffffffff
push ecx
jne 0x54bb07
lea edx, [ebp + 8]
push str.Could_not_delete_temp_file__ls_n
push edx
call fcn.005fb90b
add esp, 0xc
jmp 0x54bbd4
lea edx, [ebp - 0x468]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
neg eax
sbb eax, eax
inc eax
mov dword [ebp + 0xc], eax
je 0x54bb7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x468]
push eax
lea ecx, [ebp + 8]
push str.Could_not_rename_temp_file__ls__errcode___ld_n
push ecx
call fcn.005fb90b
mov edx, dword [ebp + 8]
add esp, 0x10
push edx
jmp 0x54bbd8
lea eax, [ebp - 0x468]
push eax
call fcn.005e7e7e
add esp, 4
cmp eax, 0xffffffff
jne 0x54bb7d
lea ecx, [ebp - 0x468]
lea edx, [ebp + 8]
push ecx
push str.Could_not_delete_temp_file__ls_n
push edx
call fcn.005fb90b
mov eax, dword [ebp + 8]
add esp, 0xc
mov ecx, ebx
push eax
call fcn.00541a30
mov edx, dword [ebx + 0xdc]
lea ecx, [ebp - 0x18]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x54bbdf
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp + 8]
push str.Error_during_deleting_record_with_num__s__errcode___ld_n
push ecx
call fcn.005fb90b
mov edx, dword [ebp + 8]
add esp, 0x10
push edx
jmp 0x54bbd8
push eax
push esi
push str.Opening_file_error_during_check_alternative_for_record__d__errcode___ld_n
lea edx, [ebp + 8]
push edx
call fcn.005fb90b
add esp, 0x10
mov eax, dword [ebp + 8]
push eax
mov ecx, ebx
call fcn.00541a30
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.00554e20
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call fcn.00602ad6
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8