Function at 0x10005550
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018cd80
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x101f62b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 1
cmp dword [ecx + 0x14], 0x10
jb 0x100055ad
mov ecx, dword [ecx]
push 0
lea edx, [ebp - 0x40]
call fcn.10101490
add esp, 4
test al, al
jne 0x100055e7
call fcn.1004cb70
push str.Failed_to_convert_path_to_wide_char
mov ecx, dword [eax]
push 0x101aedac
push eax
mov esi, dword [ecx + 0x50]
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 0xc
xor bl, bl
jmp 0x1000570f
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x10005609
call fcn.1004cb70
push str.Backup_Directory_is_not_present_n
jmp 0x100055c8
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x10005613
mov ecx, dword [esi]
push 0
lea edx, [ebp - 0x28]
call fcn.10101490
add esp, 4
test al, al
je 0x100055be
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x10005671
sub esp, 8
call fcn.1004cb70
push eax
push ecx
mov ecx, esi
call fcn.100fef40
add esp, 0x10
test al, al
jne 0x10005671
push str.Failed_to_remove_remains_of_the_installation
push 0x101aedac
call fcn.1004cb70
push eax
call fcn.1004d580
add esp, 0xc
xor bl, bl
jmp 0x1000570f
call fcn.1004cb70
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
cmovae edx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
mov esi, dword [eax]
cmovae ecx, dword [ebp - 0x40]
push edx
push ecx
mov esi, dword [esi + 0x54]
mov ecx, esi
push str.backup_folder__ls_source_Folder_:_ls
push 0x101aee58
push eax
call dword [0x1019a4f8]
call esi
add esp, 0x14
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.101687cf
add esp, 8
test eax, eax
je 0x100056eb
push str.Failed_to_Restore_the_Backup_folder
push 0x101aedac
call fcn.1004cb70
push eax
call fcn.1004d700
add esp, 0xc
xor bl, bl
jmp 0x1000570f
call fcn.1004cb70
push str.Backup_Folder_is_restored_to_original_folder
push 0x101aedac
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x50]
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 0xc
mov bl, 1
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x10005745
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000573b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100057ac
push edx
push ecx
call fcn.1015cbd5
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x1000578f
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10005785
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100057ac
push edx
push ecx
call fcn.1015cbd5
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1015c875
mov esp, ebp
pop ebp
ret
call fcn.101686f5
int3