Function at 0x456090
Capabilities:
Create directory
Get common file path

Disassembly:
sub rsp, 0x448
mov qword [rsp + 0x440], rbx
mov qword [rsp + 0x438], rsi
mov qword [rsp + 0x430], rdi
mov qword [rsp + 0xb8], 0xfffffffffffffffe
call fcn.004545a0
test eax, eax
je 0x456141
xor r8d, r8d
lea rdx, str.CPrepareInstall_::_CopyInBuildInfFileToTemp_n
lea rcx, [rsp + 0x210]
call fcn.00486850
movabs rdx, 0x203a5952544e45
mov qword [rsp + 0x110], rdx
lea rdi, [rsp + 0x110]
xor eax, eax
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
lea rdx, [rsp + 0x210]
xor ecx, ecx
nop
nop
movzx eax, byte [rdx + rcx]
mov byte [rdi + rcx - 1], al
inc rcx
test al, al
jne 0x456110
call fcn.004546e0
mov rcx, rax
call fcn.004545b0
call fcn.004546e0
mov rcx, rax
lea rdx, [rsp + 0x110]
call fcn.004548a0
mov edx, 0xa
lea rcx, [rsp + 0xd8]
call fcn.0049a7a0
nop
lea rbx, [0x004df430]
lea rdi, [rsp + 0xc0]
sub rdi, rbx
mov esi, 6
nop
nop
mov rcx, rbx
movzx eax, byte [rcx]
mov byte [rdi + rcx], al
inc rcx
test al, al
jne 0x456173
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0xd8]
call fcn.0049aaa4
add rbx, 0x14
sub rdi, 0x14
dec rsi
jne 0x456170
cmp qword [rsp + 0xf0], 0
jle 0x4565e2
mov edx, 0x104
lea rcx, [rsp + 0x210]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov r8d, 1
lea rdx, [rsp + 0x320]
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 + 0x320]
lea rcx, [rsp + 0x88]
call fcn.0049b290
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.0049b804
nop
lea rcx, [rsp + 0x88]
call fcn.0049b1dc
nop
lea rcx, [rsp + 0x58]
call fcn.0049b1dc
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov rdx, qword [0x004dfd00]
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rdx
mov rdi, qword [rsp + 0xe0]
test rdi, rdi
je 0x4565b7
mov rdx, rdi
test rdi, rdi
je 0x4565b1
mov rdi, qword [rdi]
add rdx, 0x10
lea rcx, [rsp + 0x38]
call fcn.0049b31c
lea rdx, [rsp + 0x210]
lea rcx, [rsp + 0x90]
call fcn.0049b290
nop
lea r8, str.INF_
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.0049b8ec
nop
lea r8, [rsp + 0x38]
mov rdx, rax
lea rcx, [rsp + 0xa8]
call fcn.0049b804
nop
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.0049b31c
nop
lea rcx, [rsp + 0xa8]
call fcn.0049b1dc
nop
lea rcx, [rsp + 0x68]
call fcn.0049b1dc
nop
lea rcx, [rsp + 0x90]
call fcn.0049b1dc
lea rdx, [0x004a9dfc]
lea rcx, [rsp + 0x48]
call fcn.0049b290
nop
mov r8, rax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0xa0]
call fcn.0049b804
nop
lea r8, [rsp + 0x38]
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.0049b804
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.0049b31c
nop
lea rcx, [rsp + 0x78]
call fcn.0049b1dc
nop
lea rcx, [rsp + 0xa0]
call fcn.0049b1dc
nop
lea rcx, [rsp + 0x48]
call fcn.0049b1dc
xor r9d, r9d
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x20]
call fcn.004232e0
test eax, eax
je 0x4563cb
xor r8d, r8d
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x20]
call fcn.004230e0
test eax, eax
jne 0x456407
call fcn.004545a0
test eax, eax
je 0x456407
mov r8, qword [rsp + 0x28]
lea rdx, str.FAILED_DeleteAFile_:_Source___s_n
lea rcx, [rsp + 0x110]
call fcn.00486850
call fcn.004546e0
mov rcx, rax
lea rdx, [rsp + 0x110]
call fcn.004548a0
jmp 0x456407
call fcn.004545a0
test eax, eax
je 0x456407
mov r9, qword [rsp + 0x30]
mov r8, qword [rsp + 0x28]
lea rdx, str.FAILED_CopyAFile_:_Source___s__Destination___s_n
lea rcx, [rsp + 0x110]
call fcn.00486850
call fcn.004546e0
mov rcx, rax
lea rdx, [rsp + 0x110]
call fcn.004548a0
lea r8, str..PNF
lea rdx, [0x004a9e10]
lea rcx, [rsp + 0x38]
call fcn.004999f4
lea rdx, [rsp + 0x210]
lea rcx, [rsp + 0x50]
call fcn.0049b290
nop
lea r8, str.INF_
mov rdx, rax
lea rcx, [rsp + 0x98]
call fcn.0049b8ec
nop
lea r8, [rsp + 0x38]
mov rdx, rax
lea rcx, [rsp + 0xb0]
call fcn.0049b804
nop
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.0049b31c
nop
lea rcx, [rsp + 0xb0]
call fcn.0049b1dc
nop
lea rcx, [rsp + 0x98]
call fcn.0049b1dc
nop
lea rcx, [rsp + 0x50]
call fcn.0049b1dc
lea rdx, [0x004a9dfc]
lea rcx, [rsp + 0x80]
call fcn.0049b290
nop
mov r8, rax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x70]
call fcn.0049b804
nop
lea r8, [rsp + 0x38]
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.0049b804
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.0049b31c
nop
lea rcx, [rsp + 0x60]
call fcn.0049b1dc
nop
lea rcx, [rsp + 0x70]
call fcn.0049b1dc
nop
lea rcx, [rsp + 0x80]
call fcn.0049b1dc
xor r9d, r9d
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x20]
call fcn.004232e0
test eax, eax
je 0x45656a
xor r8d, r8d
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x20]
call fcn.004230e0
test eax, eax
jne 0x4565a6
call fcn.004545a0
test eax, eax
je 0x4565a6
mov r8, qword [rsp + 0x28]
lea rdx, str.FAILED_DeleteAFile_:_Source___s_n
lea rcx, [rsp + 0x110]
call fcn.00486850
call fcn.004546e0
mov rcx, rax
lea rdx, [rsp + 0x110]
call fcn.004548a0
jmp 0x4565a6
call fcn.004545a0
test eax, eax
je 0x4565a6
mov r9, qword [rsp + 0x30]
mov r8, qword [rsp + 0x28]
lea rdx, str.FAILED_CopyAFile_:_Source___s__Destination___s_n
lea rcx, [rsp + 0x110]
call fcn.00486850
call fcn.004546e0
mov rcx, rax
lea rdx, [rsp + 0x110]
call fcn.004548a0
test rdi, rdi
jne 0x456263
jmp 0x4565b7
call fcn.004998f0
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 + 0x40]
call fcn.0049b1dc
call fcn.004545a0
test eax, eax
je 0x456667
xor r8d, r8d
lea rdx, str.CPrepareInstall_::_CopyInBuildInfFileToTemp_n
lea rcx, [rsp + 0x210]
call fcn.00486850
movabs rdx, 0x20203a54495845
mov qword [rsp + 0x110], rdx
lea rdi, [rsp + 0x110]
xor eax, eax
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
lea rdx, [rsp + 0x210]
xor ecx, ecx
movzx eax, byte [rdx + rcx]
mov byte [rdi + rcx - 1], al
inc rcx
test al, al
jne 0x456635
call fcn.004546e0
mov rcx, rax
lea rdx, [rsp + 0x110]
call fcn.004548a0
call fcn.004546e0
mov rcx, rax
call fcn.004545c0
nop
lea rcx, [rsp + 0xd8]
call fcn.0049a80c
mov rbx, qword [rsp + 0x440]
mov rsi, qword [rsp + 0x438]
mov rdi, qword [rsp + 0x430]
add rsp, 0x448
ret