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

Disassembly:
mov eax, 0x411264
call fcn.00410d60
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 0x403713
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 0x403740
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 0x40377b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4039c0
lea eax, [ebp - 0x6b8]
push eax
call edi
cmp eax, 0xffffffff
jne 0x403798
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4039c0
cmp dword [ebp + 0xc], ebx
lea eax, [ebp - 0x6b8]
push eax
je 0x4037ab
push str.SETUPAPI.DLL_InstallHinfSection_DefaultInstall_128__s
jmp 0x4037b0
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.00403110
cmp eax, ebx
je 0x4038b0
cmp dword [ebp + 0x10], ebx
je 0x4037d9
cmp dword [0x41de60], ebx
je 0x403825
cmp dword [0x41de60], ebx
lea eax, [ebp - 0x4b0]
push eax
lea eax, [ebp - 0x18]
push eax
je 0x4037f3
push str._s_sIDMIntegratorAA.exe
jmp 0x4037f8
push str._s_sIDMIntegrator64.exe
lea eax, [ebp - 0x2b0]
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x2b0]
push eax
call edi
cmp eax, 0xffffffff
jne 0x4038e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4038e9
push str.shell32
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
je 0x4038b0
push str.SHGetFolderPathW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x4038a9
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 0x4038a3
lea eax, [ebp - 0x2b0]
push eax
call sub.MSVCRT.dll_wcslen
cmp word [ebp + eax*2 - 0x2b2], 0x5c
pop ecx
je 0x40388c
lea eax, [ebp - 0x2b0]
push 0x4150b8
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 0x403977
lea eax, [ebp - 0x2b0]
mov dword [ebp - 0x54], eax
jmp 0x40397e
cmp dword [ebp + 0xc], ebx
mov eax, str._installdriver
jne 0x4038f8
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 0x4039c0
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 0x4039b5
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 0x4039b5
push 0x1388
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 1
pop eax
jmp 0x4039c2
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret