Function at 0x4c6720
Capabilities:
Delete registry value
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x558c20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x258
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
lea edx, [ebp - 0x264]
mov eax, dword [esi]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0
mov ecx, dword [eax + 0x58]
push ecx
push str.Apply_alternative_for_connection__d_n
push edx
call fcn.0051d0e8
add esp, 0xc
lea eax, [ebp - 0x264]
mov ecx, ebx
push eax
call fcn.004c2cc0
mov edi, dword [esi + 0x20]
test edi, edi
jne 0x4c6790
mov ecx, dword [esi + 0x24]
push ecx
push str.Error_in_ApplyAlternative__:_item__altervative__0__itemID___ld_n
jmp 0x4c6966
mov eax, dword [ebx + 0x58]
cmp edi, eax
jne 0x4c679e
test eax, eax
je 0x4c679e
mov dword [ebx + 0x58], esi
mov ecx, dword [edi]
add ecx, 0x10
call fcn.004c9a80
mov ecx, dword [edi + 0x10]
push ecx
call fcn.0051de13
add esp, 4
cmp eax, 0xffffffff
jne 0x4c67df
mov edx, dword [edi + 0x10]
lea eax, [ebp - 0x264]
push edx
push str.Could_not_delete_temp_file__s_n
push eax
call fcn.0051d0e8
add esp, 0xc
lea ecx, [ebp - 0x264]
push ecx
mov ecx, ebx
call fcn.004c2cc0
mov eax, dword [ebx + 0x54]
test eax, eax
je 0x4c683f
cmp dword [esi + 0x18], 1
jne 0x4c67f1
mov eax, dword [esi + 0x24]
jmp 0x4c67f4
mov eax, dword [edi + 0x24]
push eax
lea edx, [ebp - 0x18]
push 0x5ae160
push edx
call fcn.0051d0e8
mov ecx, dword [ebx + 0x54]
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x4c683f
lea edx, [ebp - 0x18]
push eax
push edx
lea eax, [ebp - 0x264]
push str.Error_during_deleting_record_with_num__s__errcode___ld_n
push eax
call fcn.0051d0e8
add esp, 0x10
lea ecx, [ebp - 0x264]
push ecx
mov ecx, ebx
call fcn.004c2cc0
mov eax, dword [esi + 0x18]
cmp eax, 2
jne 0x4c6958
mov ecx, dword [esi]
mov edx, dword [edi + 0x24]
add ecx, 0x10
mov dword [esi + 0x24], edx
call fcn.004c9a80
mov eax, dword [edi + 0x10]
mov ecx, dword [esi + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x4c689c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi + 0x10]
push eax
mov eax, dword [esi + 0x10]
push edx
push eax
lea ecx, [ebp - 0x264]
push str.Can_not_rename_temp_file__s_to__s__errno___ld_n
push ecx
call fcn.0051d0e8
add esp, 0x14
lea edx, [ebp - 0x264]
push edx
jmp 0x4c697c
mov eax, dword [edi + 0x10]
mov ecx, esi
push eax
call fcn.004c6ea0
test eax, eax
je 0x4c68b5
push str.Set_filename_error_in_ApplyAlternative___n
jmp 0x4c697c
mov ecx, dword [esi + 0x10]
push ecx
mov ecx, dword [esi]
add ecx, 0x10
call fcn.004c9af0
test eax, eax
je 0x4c68ec
mov edx, dword [esi + 0x10]
push eax
push edx
lea eax, [ebp - 0x264]
push str.Error_opening_file__s__errcode___ld._n
push eax
call fcn.0051d0e8
add esp, 0x10
lea ecx, [ebp - 0x264]
push ecx
jmp 0x4c697c
mov edx, dword [edi + 0x1c]
mov ecx, dword [esi]
mov dword [esi + 0x1c], edx
mov eax, dword [edi]
mov edx, dword [eax + 0x30]
mov dword [ecx + 0x30], edx
mov eax, dword [eax + 0x34]
mov dword [ecx + 0x34], eax
mov eax, dword [ebx + 0x14]
cmp edi, eax
jne 0x4c693b
mov dword [ebx + 0x14], esi
test edi, edi
je 0x4c6920
mov ecx, edi
call fcn.004c6e30
push edi
call fcn.005380ca
add esp, 4
xor eax, eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x18], 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 + 0x1c]
cmp edi, ecx
je 0x4c6953
mov eax, ecx
test eax, eax
jne 0x4c693b
mov ecx, dword [esi + 0x24]
push ecx
push str.Error_in_ApplyAlternative__:_ptrAlt_not_found_in_list__itemID___ld_n
jmp 0x4c6966
mov dword [eax + 0x1c], esi
jmp 0x4c690c
cmp eax, 1
je 0x4c690c
mov ecx, dword [esi + 0x24]
push ecx
push str.Error_in_ApplyAlternative__:_altN___1__itemID___ld_n
lea edx, [ebp - 0x264]
push edx
call fcn.0051d0e8
add esp, 0xc
lea eax, [ebp - 0x264]
push eax
mov ecx, ebx
call fcn.004c2cc0
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