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

Disassembly:
push ebp
lea ebp, [esp - 0x41c]
sub esp, 0x41c
push 0xffffffffffffffff
push 0x637308
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x70a308]
xor eax, ebp
mov dword [ebp + 0x418], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x34], esi
mov eax, dword [ebp + 0x428]
mov dword [ebp - 0x18], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 0xdc], ebx
je 0x5461d0
mov dword [ebp - 0x38], 0x10
mov edi, dword [ebp + 0x424]
push edi
push 0x681158
lea ecx, [ebp + 0x410]
push ecx
call fcn.005fb4cb
add esp, 0xc
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
lea ecx, [ebp + 0x410]
push ecx
mov edx, dword [esi + 0xdc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x5461d0
lea ecx, [ebp - 0x14]
call fcn.004024e0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
push str._s_d
lea edx, [ebp + 0x208]
push edx
call fcn.0040fac0
add esp, 0x10
cmp edi, ebx
je 0x546167
push edi
mov eax, dword [ebp - 0x18]
push eax
push str._s_d
lea ecx, [ebp]
push ecx
call fcn.0040fac0
add esp, 0x10
jmp 0x54617c
mov edx, dword [ebp - 0x18]
push edx
push 0x68148c
lea eax, [ebp]
push eax
call fcn.0040fac0
add esp, 0xc
lea ecx, [ebp - 0x30]
call fcn.00554f30
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x208]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00555550
cmp eax, ebx
je 0x5461f7
push eax
push edi
push str.Opening_file_error_during_check_alternative_for_record__d__errcode___ld_n
lea edx, [ebp - 0x14]
push edx
call fcn.00402f60
add esp, 0x10
mov eax, dword [ebp - 0x14]
push eax
mov ecx, esi
call fcn.00540ff0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.005553f0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00402550
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x418]
xor ecx, ebp
call fcn.005f85e7
add ebp, 0x41c
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00555380
test eax, eax
jne 0x546210
push ebx
push edi
push str.Getting_file_size_error_during_check_alternative_for_record__d__errcode___ld_n
jmp 0x5461a2
lea ecx, [ebp - 0x30]
call fcn.00554f50
lea ecx, [ebp]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00555550
cmp eax, ebx
jne 0x54619b
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00555380
test eax, eax
je 0x546207
lea ecx, [ebp - 0x30]
call fcn.00554f50
mov ecx, dword [ebp - 0x3c]
cmp ecx, dword [ebp - 0x44]
jl 0x5462ff
jg 0x54625e
mov edx, dword [ebp - 0x40]
cmp edx, dword [ebp - 0x48]
jbe 0x5462ff
lea eax, [ebp]
push eax
call fcn.005fc153
add esp, 4
cmp eax, 0xffffffff
jne 0x5462b0
lea ecx, [ebp]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00417ab0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x18]
push edx
push str.Could_not_delete_temp_file__s_n
lea eax, [ebp - 0x14]
push eax
call fcn.00402f60
add esp, 0xc
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, esi
call fcn.00540ff0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00402550
jmp 0x5461b9
lea edx, [ebp]
push edx
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
neg eax
sbb eax, eax
inc eax
cmp eax, ebx
je 0x546352
lea ecx, [ebp + 0x208]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00417ab0
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp - 0x18]
push edx
push str.Could_not_rename_temp_file__s__errcode___ld_n
lea eax, [ebp - 0x14]
push eax
call fcn.00402f60
add esp, 0x10
jmp 0x546294
lea edx, [ebp + 0x208]
push edx
call fcn.005fc153
add esp, 4
cmp eax, 0xffffffff
jne 0x546352
lea eax, [ebp + 0x208]
push eax
lea ecx, [ebp - 0x18]
call fcn.00417ab0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x18]
push ecx
push str.Could_not_delete_temp_file__s_n
lea edx, [ebp - 0x14]
push edx
call fcn.00402f60
add esp, 0xc
mov eax, dword [ebp - 0x14]
push eax
mov ecx, esi
call fcn.00540ff0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00402550
lea ecx, [ebp + 0x410]
push ecx
mov edx, dword [esi + 0xdc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, ebx
je 0x54638e
push eax
lea eax, [ebp + 0x410]
push eax
push str.Error_during_deleting_record_with_num__s__errcode___ld_n
lea ecx, [ebp - 0x14]
push ecx
call fcn.00402f60
add esp, 0x10
mov edx, dword [ebp - 0x14]
push edx
mov ecx, esi
call fcn.00540ff0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.005553f0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00402550
mov dword [ebp - 4], 0xffffffff
jmp 0x5461d0