Function at 0x40d2a0
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
sub rsp, 0x4b8
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov qword [r11 - 8], rdi
mov qword [r11 - 0x10], r12
mov qword [r11 - 0x18], r13
mov qword [r11 - 0x20], r14
mov qword [r11 - 0x28], r15
mov rax, qword [0x00454a00]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r14, rcx
mov byte [rsp + 0x270], 0
xor edx, edx
mov r8d, 0x103
lea rcx, [r11 - 0x247]
call fcn.00420630
xor r15d, r15d
mov dword [rsp + 0x48], r15d
lea rcx, str._nInfo__:_CoypInfFile_begin...._n
call fcn.004042c0
mov edx, 0x104
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x40d345
lea rcx, str.Error_:_Get_windows_path_error_n
call fcn.004042c0
mov eax, 0x4e25
jmp 0x40de54
mov eax, dword [0x0044a00c]
cmp eax, 4
je 0x40d35f
cmp eax, 5
je 0x40d35f
cmp eax, 6
je 0x40d35f
cmp eax, 7
jne 0x40d370
lea rcx, [rsp + 0xa0]
call fcn.00404610
mov dword [rsp + 0x48], eax
mov r10d, 0xf
mov qword [rsp + 0x128], r10
xor r8d, r8d
mov qword [rsp + 0x120], r8
mov byte [rsp + 0x110], r8b
xor eax, eax
mov rbp, 0xffffffffffffffff
mov rcx, rbp
lea rdi, [rsp + 0x270]
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
cmp rcx, 0xfffffffffffffffe
jbe 0x40d3cc
call fcn.00436ca0
mov r10, qword [rsp + 0x128]
mov r8, qword [rsp + 0x120]
cmp r10, rdi
jae 0x40d3f3
mov rdx, rdi
lea rcx, [rsp + 0x108]
call fcn.00402120
mov r10, qword [rsp + 0x128]
mov r8, qword [rsp + 0x120]
jmp 0x40d42a
test rdi, rdi
jne 0x40d42a
mov qword [rsp + 0x120], r15
lea rax, [rsp + 0x110]
cmp r10, 0x10
cmovae rax, qword [rsp + 0x110]
mov byte [rax], r15b
mov r10, qword [rsp + 0x128]
mov r8, qword [rsp + 0x120]
jmp 0x40d48d
test rdi, rdi
je 0x40d48d
lea rcx, [rsp + 0x110]
cmp r10, 0x10
cmovae rcx, qword [rsp + 0x110]
mov r9, rdi
lea r8, [rsp + 0x270]
mov rdx, r10
call fcn.00421090
mov qword [rsp + 0x120], rdi
lea rax, [rsp + 0x110]
cmp qword [rsp + 0x128], 0x10
cmovae rax, qword [rsp + 0x110]
mov byte [rax + rdi], r15b
mov r10, qword [rsp + 0x128]
mov r8, qword [rsp + 0x120]
lea rax, [rsp + 0x110]
mov rcx, qword [rsp + 0x110]
cmp r10, 0x10
cmovae rax, rcx
lea rsi, str._system32drivers_
cmp rsi, rax
jb 0x40d636
lea rax, [rsp + 0x110]
cmp r10, 0x10
cmovae rax, rcx
add rax, r8
cmp rax, rsi
jbe 0x40d636
lea rax, [rsp + 0x110]
cmp r10, 0x10
cmovae rax, rcx
mov edi, 0x12
sub rsi, rax
cmp r8, rsi
jae 0x40d50b
call fcn.00436d70
mov r10, qword [rsp + 0x128]
mov r8, qword [rsp + 0x120]
mov rcx, qword [rsp + 0x110]
mov rax, r8
sub rax, rsi
cmp rax, rdi
cmovb rdi, rax
mov rax, rbp
sub rax, r8
cmp rax, rdi
jbe 0x40d52c
lea rax, [r8 + rdi]
cmp rax, r8
jae 0x40d549
call fcn.00436ca0
mov r10, qword [rsp + 0x128]
mov r8, qword [rsp + 0x120]
mov rcx, qword [rsp + 0x110]
test rdi, rdi
je 0x40d732
lea rbx, [r8 + rdi]
cmp rbx, 0xfffffffffffffffe
jbe 0x40d579
call fcn.00436ca0
mov r10, qword [rsp + 0x128]
mov r8, qword [rsp + 0x120]
mov rcx, qword [rsp + 0x110]
cmp r10, rbx
jae 0x40d5a8
mov rdx, rbx
lea rcx, [rsp + 0x108]
call fcn.00402120
mov r10, qword [rsp + 0x128]
mov r8, qword [rsp + 0x120]
mov rcx, qword [rsp + 0x110]
jmp 0x40d5cc
test rbx, rbx
jne 0x40d5cc
mov qword [rsp + 0x120], rbx
lea rax, [rsp + 0x110]
cmp r10, 0x10
cmovae rax, rcx
mov byte [rax], bl
jmp 0x40d732
test rbx, rbx
je 0x40d732
lea rdx, [rsp + 0x110]
cmp r10, 0x10
cmovae rdx, rcx
lea rax, [rsp + 0x110]
cmp r10, 0x10
cmovae rax, rcx
sub r10, r8
lea rcx, [rax + r8]
lea r8, [rdx + rsi]
mov r9, rdi
mov rdx, r10
call fcn.00421090
mov qword [rsp + 0x120], rbx
lea rax, [rsp + 0x110]
cmp qword [rsp + 0x128], 0x10
cmovae rax, qword [rsp + 0x110]
mov byte [rax + rbx], 0
jmp 0x40d732
mov rax, rbp
sub rax, r8
cmp rax, 0x12
jbe 0x40d64b
lea rax, [r8 + 0x12]
cmp rax, r8
jae 0x40d668
call fcn.00436ca0
mov r10, qword [rsp + 0x128]
mov r8, qword [rsp + 0x120]
mov rcx, qword [rsp + 0x110]
lea rbx, [r8 + 0x12]
cmp rbx, 0xfffffffffffffffe
jbe 0x40d68f
call fcn.00436ca0
mov r10, qword [rsp + 0x128]
mov r8, qword [rsp + 0x120]
mov rcx, qword [rsp + 0x110]
cmp r10, rbx
jae 0x40d6be
mov rdx, rbx
lea rcx, [rsp + 0x108]
call fcn.00402120
mov r10, qword [rsp + 0x128]
mov r8, qword [rsp + 0x120]
mov rcx, qword [rsp + 0x110]
jmp 0x40d6df
test rbx, rbx
jne 0x40d6df
mov qword [rsp + 0x120], rbx
lea rax, [rsp + 0x110]
cmp r10, 0x10
cmovae rax, rcx
mov byte [rax], bl
jmp 0x40d732
test rbx, rbx
je 0x40d732
lea rax, [rsp + 0x110]
cmp r10, 0x10
cmovae rax, rcx
sub r10, r8
lea rcx, [rax + r8]
mov r9d, 0x12
mov r8, rsi
mov rdx, r10
call fcn.00421090
mov qword [rsp + 0x120], rbx
lea rax, [rsp + 0x110]
cmp qword [rsp + 0x128], 0x10
cmovae rax, qword [rsp + 0x110]
mov byte [rax + rbx], 0
call fcn.00413cb8
mov rcx, rax
xor eax, eax
test rcx, rcx
setne al
test eax, eax
jne 0x40d751
mov ecx, 0x80004005
call fcn.00401000
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x40], rdi
xor r12d, r12d
xor r13d, r13d
cmp dword [0x004565a0], r12d
jbe 0x40dda8
lea rcx, [0x004709d0]
lea rbx, [0x00439c94]
mov rax, r13
imul rax, rax, 0x1cc
mov ecx, dword [rax + rcx + 0x1c4]
test cl, 1
je 0x40d7a4
cmp byte [0x00456478], 0
je 0x40dd8c
test cl, 2
je 0x40d7ca
cmp byte [0x00456477], 0
je 0x40dd8c
mov eax, dword [0x0044a00c]
cmp eax, 6
je 0x40d7ca
cmp eax, 7
jne 0x40dd8c
mov r10d, 0xf
mov qword [rsp + 0x100], r10
xor r8d, r8d
mov qword [rsp + 0xf8], r8
mov byte [rsp + 0xe8], r8b
xor eax, eax
mov rcx, rbp
mov rdi, r14
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
cmp rcx, 0xfffffffffffffffe
jbe 0x40d81a
call fcn.00436ca0
mov r10, qword [rsp + 0x100]
mov r8, qword [rsp + 0xf8]
cmp r10, rdi
jae 0x40d841
mov rdx, rdi
lea rcx, [rsp + 0xe0]
call fcn.00402120
mov r10, qword [rsp + 0x100]
mov r8, qword [rsp + 0xf8]
jmp 0x40d878
test rdi, rdi
jne 0x40d878
mov qword [rsp + 0xf8], rdi
lea rax, [rsp + 0xe8]
cmp r10, 0x10
cmovae rax, qword [rsp + 0xe8]
mov byte [rax], dil
mov r10, qword [rsp + 0x100]
mov r8, qword [rsp + 0xf8]
jmp 0x40d8d6
test rdi, rdi
je 0x40d8d6
lea rcx, [rsp + 0xe8]
cmp r10, 0x10
cmovae rcx, qword [rsp + 0xe8]
mov r9, rdi
mov r8, r14
mov rdx, r10
call fcn.00421090
mov qword [rsp + 0xf8], rdi
lea rax, [rsp + 0xe8]
cmp qword [rsp + 0x100], 0x10
cmovae rax, qword [rsp + 0xe8]
mov byte [rax + rdi], 0
mov r10, qword [rsp + 0x100]
mov r8, qword [rsp + 0xf8]
lea rax, [rsp + 0xe8]
mov rcx, qword [rsp + 0xe8]
cmp r10, 0x10
cmovae rax, rcx
cmp rbx, rax
jb 0x40da8a
lea rax, [rsp + 0xe8]
cmp r10, 0x10
cmovae rax, rcx
add rax, r8
cmp rax, rbx
jbe 0x40da8a
lea rax, [rsp + 0xe8]
cmp r10, 0x10
cmovae rax, rcx
mov rsi, rbx
sub rsi, rax
cmp r8, rsi
jae 0x40d94b
call fcn.00436d70
mov r10, qword [rsp + 0x100]
mov r8, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xe8]
mov rax, r8
sub rax, rsi
mov ebx, 1
cmp rax, rbx
cmovb rbx, rax
mov rax, rbp
sub rax, r8
cmp rax, rbx
jbe 0x40d971
lea rax, [r8 + rbx]
cmp rax, r8
jae 0x40d98e
call fcn.00436ca0
mov r10, qword [rsp + 0x100]
mov r8, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xe8]
test rbx, rbx
je 0x40db92
lea rdi, [r8 + rbx]
cmp rdi, 0xfffffffffffffffe
jbe 0x40d9be
call fcn.00436ca0
mov r10, qword [rsp + 0x100]
mov r8, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xe8]
cmp r10, rdi
jae 0x40d9ed
mov rdx, rdi
lea rcx, [rsp + 0xe0]
call fcn.00402120
mov r10, qword [rsp + 0x100]
mov r8, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xe8]
jmp 0x40da19
test rdi, rdi
jne 0x40da19
mov qword [rsp + 0xf8], rdi
lea rax, [rsp + 0xe8]
cmp r10, 0x10
cmovae rax, rcx
mov byte [rax], dil
lea rbx, [0x00439c94]
jmp 0x40db99
test rdi, rdi
je 0x40db89
lea rdx, [rsp + 0xe8]
cmp r10, 0x10
cmovae rdx, rcx
lea rax, [rsp + 0xe8]
cmp r10, 0x10
cmovae rax, rcx
sub r10, r8
lea rcx, [r8 + rax]
lea r8, [rsi + rdx]
mov r9, rbx
mov rdx, r10
call fcn.00421090
mov qword [rsp + 0xf8], rdi
lea rax, [rsp + 0xe8]
cmp qword [rsp + 0x100], 0x10
cmovae rax, qword [rsp + 0xe8]
mov byte [rdi + rax], 0
lea rbx, [0x00439c94]
jmp 0x40db99
mov rax, rbp
sub rax, r8
cmp rax, 1
jbe 0x40da9f
lea rax, [r8 + 1]
cmp rax, r8
jae 0x40dabc
call fcn.00436ca0
mov r10, qword [rsp + 0x100]
mov r8, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xe8]
lea rdi, [r8 + 1]
cmp rdi, 0xfffffffffffffffe
jbe 0x40dae3
call fcn.00436ca0
mov r10, qword [rsp + 0x100]
mov r8, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xe8]
cmp r10, rdi
jae 0x40db12
mov rdx, rdi
lea rcx, [rsp + 0xe0]
call fcn.00402120
mov r10, qword [rsp + 0x100]
mov r8, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xe8]
jmp 0x40db34
test rdi, rdi
jne 0x40db34
mov qword [rsp + 0xf8], rdi
lea rax, [rsp + 0xe8]
cmp r10, 0x10
cmovae rax, rcx
mov byte [rax], dil
jmp 0x40db99
test rdi, rdi
je 0x40db99
lea rax, [rsp + 0xe8]
cmp r10, 0x10
cmovae rax, rcx
sub r10, r8
lea rcx, [r8 + rax]
mov r9d, 1
mov r8, rbx
mov rdx, r10
call fcn.00421090
mov qword [rsp + 0xf8], rdi
lea rax, [rsp + 0xe8]
cmp qword [rsp + 0x100], 0x10
cmovae rax, qword [rsp + 0xe8]
mov byte [rdi + rax], 0
jmp 0x40db99
lea rbx, [0x00439c94]
jmp 0x40db99
lea rbx, [0x00439c94]
mov edx, r12d
imul rdx, rdx, 0x1cc
lea rax, [0x004709d0]
add rdx, rax
xor eax, eax
mov rcx, rbp
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0xe0]
call fcn.00402e60
lea rcx, [rsp + 0xe8]
cmp qword [rsp + 0x100], 0x10
cmovae rcx, qword [rsp + 0xe8]
lea rdx, [rsp + 0x130]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp rax, 0xffffffffffffffff
jne 0x40dc5c
lea r8, [rsp + 0xe8]
cmp qword [rsp + 0x100], 0x10
cmovae r8, qword [rsp + 0xe8]
lea rdx, str._nError_:_Fail_to_find_inf_file___s__n
lea rcx, [rsp + 0x40]
call fcn.00403500
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call fcn.004042c0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
cmp qword [rsp + 0x100], 0x10
jb 0x40dd8c
mov rcx, qword [rsp + 0xe8]
call fcn.004135ec
jmp 0x40dd8c
lea rcx, [rsp + 0xe8]
cmp qword [rsp + 0x100], 0x10
cmovae rcx, qword [rsp + 0xe8]
call fcn.0040bd50
lea r8, [rsp + 0xe8]
cmp qword [rsp + 0x100], 0x10
cmovae r8, qword [rsp + 0xe8]
lea rdx, str._nInfo__:_Install_inf_file___s__n
lea rcx, [rsp + 0x40]
call fcn.00403500
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call fcn.004042c0
lea rdx, [rsp + 0x110]
cmp qword [rsp + 0x128], 0x10
cmovae rdx, qword [rsp + 0x110]
lea rcx, [rsp + 0xe8]
cmp qword [rsp + 0x100], 0x10
cmovae rcx, qword [rsp + 0xe8]
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0xfa
lea rax, [rsp + 0x380]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8d, [r9 + 1]
call qword [sym.imp.SETUPAPI.dll_SetupCopyOEMInfA]
test eax, eax
jne 0x40dd67
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Error_:_Install_inf_file_error._ErrorCode:__d_n
lea rcx, [rsp + 0x40]
call fcn.00403500
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call fcn.004042c0
mov r15d, 0x4e25
cmp qword [rsp + 0x100], 0x10
jb 0x40dd8c
mov rcx, qword [rsp + 0xe8]
call fcn.004135ec
jmp 0x40dd8c
lea rcx, str.Info__:_Install_inf_file_OK._n
call fcn.004042c0
nop
cmp qword [rsp + 0x100], 0x10
jb 0x40dd8c
mov rcx, qword [rsp + 0xe8]
call fcn.004135ec
add r12d, 1
add r13, 1
cmp r12d, dword [0x004565a0]
lea rcx, [0x004709d0]
jb 0x40d781
mov eax, dword [0x0044a00c]
cmp eax, 4
je 0x40ddc2
cmp eax, 5
je 0x40ddc2
cmp eax, 6
je 0x40ddc2
cmp eax, 7
jne 0x40de1f
cmp dword [rsp + 0x48], 1
jne 0x40de1f
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0xa0]
mov rax, qword [rcx]
mov qword [rdx], rax
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
mov rax, qword [rcx + 0x10]
mov qword [rdx + 0x10], rax
mov rax, qword [rcx + 0x18]
mov qword [rdx + 0x18], rax
mov rax, qword [rcx + 0x20]
mov qword [rdx + 0x20], rax
mov rax, qword [rcx + 0x28]
mov qword [rdx + 0x28], rax
mov rax, qword [rcx + 0x30]
mov qword [rdx + 0x30], rax
mov rax, qword [rcx + 0x38]
mov qword [rdx + 0x38], rax
lea rcx, [rsp + 0x60]
call fcn.00401ac0
nop
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x40de39
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
cmp qword [rsp + 0x128], 0x10
jb 0x40de51
mov rcx, qword [rsp + 0x110]
call fcn.004135ec
mov eax, r15d
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.00420600
mov rbx, qword [rsp + 0x4c8]
mov rbp, qword [rsp + 0x4d0]
mov rsi, qword [rsp + 0x4d8]
mov rdi, qword [rsp + 0x4b0]
mov r12, qword [rsp + 0x4a8]
mov r13, qword [rsp + 0x4a0]
mov r14, qword [rsp + 0x498]
mov r15, qword [rsp + 0x490]
add rsp, 0x4b8
ret