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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62b150
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 0x54c9a7
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push esi
push 0x6bee2c
push eax
mov dword [ebp - 0x38], 0x10
call fcn.005e7bd3
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 0x54c9a7
mov edx, dword [0x6cd768]
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.005e8107
add esp, 0x10
test esi, esi
je 0x54c7e4
push esi
push edi
lea edx, [ebp - 0x260]
push str._s_d
push edx
call fcn.005e8107
add esp, 0x10
jmp 0x54c7f9
push edi
lea eax, [ebp - 0x260]
push 0x6bea54
push eax
call fcn.005e8107
add esp, 0xc
lea ecx, [ebp - 0x30]
call fcn.00555b90
lea ecx, [ebp - 0x468]
mov byte [ebp - 4], 2
push ecx
lea ecx, [ebp - 0x30]
call fcn.00555dd0
test eax, eax
jne 0x54c971
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00556220
test eax, eax
jne 0x54c839
push 0
push esi
push str.Getting_file_size_error_during_check_alternative_for_record__d__errcode___ld_n
jmp 0x54c978
lea ecx, [ebp - 0x30]
call fcn.00555be0
lea ecx, [ebp - 0x260]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00555dd0
test eax, eax
jne 0x54c971
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00556220
test eax, eax
je 0x54c82c
lea ecx, [ebp - 0x30]
call fcn.00555be0
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x3c]
cmp ecx, eax
jl 0x54c8f6
jg 0x54c886
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x40]
cmp edx, eax
jbe 0x54c8f6
lea eax, [ebp - 0x260]
push eax
call fcn.005e8c9e
add esp, 4
lea ecx, [ebp - 0x260]
cmp eax, 0xffffffff
push ecx
jne 0x54c8b7
lea edx, [ebp + 8]
push str.Could_not_delete_temp_file__ls_n
push edx
call fcn.005fc86b
add esp, 0xc
jmp 0x54c984
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 0x54c92d
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.005fc86b
mov edx, dword [ebp + 8]
add esp, 0x10
push edx
jmp 0x54c988
lea eax, [ebp - 0x468]
push eax
call fcn.005e8c9e
add esp, 4
cmp eax, 0xffffffff
jne 0x54c92d
lea ecx, [ebp - 0x468]
lea edx, [ebp + 8]
push ecx
push str.Could_not_delete_temp_file__ls_n
push edx
call fcn.005fc86b
mov eax, dword [ebp + 8]
add esp, 0xc
mov ecx, ebx
push eax
call fcn.005427e0
mov edx, dword [ebx + 0xdc]
lea ecx, [ebp - 0x18]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x54c98f
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.005fc86b
mov edx, dword [ebp + 8]
add esp, 0x10
push edx
jmp 0x54c988
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.005fc86b
add esp, 0x10
mov eax, dword [ebp + 8]
push eax
mov ecx, ebx
call fcn.005427e0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.00555bd0
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call fcn.00603a3c
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8