Function at 0x4573d0
Capabilities:
Delete directory
Get common file path

Disassembly:
push rdi
sub rsp, 0x520
mov qword [rsp + 0x78], 0xfffffffffffffffe
call fcn.004545a0
test eax, eax
je 0x457461
xor r8d, r8d
lea rdx, str.CPrepareInstall_::_CopyInBuildInfBackToLocation_n
lea rcx, [rsp + 0x200]
call fcn.00486850
movabs rdx, 0x203a5952544e45
mov qword [rsp + 0xc0], rdx
lea rdi, [rsp + 0xc0]
xor eax, eax
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
lea rdx, [rsp + 0x200]
xor ecx, ecx
movzx eax, byte [rdx + rcx]
mov byte [rdi + rcx - 1], al
inc rcx
test al, al
jne 0x457430
call fcn.004546e0
mov rcx, rax
call fcn.004545b0
call fcn.004546e0
mov rcx, rax
lea rdx, [rsp + 0xc0]
call fcn.004548a0
mov edx, 0xa
lea rcx, [rsp + 0x1c0]
call fcn.0049a7a0
nop
mov edx, 0x104
lea rcx, [rsp + 0x410]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov rdx, qword [0x004dfd00]
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rdx
mov r8d, 1
lea rdx, [rsp + 0x300]
mov ecx, 0x104
call fcn.0047fd20
lea rdx, str.UIU_INBUILD_INF.
lea rcx, [rsp + 0x58]
call fcn.0049b290
mov rdi, rax
lea rdx, [rsp + 0x300]
lea rcx, [rsp + 0x50]
call fcn.0049b290
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.0049b804
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.0049b31c
nop
lea rcx, [rsp + 0x40]
call fcn.0049b1dc
nop
lea rcx, [rsp + 0x50]
call fcn.0049b1dc
nop
lea rcx, [rsp + 0x58]
call fcn.0049b1dc
mov edx, 0xa
lea rcx, [rsp + 0x80]
call fcn.0049a7a0
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x80]
call fcn.00401340
nop
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x45770e
nop
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x80]
call fcn.004012d0
nop
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.0049b31c
nop
lea rcx, [rsp + 0x58]
call fcn.0049b1dc
mov dl, 0x5c
lea rcx, [rsp + 0x28]
call fcn.00499914
cmp eax, 0xffffffff
je 0x4575d8
mov rcx, qword [rsp + 0x28]
mov r8d, dword [rcx - 8]
sub r8d, eax
dec r8d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x28]
call fcn.00499d4c
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.0049b31c
nop
lea rcx, [rsp + 0x50]
call fcn.0049b1dc
lea rdx, str.INF_
lea rcx, [rsp + 0x68]
call fcn.0049b290
mov rdi, rax
lea rdx, [rsp + 0x410]
lea rcx, [rsp + 0x60]
call fcn.0049b290
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.0049b804
nop
lea r8, [rsp + 0x30]
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.0049b804
nop
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.0049b31c
nop
lea rcx, [rsp + 0x70]
call fcn.0049b1dc
nop
lea rcx, [rsp + 0x48]
call fcn.0049b1dc
nop
lea rcx, [rsp + 0x60]
call fcn.0049b1dc
nop
lea rcx, [rsp + 0x68]
call fcn.0049b1dc
xor r9d, r9d
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x20]
call fcn.004232e0
test eax, eax
je 0x4576c6
xor r8d, r8d
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x20]
call fcn.004230e0
test eax, eax
jne 0x457702
call fcn.004545a0
test eax, eax
je 0x457702
mov r8, qword [rsp + 0x28]
lea rdx, str.FAILED_DeleteAFile_:_Source___s_n
lea rcx, [rsp + 0xc0]
call fcn.00486850
call fcn.004546e0
mov rcx, rax
lea rdx, [rsp + 0xc0]
call fcn.004548a0
jmp 0x457702
call fcn.004545a0
test eax, eax
je 0x457702
mov r9, qword [rsp + 0x38]
mov r8, qword [rsp + 0x28]
lea rdx, str.FAILED_CopyAFile_:_Source___s__Destination___s_n
lea rcx, [rsp + 0xc0]
call fcn.00486850
call fcn.004546e0
mov rcx, rax
lea rdx, [rsp + 0xc0]
call fcn.004548a0
cmp qword [rsp + 0x40], 0
jne 0x457560
lea rdx, str.UIU_INBUILD_INF
lea rcx, [rsp + 0x48]
call fcn.0049b290
mov rdi, rax
lea rdx, [rsp + 0x300]
lea rcx, [rsp + 0x60]
call fcn.0049b290
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.0049b804
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.0049b31c
nop
lea rcx, [rsp + 0x68]
call fcn.0049b1dc
nop
lea rcx, [rsp + 0x60]
call fcn.0049b1dc
nop
lea rcx, [rsp + 0x48]
call fcn.0049b1dc
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
call fcn.004545a0
test eax, eax
je 0x457804
xor r8d, r8d
lea rdx, str.CPrepareInstall_::_CopyInBuildInfBackToLocation_n
lea rcx, [rsp + 0x200]
call fcn.00486850
movabs rdx, 0x20203a54495845
mov qword [rsp + 0xc0], rdx
lea rdi, [rsp + 0xc0]
xor eax, eax
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
lea rdx, [rsp + 0x200]
xor ecx, ecx
movzx eax, byte [rdx + rcx]
mov byte [rdi + rcx - 1], al
inc rcx
test al, al
jne 0x4577d2
call fcn.004546e0
mov rcx, rax
lea rdx, [rsp + 0xc0]
call fcn.004548a0
call fcn.004546e0
mov rcx, rax
call fcn.004545c0
nop
lea rcx, [rsp + 0x80]
call fcn.0049a80c
nop
lea rcx, [rsp + 0x30]
call fcn.0049b1dc
nop
lea rcx, [rsp + 0x28]
call fcn.0049b1dc
nop
lea rcx, [rsp + 0x38]
call fcn.0049b1dc
nop
lea rcx, [rsp + 0x1c0]
call fcn.0049a80c
add rsp, 0x520
pop rdi
ret