Function at 0x4033be
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
mov eax, 0x410978
call fcn.00410480
sub esp, 0xebc
push ebx
push esi
push edi
lea eax, [ebp - 0xcc8]
mov dword [ebp - 0x10], esp
push eax
lea eax, [ebp - 0xec8]
xor ebx, ebx
push eax
lea eax, [ebp - 0x4b0]
push eax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call sub.MSVCRT.dll__wsplitpath
add esp, 0x14
cmp dword [ebp + 0x10], ebx
je 0x403431
lea eax, [ebp - 0x4b0]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push str.idmwfp32.sys
push eax
lea eax, [ebp - 0x18]
mov edi, str._s_s_s
push eax
lea eax, [ebp - 0x2b0]
push edi
push eax
call esi
add esp, 0x14
push str.idmwfp.inf
jmp 0x40345e
lea eax, [ebp - 0x4b0]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push str.idmtdi32.sys
push eax
lea eax, [ebp - 0x18]
mov edi, str._s_s_s
push eax
lea eax, [ebp - 0x2b0]
push edi
push eax
call esi
add esp, 0x14
push str.idmtdi.inf
lea eax, [ebp - 0x4b0]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x6b8]
push edi
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0x14
lea eax, [ebp - 0x2b0]
push eax
call edi
cmp eax, 0xffffffff
jne 0x403499
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4036c7
lea eax, [ebp - 0x6b8]
push eax
call edi
cmp eax, 0xffffffff
jne 0x4034b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4036c7
cmp dword [ebp + 0xc], ebx
lea eax, [ebp - 0x6b8]
push eax
je 0x4034c9
push str.SETUPAPI.DLL_InstallHinfSection_DefaultInstall_128__s
jmp 0x4034ce
push str.SETUPAPI.DLL_InstallHinfSection_DefaultUninstall_128__s
lea eax, [ebp - 0xac8]
push eax
call esi
add esp, 0xc
mov byte [ebp + 0xb], bl
call fcn.00403037
cmp eax, ebx
je 0x40364c
cmp dword [ebp + 0x10], ebx
jne 0x4035c1
lea eax, [ebp - 0x4b0]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x2b0]
push str._s_sIDMIntegrator64.exe
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x2b0]
push eax
call edi
cmp eax, 0xffffffff
jne 0x40352c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4035c1
cmp dword [ebp + 0xc], ebx
mov eax, str._installdriver
jne 0x40353b
mov eax, str._uninstdriver
push eax
lea eax, [ebp - 0x2b0]
push eax
lea eax, [ebp - 0xac8]
push str._s__s
push eax
call esi
push 0x44
lea eax, [ebp - 0xa8]
pop esi
push esi
push ebx
push eax
call sub.MSVCRT.dll_memset
push 0x10
lea eax, [ebp - 0x28]
push ebx
push eax
mov dword [ebp - 0xa8], esi
call sub.MSVCRT.dll_memset
add esp, 0x28
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xa8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0xac8]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4036c7
push 0x1388
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x24]
call esi
jmp 0x4036bc
push str.shell32
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
je 0x40364c
push str.SHGetFolderPathW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x403645
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x2b0]
push eax
push ebx
push ebx
push 0x24
push ebx
call esi
cmp eax, ebx
jne 0x40363f
lea eax, [ebp - 0x2b0]
push eax
call sub.MSVCRT.dll_wcslen
cmp word [ebp + eax*2 - 0x2b2], 0x5c
pop ecx
je 0x403628
lea eax, [ebp - 0x2b0]
push 0x4140b8
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [ebp - 0x2b0]
push str.SysnativeRUNDLL32.EXE
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
mov byte [ebp + 0xb], 1
pop ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x3c
lea eax, [ebp - 0x64]
pop esi
push esi
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp byte [ebp + 0xb], bl
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], 0x40
mov dword [ebp - 0x58], str.open
je 0x40367e
lea eax, [ebp - 0x2b0]
mov dword [ebp - 0x54], eax
jmp 0x403685
mov dword [ebp - 0x54], str.RUNDLL32.EXE
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0xac8]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4036bc
push 0x1388
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 1
pop eax
jmp 0x4036c9
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret