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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62a818
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6a4
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x34], esi
mov eax, dword [esi + 0xdc]
mov dword [ebp - 4], 0
test eax, eax
je 0x54a6ab
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push edi
push 0x6e2db8
push eax
mov dword [ebp - 0x38], 0x10
call fcn.005e5bb8
add esp, 0xc
lea ecx, [ebp - 0x38]
lea edx, [ebp - 0x58]
lea eax, [ebp - 0x18]
push ecx
mov ecx, dword [esi + 0xdc]
push edx
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x54a6ab
mov edx, dword [ebp - 0x58]
mov ebx, dword [ebp + 0xc]
push edx
push ebx
lea eax, [ebp - 0x6b0]
push str._s_d
push eax
call fcn.005e60ec
add esp, 0x10
test edi, edi
je 0x54a647
push edi
push ebx
lea ecx, [ebp - 0x4a8]
push str._s_d
push ecx
call fcn.005e60ec
add esp, 0x10
jmp 0x54a65c
push ebx
lea edx, [ebp - 0x4a8]
push 0x6e29e0
push edx
call fcn.005e60ec
add esp, 0xc
lea ecx, [ebp - 0x30]
call fcn.005539e0
lea eax, [ebp - 0x6b0]
lea ecx, [ebp - 0x30]
push eax
mov byte [ebp - 4], 1
call fcn.00553c20
test eax, eax
je 0x54a6be
push eax
push edi
push str.Opening_file_error_during_check_alternative_for_record__d__errcode___ld_n
lea ecx, [ebp - 0x2a0]
push ecx
call fcn.005e5bb8
add esp, 0x10
lea edx, [ebp - 0x2a0]
push edx
mov ecx, esi
call fcn.005406a0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.00553a20
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x30]
push eax
call fcn.00554070
test eax, eax
jne 0x54a6d7
push eax
push edi
push str.Getting_file_size_error_during_check_alternative_for_record__d__errcode___ld_n
jmp 0x54a682
lea ecx, [ebp - 0x30]
call fcn.00553a30
lea eax, [ebp - 0x4a8]
lea ecx, [ebp - 0x30]
push eax
call fcn.00553c20
test eax, eax
jne 0x54a67b
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x30]
push eax
call fcn.00554070
test eax, eax
jne 0x54a70e
push eax
push edi
push str.Getting_file_size_error_during_check_alternative_for_record__d__errcode___ld_n
jmp 0x54a682
lea ecx, [ebp - 0x30]
call fcn.00553a30
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x3c]
cmp eax, ecx
jl 0x54a78c
jg 0x54a72c
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x40]
cmp ecx, eax
jbe 0x54a78c
lea edx, [ebp - 0x4a8]
push edx
call fcn.005e6c7e
add esp, 4
cmp eax, 0xffffffff
lea eax, [ebp - 0x4a8]
push eax
jne 0x54a760
lea ecx, [ebp - 0x2a0]
push str.Could_not_delete_temp_file__ls_n
push ecx
call fcn.005e5bb8
add esp, 0xc
jmp 0x54a691
lea ecx, [ebp - 0x6b0]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
neg eax
sbb eax, eax
inc eax
mov dword [ebp + 8], eax
je 0x54a7c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x6b0]
push eax
push edx
push str.Could_not_rename_temp_file__ls__errcode___ld_n
jmp 0x54a7ec
lea edx, [ebp - 0x6b0]
push edx
call fcn.005e6c7e
add esp, 4
cmp eax, 0xffffffff
jne 0x54a7c9
lea eax, [ebp - 0x6b0]
lea ecx, [ebp - 0x2a0]
push eax
push str.Could_not_delete_temp_file__ls_n
push ecx
call fcn.005e5bb8
add esp, 0xc
lea edx, [ebp - 0x2a0]
mov ecx, esi
push edx
call fcn.005406a0
mov ecx, dword [esi + 0xdc]
lea eax, [ebp - 0x18]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x54a69f
lea edx, [ebp - 0x18]
push eax
push edx
push str.Error_during_deleting_record_with_num__s__errcode___ld_n
lea eax, [ebp - 0x2a0]
push eax
call fcn.005e5bb8
add esp, 0x10
lea ecx, [ebp - 0x2a0]
push ecx
jmp 0x54a698