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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6391d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8e4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], ebx
call fcn.00417c80
cmp eax, ebx
jne 0x418142
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x8c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x8c], 0x3c
mov dword [ebp - 0x88], 0x40
mov dword [ebp - 0x80], str.open
call fcn.0044bfc0
cmp eax, ebx
je 0x41819c
mov eax, dword [0x6fca20]
cmp eax, ebx
jne 0x417f7b
mov eax, 0x6fca24
push eax
lea eax, [ebp - 0x2d8]
push 0x6cb038
push eax
call fcn.0060aac7
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0xc
lea ecx, [ebp - 0x2d8]
push ecx
call esi
cmp eax, 0xffffffff
jne 0x417fb5
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 2
je 0x4181a8
xor edx, edx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], edx
mov word [ebp - 0x18], bx
mov eax, dword [ebp + 8]
mov esi, str._installdriver
cmp eax, ebx
jne 0x417fd2
mov esi, str._uninstdriver
mov eax, 0x6c9548
test eax, eax
je 0x4180ec
lea ecx, [ebp - 0x2d8]
test ecx, ecx
je 0x4180ec
cmp esi, ebx
je 0x4180ec
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x24], bx
push ebx
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004027e0
lea edx, [ebp - 0x2d8]
lea ecx, [ebp - 0x44]
push edx
call fcn.00401ee0
mov ebx, 3
push esi
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], bl
call fcn.00401ee0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.00401070
mov edi, dword [ebp - 0x44]
test edi, edi
jne 0x418043
lea edi, [ebp - 0x40]
mov esi, dword [ebp - 0x20]
lea ecx, [ebp - 0x50]
call fcn.00401f10
push eax
call fcn.00609a4e
mov edx, eax
push edi
mov dword [ebp + 8], edx
call fcn.00609a4e
mov ecx, dword [ebp + 8]
add esi, ecx
lea esi, [eax + esi + 3]
lea edi, [esi + esi]
push edi
call fcn.00622acb
mov edx, eax
add esp, 0xc
test edx, edx
mov dword [ebp - 0x1c], edx
je 0x4180c4
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, ebx
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x50]
call fcn.00401f10
push eax
lea ecx, [ebp - 0x44]
call fcn.00401f10
push eax
lea ecx, [ebp - 0x28]
call fcn.00401f10
push eax
mov eax, dword [ebp - 0x1c]
push esi
push eax
call fcn.006099de
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00609a4e
add esp, 0x18
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], bl
call fcn.00401070
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.00401070
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00401070
mov edx, dword [ebp - 0x1c]
xor ebx, ebx
mov ecx, 0x11
xor eax, eax
lea edi, [ebp - 0xd0]
cmp edx, ebx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0xd0], 0x44
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov eax, edx
jne 0x41811a
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x38]
lea edx, [ebp - 0xd0]
push ecx
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x418157
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], al
call fcn.00401070
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x38]
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x34]
push edx
call esi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.00401070
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [0x6fca20]
cmp eax, ebx
jne 0x4181b6
mov eax, 0x6fca24
push str.idmtdi32.sys
push eax
lea eax, [ebp - 0x2d8]
push 0x6ca5f0
push eax
call fcn.0060aac7
mov eax, dword [0x6fca20]
add esp, 0x10
cmp eax, ebx
jne 0x4181de
mov eax, 0x6fca24
push str.idmtdi.inf
push eax
lea ecx, [ebp - 0x4e0]
push 0x6ca5f0
push ecx
call fcn.0060aac7
add esp, 0x10
lea edx, [ebp - 0x2d8]
push edx
call esi
cmp eax, 0xffffffff
jne 0x418211
call edi
cmp eax, 2
je 0x418142
lea eax, [ebp - 0x4e0]
push eax
call esi
cmp eax, 0xffffffff
jne 0x41822a
call edi
cmp eax, 2
je 0x418142
cmp dword [ebp + 8], ebx
je 0x418244
lea ecx, [ebp - 0x4e0]
lea edx, [ebp - 0x8f0]
push ecx
push str.SETUPAPI.DLL_InstallHinfSection_DefaultInstall_128__s
push edx
jmp 0x418257
lea eax, [ebp - 0x4e0]
lea ecx, [ebp - 0x8f0]
push eax
push str.SETUPAPI.DLL_InstallHinfSection_DefaultUninstall_128__s
push ecx
call fcn.0060aac7
add esp, 0xc
mov dword [ebp - 0x7c], str.RUNDLL32.EXE
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], 3
mov dword [ebp - 0x6c], ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x8c]
lea edx, [ebp - 0x8f0]
push eax
mov dword [ebp - 0x78], edx
call dword [0x6fc2d0]
test eax, eax
je 0x4182a5
mov ecx, dword [ebp - 0x54]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4