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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64fba8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x460
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 - 0x38], ebx
mov dword [ebp - 4], 0
je 0x567130
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push esi
push 0x6e8c04
push eax
mov dword [ebp - 0x3c], 0x10
call fcn.0060a593
add esp, 0xc
lea ecx, [ebp - 0x3c]
lea edx, [ebp - 0x5c]
lea eax, [ebp - 0x1c]
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 0x567130
mov edx, dword [0x6f7b78]
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0x5c]
mov edi, dword [ebp + 0xc]
push eax
push edi
lea ecx, [ebp - 0x46c]
push str._s_d
push ecx
mov byte [ebp - 4], 1
call fcn.0060aac7
add esp, 0x10
test esi, esi
je 0x566ef4
push esi
push edi
lea edx, [ebp - 0x264]
push str._s_d
push edx
call fcn.0060aac7
add esp, 0x10
jmp 0x566f09
push edi
lea eax, [ebp - 0x264]
push 0x6e8830
push eax
call fcn.0060aac7
add esp, 0xc
lea ecx, [ebp - 0x34]
call fcn.00570410
lea ecx, [ebp - 0x46c]
mov byte [ebp - 4], 2
push ecx
lea ecx, [ebp - 0x34]
call fcn.00570650
test eax, eax
jne 0x5670fa
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x34]
call fcn.00570aa0
test eax, eax
jne 0x566f49
push 0
push esi
push str.Getting_file_size_error_during_check_alternative_for_record__d__errcode___ld_n
jmp 0x567101
lea ecx, [ebp - 0x34]
call fcn.00570460
lea ecx, [ebp - 0x264]
push ecx
lea ecx, [ebp - 0x34]
call fcn.00570650
test eax, eax
jne 0x5670fa
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x34]
call fcn.00570aa0
test eax, eax
je 0x566f3c
lea ecx, [ebp - 0x34]
call fcn.00570460
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x48]
cmp ecx, eax
jl 0x567063
jg 0x566f9e
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x4c]
cmp edx, eax
jbe 0x567063
lea eax, [ebp - 0x264]
push eax
call fcn.0060b6fb
add esp, 4
cmp eax, 0xffffffff
jne 0x566ff6
lea ecx, [ebp - 0x264]
push ecx
lea ecx, [ebp + 0xc]
call fcn.00622e4a
mov edx, dword [ebp + 0xc]
lea eax, [ebp + 8]
push edx
push str.Could_not_delete_temp_file__s_n
push eax
mov byte [ebp - 4], 3
call fcn.0061fae1
mov ecx, dword [ebp + 8]
add esp, 0xc
push ecx
mov ecx, ebx
call fcn.0055c480
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.00622d8a
jmp 0x567118
lea edx, [ebp - 0x264]
lea eax, [ebp - 0x46c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
neg eax
sbb eax, eax
inc eax
mov dword [ebp + 0xc], eax
je 0x5670b6
lea ecx, [ebp - 0x46c]
push ecx
lea ecx, [ebp + 0xc]
call fcn.00622e4a
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0xc]
push eax
push edx
lea eax, [ebp + 8]
push str.Could_not_rename_temp_file__s__errcode___ld_n
push eax
call fcn.0061fae1
mov ecx, dword [ebp + 8]
add esp, 0x10
push ecx
mov ecx, ebx
call fcn.0055c480
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.00622d8a
jmp 0x567118
lea edx, [ebp - 0x46c]
push edx
call fcn.0060b6fb
add esp, 4
cmp eax, 0xffffffff
jne 0x5670b6
lea eax, [ebp - 0x46c]
lea ecx, [ebp - 0x14]
push eax
call fcn.00622e4a
mov ecx, dword [ebp - 0x14]
lea edx, [ebp + 8]
push ecx
push str.Could_not_delete_temp_file__s_n
push edx
mov byte [ebp - 4], 5
call fcn.0061fae1
mov eax, dword [ebp + 8]
add esp, 0xc
mov ecx, ebx
push eax
call fcn.0055c480
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00622d8a
mov edx, dword [ebx + 0xdc]
lea ecx, [ebp - 0x1c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x567118
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 8]
push str.Error_during_deleting_record_with_num__s__errcode___ld_n
push ecx
call fcn.0061fae1
mov edx, dword [ebp + 8]
add esp, 0x10
push edx
jmp 0x567111
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.0061fae1
mov eax, dword [ebp + 8]
add esp, 0x10
push eax
mov ecx, ebx
call fcn.0055c480
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.00570450
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call fcn.00622d8a
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8