Function at 0x566550
Capabilities:
Delete registry value
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64faf8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x6f7b78]
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
mov ecx, dword [esi]
mov edx, dword [ecx + 0x88]
push edx
push str.Apply_alternative_for_connection__d_n
push eax
call fcn.0061fae1
mov ecx, dword [ebp - 0x14]
add esp, 0xc
push ecx
mov ecx, ebx
call fcn.0055c480
mov edi, dword [esi + 0x5c]
test edi, edi
jne 0x5665d6
mov edx, dword [esi + 0x60]
lea eax, [ebp - 0x14]
push edx
push str.Error_in_ApplyAlternative__:_item__altervative__0__itemID___ld_n
push eax
call fcn.0061fae1
mov ecx, dword [ebp - 0x14]
add esp, 0xc
push ecx
jmp 0x566847
mov eax, dword [ebx + 0xe0]
cmp edi, eax
jne 0x5665ea
test eax, eax
je 0x5665ea
mov dword [ebx + 0xe0], esi
mov ecx, dword [edi]
add ecx, 0x10
call fcn.00570460
mov edx, dword [edi + 0x10]
push edx
call fcn.0060b6fb
add esp, 4
cmp eax, 0xffffffff
jne 0x566641
mov eax, dword [edi + 0x10]
lea ecx, [ebp + 8]
push eax
call fcn.00622e4a
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x14]
push ecx
push str.Could_not_delete_temp_file__s_n
push edx
mov byte [ebp - 4], 2
call fcn.0061fae1
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov ecx, ebx
push eax
call fcn.0055c480
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00622d8a
mov eax, dword [ebx + 0xdc]
test eax, eax
je 0x5666a1
cmp dword [esi + 0x18], 1
jne 0x566656
mov eax, dword [esi + 0x60]
jmp 0x566659
mov eax, dword [edi + 0x60]
push eax
lea ecx, [ebp - 0x24]
push 0x6e8c04
push ecx
call fcn.0060a593
mov eax, dword [ebx + 0xdc]
add esp, 0xc
lea edx, [ebp - 0x24]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x5666a1
lea ecx, [ebp - 0x24]
push eax
push ecx
lea edx, [ebp - 0x14]
push str.Error_during_deleting_record_with_num__s__errcode___ld_n
push edx
call fcn.0061fae1
mov eax, dword [ebp - 0x14]
add esp, 0x10
mov ecx, ebx
push eax
call fcn.0055c480
mov eax, dword [esi + 0x18]
cmp eax, 2
jne 0x566829
mov ecx, dword [edi + 0x60]
mov dword [esi + 0x60], ecx
mov ecx, dword [esi]
add ecx, 0x10
call fcn.00570460
mov edx, dword [edi + 0x10]
mov eax, dword [esi + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x566737
mov ecx, dword [esi + 0x10]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00622e4a
mov edx, dword [edi + 0x10]
lea ecx, [ebp + 8]
push edx
mov byte [ebp - 4], 3
call fcn.00622e4a
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x14]
push eax
push ecx
push str.Can_not_rename_temp_file__s_to__s__errno___ld_n
push edx
call fcn.0061fae1
mov eax, dword [ebp - 0x14]
add esp, 0x14
mov ecx, ebx
push eax
call fcn.0055c480
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.00622d8a
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00622d8a
jmp 0x56684e
mov ecx, dword [edi + 0x10]
push ecx
mov ecx, esi
call fcn.00567230
test eax, eax
je 0x566750
push str.Set_filename_error_in_ApplyAlternative___n
jmp 0x566847
mov edx, dword [esi + 0x10]
mov ecx, dword [esi]
push edx
add ecx, 0x10
call fcn.00570650
mov ebx, eax
test ebx, ebx
je 0x5667a7
mov eax, dword [esi + 0x10]
lea ecx, [ebp - 0x24]
push eax
call fcn.00622e4a
mov ecx, dword [ebp - 0x24]
push ebx
push ecx
lea edx, [ebp - 0x14]
push str.Error_opening_file__s__errcode___ld._n
push edx
mov byte [ebp - 4], 5
call fcn.0061fae1
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
add esp, 0x10
push eax
call fcn.0055c480
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.00622d8a
jmp 0x56684e
mov ecx, dword [edi + 0x58]
mov eax, dword [esi]
mov ebx, dword [ebp - 0x18]
mov dword [esi + 0x58], ecx
mov edx, dword [edi]
mov ecx, dword [edx + 0x60]
mov dword [eax + 0x60], ecx
mov edx, dword [edx + 0x64]
mov dword [eax + 0x64], edx
mov eax, dword [ebx + 0x88]
cmp edi, eax
jne 0x56680c
mov dword [ebx + 0x88], esi
test edi, edi
je 0x5667e4
mov ecx, edi
call fcn.005671a0
push edi
call fcn.00622af4
add esp, 4
xor eax, eax
lea ecx, [ebp - 0x14]
mov dword [esi + 0x5c], eax
mov dword [esi + 0x18], eax
mov byte [ebp - 4], al
call fcn.00622d8a
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [eax + 0x58]
cmp edi, ecx
je 0x566824
mov eax, ecx
test eax, eax
jne 0x56680c
mov eax, dword [esi + 0x60]
push eax
push str.Error_in_ApplyAlternative__:_ptrAlt_not_found_in_list__itemID___ld_n
jmp 0x566837
mov dword [eax + 0x58], esi
jmp 0x5667d0
cmp eax, 1
je 0x5667d0
mov eax, dword [esi + 0x60]
push eax
push str.Error_in_ApplyAlternative__:_altN___1__itemID___ld_n
lea ecx, [ebp - 0x14]
push ecx
call fcn.0061fae1
mov edx, dword [ebp - 0x14]
add esp, 0xc
push edx
mov ecx, ebx
call fcn.0055c480
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00622d8a
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4