Function at 0x415a40
Capabilities:
Check if file exists
Create a process with modified i/o handles and window
Create directory
Create process on windows
Delete directory
Delete file
Get common file path
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x41f96a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1fc
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x14]
mov dword [esp + 0x214], 0
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x214], 1
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x3c]
mov byte [esp + 0x214], 2
call sub.MFC42.DLL_CFile::CFile
mov eax, dword [esp + 0x21c]
mov byte [esp + 0x214], 3
test eax, eax
jne 0x415ad9
mov ebp, str.stcusb.inf
mov dword [esp + 0x50], 0x1f8
mov dword [esp + 0x54], 0x1f9
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], str.stcusb.cat
mov edi, str.usbscan.sys
jmp 0x415b2b
mov dword [esp + 0x50], 0x1fa
mov dword [esp + 0x54], 0x1fb
mov dword [esp + 0x34], str.stcser.inf
mov dword [esp + 0x38], str.stcser.cat
mov edi, str.usbser.sys
call fcn.0041e5c0
test eax, eax
je 0x415b27
push 0
push 0x24
push 0x4e2e
call fcn.0041c830
add esp, 4
push eax
call sub.MFC42.DLL_AfxMessageBox
cmp eax, 7
je 0x416328
mov ebp, dword [esp + 0x34]
call fcn.0041e5f0
test eax, eax
je 0x415b4e
mov esi, dword [0x435c0c]
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffffe
add esi, 0x1f6
mov dword [esp + 0x1c], esi
jmp 0x415b65
mov eax, dword [0x435c0c]
dec eax
neg eax
sbb eax, eax
and al, 0xfe
add eax, 0x1f7
mov dword [esp + 0x1c], eax
mov esi, eax
push 0x104
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov eax, dword [esp + 0x224]
test eax, eax
je 0x415ea1
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x2c]
mov byte [esp + 0x214], 4
call sub.MFC42.DLL_CString::CString_2
mov bl, 5
xor ebp, ebp
push 0x104
lea ecx, [esp + 0x24]
mov byte [esp + 0x218], bl
mov dword [esp + 0x50], ebp
call sub.MFC42.DLL_CString::GetBuffer
mov esi, eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push esi
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push 0xffffffffffffffff
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::ReleaseBuffer
push 0x104
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::GetBuffer
mov esi, eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashA]
push 0xffffffffffffffff
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea eax, [esp + 0x4c]
push eax
call fcn.0041e680
add esp, 4
lea ecx, [esp + 0x20]
lea edx, [esp + 0x24]
push str.drivers_
push ecx
push edx
call sub.MFC42.DLL_operator
push edi
push eax
lea eax, [esp + 0x38]
mov byte [esp + 0x21c], 6
push eax
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
lea ecx, [esp + 0x30]
mov esi, eax
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x214], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0041e6c0
add esp, 4
test esi, esi
push edi
jne 0x415cbb
push 0x4e2c
call fcn.0041c830
add esp, 4
lea edx, [esp + 0x14]
push eax
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x1c]
add esp, 0xc
push ebp
push 0x24
push eax
call sub.MFC42.DLL_AfxMessageBox
cmp eax, 6
je 0x415cf2
jmp 0x415daf
push 0x4e2d
call fcn.0041c830
add esp, 4
lea ecx, [esp + 0x14]
push eax
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x1c]
add esp, 0xc
push 0
push 0x24
push edx
call sub.MFC42.DLL_AfxMessageBox
cmp eax, 6
jne 0x415e39
mov ebp, 1
lea eax, [esp + 0x20]
push str.drivers
lea ecx, [esp + 0x28]
push eax
push ecx
call sub.MFC42.DLL_operator
mov edx, dword [esp + 0x2c]
mov eax, dword [eax]
push 0
push ebp
push edx
push eax
push edi
lea ecx, [esp + 0xf8]
mov byte [esp + 0x228], 7
call fcn.00416e10
lea ecx, [esp + 0x24]
mov byte [esp + 0x214], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xe4]
call sub.MFC42.DLL_CDialog::DoModal
cmp eax, 1
je 0x415dd6
lea ecx, [esp + 0x208]
mov byte [esp + 0x214], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x204]
mov byte [esp + 0x214], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x200]
mov byte [esp + 0x214], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1b4]
mov byte [esp + 0x214], 0xa
call sub.MFC42.DLL_CListCtrl::CListCtrl
lea ecx, [esp + 0xe4]
mov byte [esp + 0x214], bl
call fcn.004010c0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x214], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x214], 3
call sub.MFC42.DLL_CString::CString
jmp 0x416328
lea ecx, [esp + 0x208]
mov byte [esp + 0x214], 0x11
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x204]
mov byte [esp + 0x214], 0x10
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x200]
mov byte [esp + 0x214], 0xf
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1b4]
mov byte [esp + 0x214], 0xe
call sub.MFC42.DLL_CListCtrl::CListCtrl
lea ecx, [esp + 0xe4]
mov byte [esp + 0x214], bl
call fcn.004010c0
push 0x104
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ebx, str.stc.tmp
lea ecx, [esp + 0x2c]
mov dword [esp + 0x30], ebx
mov byte [esp + 0x214], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x214], 3
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x34]
jmp 0x415f4d
push 0
push 0
lea ecx, [esp + 0x80]
call fcn.004155e0
mov bl, 0x12
push 0x4e2a
mov byte [esp + 0x218], bl
call fcn.0041c830
add esp, 4
lea ecx, [esp + 0x78]
push eax
call fcn.004157a0
lea ecx, [esp + 0x78]
call fcn.004156c0
cmp eax, 1
je 0x415ef5
lea ecx, [esp + 0x78]
mov byte [esp + 0x214], 3
call fcn.004156b0
jmp 0x416328
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x7c]
call fcn.004157b0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x218], 0x13
call fcn.0041ec32
lea ecx, [esp + 0x24]
mov byte [esp + 0x214], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0x78]
mov dword [esp + 0x30], str.stc.drv
mov byte [esp + 0x214], 3
call fcn.004156b0
mov ebx, dword [esp + 0x30]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0
push eax
push esi
call fcn.004191b0
mov esi, eax
add esp, 8
test esi, esi
je 0x4162d2
push 0
push 0x1001
push str.dpinst.exe
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CFile::Open
test eax, eax
je 0x4162a7
mov ecx, dword [esp + 0x28]
push ecx
push esi
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CFile::Write
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CFile::Close
mov eax, dword [esp + 0x54]
lea edx, [esp + 0x28]
push edx
push eax
call fcn.004191b0
mov esi, eax
add esp, 8
test esi, esi
je 0x41625d
mov edi, dword [esp + 0x38]
push 0
push 0x1001
push edi
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CFile::Open
test eax, eax
je 0x416255
mov ecx, dword [esp + 0x28]
push ecx
push esi
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CFile::Write
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CFile::Close
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x28]
push edx
push eax
call fcn.004191b0
mov esi, eax
add esp, 8
test esi, esi
je 0x416213
push 0
push 0x1001
push ebp
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CFile::Open
test eax, eax
je 0x4161ec
mov ecx, dword [esp + 0x28]
push ecx
push esi
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CFile::Write
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CFile::Close
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_2
xor edx, edx
mov ecx, 0x11
mov dword [esp + 0x58], edx
xor eax, eax
lea edi, [esp + 0xa0]
mov dword [esp + 0x5c], edx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x220]
mov dword [esp + 0x60], edx
test eax, eax
mov byte [esp + 0x214], 0x14
mov dword [esp + 0x64], edx
mov dword [esp + 0xa0], 0x44
mov word [esp + 0xd0], 1
mov dword [esp + 0xcc], 0x101
je 0x4160c7
push str._LM__P
lea eax, [esp + 0x20]
push str.dpinst.exe__s
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
jmp 0x4160df
push ebp
push 0x435b30
lea ecx, [esp + 0x24]
push str.dpinst.exe__s__s
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov eax, dword [esp + 0x224]
test eax, eax
je 0x4161d5
mov edi, dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea edx, [esp + 0x68]
push edx
call edi
lea eax, [esp + 0x58]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0xa0]
push eax
mov ebx, dword [esp + 0x6c]
mov ebp, dword [esp + 0x6e]
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
push edx
push 0
mov word [esp + 0x90], 0x7e6
mov word [esp + 0x92], 0xa
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x416187
mov eax, dword [esp + 0x58]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push eax
call esi
test eax, eax
je 0x416161
mov ecx, dword [esp + 0x58]
push 0
push ecx
call esi
test eax, eax
jne 0x416154
mov eax, dword [esp + 0x58]
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [esp + 0x58]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x5c]
push edx
call esi
jmp 0x4161b5
push str.dpinst.exe
push 0x4e24
call fcn.0041c830
add esp, 4
push eax
lea eax, [esp + 0x18]
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push 0
push 0
push ecx
call sub.MFC42.DLL_AfxMessageBox
lea edx, [esp + 0x68]
push edx
call edi
mov eax, dword [esp + 0x34]
mov word [esp + 0x68], bx
push eax
mov word [esp + 0x6e], bp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, dword [esp + 0x30]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x214], 3
call sub.MFC42.DLL_CString::CString
mov edi, dword [esp + 0x38]
jmp 0x41623d
push ebp
push 0x4e25
call fcn.0041c830
add esp, 4
lea ecx, [esp + 0x14]
push eax
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x1c]
add esp, 0xc
push 0
push 0
push edx
jmp 0x416238
push ebp
push 0x4e2b
call fcn.0041c830
add esp, 4
push eax
lea eax, [esp + 0x18]
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push 0
push 0
push ecx
call sub.MFC42.DLL_AfxMessageBox
mov eax, dword [esp + 0x224]
test eax, eax
je 0x41631d
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x41628b
push edi
push 0x4e25
jmp 0x416267
mov ecx, dword [esp + 0x38]
push ecx
push 0x4e2b
call fcn.0041c830
add esp, 4
lea edx, [esp + 0x14]
push eax
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x1c]
add esp, 0xc
push 0
push 0
push eax
call sub.MFC42.DLL_AfxMessageBox
mov eax, dword [esp + 0x224]
test eax, eax
je 0x41631d
push str.dpinst.exe
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x416300
push str.dpinst.exe
push 0x4e25
call fcn.0041c830
add esp, 4
lea ecx, [esp + 0x14]
push eax
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x1c]
add esp, 0xc
push 0
push 0
push edx
jmp 0x4162fb
push str.dpinst.exe
push 0x4e2b
call fcn.0041c830
add esp, 4
push eax
lea eax, [esp + 0x18]
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push 0
push 0
push ecx
call sub.MFC42.DLL_AfxMessageBox
mov eax, dword [esp + 0x224]
test eax, eax
je 0x41631d
push 0x435b18
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x214], 2
call fcn.0041eca4
lea ecx, [esp + 0x10]
mov byte [esp + 0x214], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x214], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x214], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x208
ret