Function at 0x42f560
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
mov eax, dword [0x4bc7b8]
xor eax, esp
mov dword [esp + 0x434], eax
mov eax, dword [esp + 0x444]
push ebx
push ebp
mov ebp, dword [esp + 0x448]
push esi
push edi
mov edi, edx
xor esi, esi
push 0x1fe
mov ebx, ecx
mov ecx, dword [ebp + 0x41c]
lea edx, [esp + 0x246]
push esi
push edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], ecx
mov word [esp + 0x24c], si
call fcn.0046adc0
add esp, 0xc
push 0x206
lea eax, [esp + 0x3e]
push esi
push eax
mov dword [edi], esi
mov word [esp + 0x44], si
call fcn.0046adc0
add esp, 0xc
push esi
push ebx
push str.CopyDeleteFiles__s___deleteFiles_d
call fcn.00426a70
mov edi, eax
call fcn.00426f90
add esp, 0xc
push ebx
mov eax, ebp
call fcn.0042ece0
cmp eax, esi
jne 0x42fa6e
push esi
push 2
push esi
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileW]
cmp eax, 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp], eax
jne 0x42f634
call edi
push ebx
push str.Failed_to_open_inf_file__s
mov esi, eax
call fcn.00426a70
mov ebx, esi
mov ecx, eax
call fcn.00427100
add esp, 8
test esi, esi
je 0x42f686
mov ecx, esi
and ecx, 0xe0000000
cmp ecx, 0xe0000000
mov ebx, esi
jne 0x42f658
and ebx, 0xffff
or ebx, 0x800f0000
jmp 0x42f668
test esi, esi
jle 0x42f668
and ebx, 0xffff
or ebx, 0x80070000
mov edx, dword [esp + 0x14]
push edx
push str.Failed_to_open_inf_file__s
call fcn.00426a70
mov ecx, eax
call fcn.00427100
add esp, 8
jmp 0x42fa6c
call dword [sym.imp.SETUPAPI.dll_SetupOpenFileQueue]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x42f6d1
call edi
push str.SetupOpenFileQueue___failed
mov ebx, eax
call fcn.00426a70
mov ecx, eax
call fcn.00427100
mov eax, dword [ebp]
add esp, 4
cmp eax, 0xffffffff
je 0x42f6bc
push eax
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
mov dword [ebp], 0xffffffff
mov dword [ebp + 4], 0
mov eax, ebx
jmp 0x42fa6e
mov ecx, dword [esp + 0x18]
mov edx, dword [ebp]
lea eax, [esp + 0x28]
push eax
push ecx
lea eax, [ebp + 0x14]
push eax
push edx
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
jne 0x42f733
call edi
mov esi, eax
and eax, 0xe0000000
cmp eax, 0xe0000000
mov ebx, esi
jne 0x42f70d
and ebx, 0xffff
or ebx, 0x800f0000
jmp 0x42f71d
test esi, esi
jle 0x42f71d
and ebx, 0xffff
or ebx, 0x80070000
push str.SetupFindFirstLine___failed
call fcn.00426a70
mov ecx, eax
call fcn.00427100
jmp 0x42fa3d
lea ecx, [esp + 0x20]
push ecx
push 0x104
lea edx, [esp + 0x40]
push edx
push 1
push 0
push 0
call sub.WINSPOOL.DRV_GetPrinterDriverDirectoryW
mov ecx, dword [ebp]
mov ebx, dword [sym.imp.SETUPAPI.dll_SetupSetDirectoryIdW]
lea eax, [esp + 0x38]
push eax
push 0x101d0
push ecx
call ebx
test eax, eax
jne 0x42f7b9
call edi
mov esi, eax
mov edx, esi
and edx, 0xe0000000
cmp edx, 0xe0000000
mov ebx, esi
jne 0x42f78b
and ebx, 0xffff
or ebx, 0x800f0000
jmp 0x42f79b
test esi, esi
jle 0x42f79b
and ebx, 0xffff
or ebx, 0x80070000
lea eax, [esp + 0x38]
push eax
push str.SetupSetDirectoryId1__s__failed
call fcn.00426a70
mov ecx, eax
call fcn.00427100
add esp, 8
jmp 0x42fa40
lea ecx, [esp + 0x20]
push ecx
push 0x104
lea edx, [esp + 0x40]
push edx
push 1
push 0
push 0
call sub.WINSPOOL.DRV_GetPrintProcessorDirectoryW
mov ecx, dword [ebp]
lea eax, [esp + 0x38]
push eax
push 0x101d1
push ecx
call ebx
test eax, eax
jne 0x42f839
call edi
mov esi, eax
mov edx, esi
and edx, 0xe0000000
cmp edx, 0xe0000000
mov ebx, esi
jne 0x42f80b
and ebx, 0xffff
or ebx, 0x800f0000
jmp 0x42f81b
test esi, esi
jle 0x42f81b
and ebx, 0xffff
or ebx, 0x80070000
lea eax, [esp + 0x38]
push eax
push str.SetupSetDirectoryId2__s__failed
call fcn.00426a70
mov ecx, eax
call fcn.00427100
add esp, 8
jmp 0x42fa40
push 0x104
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov eax, dword [ebp]
lea edx, [esp + 0x38]
push edx
push 0x101d2
push eax
call ebx
test eax, eax
jne 0x42f8af
call edi
mov esi, eax
mov ecx, esi
and ecx, 0xe0000000
cmp ecx, 0xe0000000
mov ebx, esi
jne 0x42f881
and ebx, 0xffff
or ebx, 0x800f0000
jmp 0x42f891
test esi, esi
jle 0x42f891
and ebx, 0xffff
or ebx, 0x80070000
lea edx, [esp + 0x38]
push edx
push str.SetupSetDirectoryId3__s__failed
call fcn.00426a70
mov ecx, eax
call fcn.00427100
add esp, 8
jmp 0x42fa40
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupGetFieldCount]
mov ebx, 1
cmp eax, ebx
mov dword [esp + 0x18], eax
jb 0x42f934
push 0
push 0x100
lea ecx, [esp + 0x248]
push ecx
push ebx
lea edx, [esp + 0x38]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
lea eax, [esp + 0x240]
push eax
push str.Copy_Section_files____s
call fcn.00426a70
mov edi, eax
call fcn.00426f90
mov edx, dword [ebp]
mov eax, dword [esp + 0x24]
add esp, 8
push 0x2400
lea ecx, [esp + 0x244]
push ecx
mov ecx, dword [esp + 0x1c]
push 0
push edx
push eax
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupQueueCopySectionW]
test eax, eax
je 0x42f991
add ebx, 1
cmp ebx, dword [esp + 0x18]
jbe 0x42f8c7
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
call dword [sym.imp.SETUPAPI.dll_SetupInitDefaultQueueCallback]
mov ecx, dword [sym.imp.SETUPAPI.dll_SetupDefaultQueueCallbackW]
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
push 0
call dword [sym.imp.SETUPAPI.dll_SetupCommitFileQueueW]
test eax, eax
jne 0x42fa2c
call edi
mov esi, eax
cmp esi, 0xbc2
je 0x42fa0a
cmp esi, 0xbc3
je 0x42fa0a
and eax, 0xe0000000
cmp eax, 0xe0000000
mov ebx, esi
jne 0x42f9e7
and ebx, 0xffff
or ebx, 0x800f0000
jmp 0x42f9f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov edx, esi
and edx, 0xe0000000
cmp edx, 0xe0000000
mov ebx, esi
jne 0x42f9b9
and ebx, 0xffff
or ebx, 0x800f0000
jmp 0x42f9c9
test esi, esi
jle 0x42f9c9
and ebx, 0xffff
or ebx, 0x80070000
lea eax, [esp + 0x240]
push eax
push str.SetupQueueCopySection__s_failed
call fcn.00426a70
mov ecx, eax
call fcn.00427100
add esp, 8
jmp 0x42fa40
test esi, esi
jle 0x42f9f7
and ebx, 0xffff
or ebx, 0x80070000
push str.SetupCommitFileQueue___failed
call fcn.00426a70
mov ecx, eax
call fcn.00427100
jmp 0x42fa3d
push str.SetupCommitFileQueue___Success__but_requires_a_REBOOT
call fcn.00426a70
mov edi, eax
call fcn.00426f90
mov ecx, dword [esp + 0x28]
add esp, 4
mov dword [ecx], 1
xor esi, esi
jmp 0x42fa40
push str.SetupCommitFileQueue___Success
call fcn.00426a70
mov edi, eax
call fcn.00426f90
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x42fa4f
push eax
call dword [sym.imp.SETUPAPI.dll_SetupCloseFileQueue]
mov eax, dword [ebp]
cmp eax, 0xffffffff
je 0x42fa5e
push eax
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
mov dword [ebp], 0xffffffff
mov dword [ebp + 4], 0
mov eax, esi
mov ecx, dword [esp + 0x444]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004677d8
add esp, 0x43c
ret 8