Function at 0x403390
Capabilities:
Check if file exists
Create process on windows
Delete file
Extract resource via kernel32 functions
Get common file path
Get file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55a4bf
mov eax, dword fs:[0]
push eax
sub esp, 0xd60
mov eax, dword [0x5b8fc4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xc6c], edi
mov dword [ebp - 0xc7c], 0
call fcn.0040639f
mov ecx, eax
test ecx, ecx
je 0x403cd4
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0xc70], esi
push 0x59c688
lea ecx, [ebp - 0xc50]
mov dword [ebp - 4], 0
call fcn.00402b40
lea ecx, [ebp - 0xcc4]
mov byte [ebp - 4], 1
call fcn.004067b2
mov byte [ebp - 4], 2
mov dword [ebp - method.CCommandLineInfo.virtual_0], vtable.CSetupCommandLineInfo.0
mov byte [ebp - 0xc98], 1
mov dword [ebp - 0xc94], 0
mov dword [ebp - 0xc90], 0
mov dword [ebp - 0xc8c], 0
call fcn.00404ab0
mov dword [ebp - 0xc90], eax
mov dword [ebp - 0xc88], 0
mov dword [ebp - 0xc84], 0
mov dword [ebp - 0xc80], 0
lea eax, [ebp - 0xcc4]
mov byte [ebp - 4], 3
push eax
mov ecx, edi
call fcn.004074f1
cmp byte [ebp - 0xc98], 1
je 0x4034b7
mov dword [edi + 0xd0], 0xfffffffe
push 0
push 0
push dword [edi + 0xcc]
call fcn.00408a2b
lea ecx, [ebp - 0xcc4]
call fcn.00403f90
or edi, 0xffffffff
jmp 0x403c7a
mov edx, dword [ebp - 0xc90]
mov ecx, edx
mov eax, dword [edx + 4]
cmp byte [eax + 0xd], 0
jne 0x403501
nop dword [eax + eax]
cmp dword [eax + 0x10], 0x59cbcc
jae 0x4034de
mov eax, dword [eax + 8]
jmp 0x4034e2
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x4034d0
cmp ecx, edx
je 0x403501
cmp dword [ecx + 0x10], 0x59cbcc
ja 0x403501
mov dword [edi + 0xd0], 0
jmp 0x403495
push 0x59cbac
lea ecx, [ebp - 0xc5c]
call fcn.00402b40
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0xc90]
mov ecx, edx
mov eax, dword [edx + 4]
cmp byte [eax + 0xd], 0
jne 0x40355d
cmp dword [eax + 0x10], 0x59cbb4
jae 0x403534
mov eax, dword [eax + 8]
jmp 0x403538
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x403526
cmp ecx, edx
je 0x40355d
cmp dword [ecx + 0x10], 0x59cbb4
ja 0x40355d
push 2
push 0x59cbb4
lea ecx, [ebp - 0xc5c]
call fcn.00402a20
xor eax, eax
mov word [ebp - 0x838], ax
lea eax, [ebp - 0x838]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4035c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xc50]
push str.Unable_to_obtain_temporary_path___u
push eax
call fcn.00403e30
mov eax, dword [ebp - 0xc50]
add esp, 0xc
test eax, eax
je 0x4035b1
cmp word [eax], 0
je 0x4035b1
push 0
push 0
push eax
call fcn.00408a2b
mov dword [edi + 0xd0], 0xffffffff
or edi, 0xffffffff
jmp 0x403c4e
lea eax, [ebp - 0x838]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4035e2
mov dword [edi + 0xd0], eax
or edi, eax
jmp 0x403c4e
lea ecx, [ebp - 0x838]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4035f0
sub ecx, edx
lea eax, [ebp - 0x838]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xc70]
call fcn.00402a20
push 0x22
push str.QualcommWindowsDriverInstaller.msi
lea ecx, [ebp - 0xc70]
call fcn.00401e80
call fcn.004088d8
push 0x59c980
push 0x81
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, dword [ebp - 0xc70]
mov dword [ebp - 0xc64], eax
test eax, eax
jne 0x40365a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x40371b
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0xc74], eax
test eax, eax
jne 0x403679
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x40371b
push dword [ebp - 0xc64]
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403697
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x40371b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0xc64], eax
test eax, eax
jne 0x4036b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x40371b
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc68], eax
cmp eax, 0xffffffff
jne 0x4036e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x40371b
xor edi, edi
lea ecx, [ebp - 0xc58]
push edi
push ecx
push dword [ebp - 0xc74]
mov dword [ebp - 0xc58], edi
push dword [ebp - 0xc64]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40370f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push dword [ebp - 0xc68]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x403757
push edi
lea eax, [ebp - 0xc50]
push str.Error_extracting_MSI___u
push eax
call fcn.00403e30
add esp, 0xc
push dword [ebp - 0xc50]
call fcn.00403370
mov ecx, dword [ebp - 0xc6c]
or edi, 0xffffffff
mov dword [ecx + 0xd0], 0xffffffff
jmp 0x403c4e
push 0x59c688
lea ecx, [ebp - 0xc54]
call fcn.00402b40
push 0x59cbc4
lea ecx, [ebp - 0xcc4]
mov byte [ebp - 4], 5
call fcn.00403280
cmp al, 1
jne 0x403846
xor eax, eax
mov word [ebp - 0x424], ax
lea eax, [ebp - 0x424]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, eax
je 0x40384c
lea eax, [ebp - 0x424]
push eax
call edi
cmp eax, 0xffffffff
je 0x40384c
lea eax, [ebp - 0xc4c]
push eax
push 0
push str.usbdrivers
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x40384c
push 3
push 0x59cbc4
lea ecx, [ebp - 0xc54]
call fcn.00402a20
push 1
push 0x59c68c
lea ecx, [ebp - 0xc54]
call fcn.00401e80
lea ecx, [ebp - 0xc4c]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403810
sub ecx, edx
lea eax, [ebp - 0xc4c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xc54]
call fcn.00401e80
push 1
push 0x59c68c
lea ecx, [ebp - 0xc54]
call fcn.00401e80
jmp 0x40384c
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x59cbbc
lea ecx, [ebp - 0xcc4]
call fcn.00403280
cmp al, 1
jne 0x403872
push 3
push 0x59cbbc
lea ecx, [ebp - 0xc54]
call fcn.00401e80
xor eax, eax
mov word [ebp - 0x424], ax
lea eax, [ebp - 0x424]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4038ba
lea eax, [ebp - 0x424]
push eax
call edi
cmp eax, 0xffffffff
je 0x4038ba
lea eax, [ebp - 0xc4c]
push eax
push 0
push str.usbdrivers
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [ebp - 0xc68]
call fcn.00403f20
push str.Wow64DisableWow64FsRedirection
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.Wow64RevertWow64FsRedirection
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call edi
mov edx, dword [ebp - 0xc68]
or edi, 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x403911
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.msiexec.exe__x_D9FB7F91_9687_4B09_894D_072903CADEA4__passive
lea ecx, [ebp - 0xc58]
call fcn.00402b40
lea eax, [ebp - 0xcd4]
mov dword [ebp - 0xd28], 0x44
push eax
lea eax, [ebp - 0xd28]
xorps xmm0, xmm0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0xc58]
movlpd qword [ebp - 0xd24], xmm0
push 0
movlpd qword [ebp - 0xd1c], xmm0
movlpd qword [ebp - 0xd14], xmm0
movlpd qword [ebp - 0xd0c], xmm0
movlpd qword [ebp - 0xd04], xmm0
movlpd qword [ebp - 0xcfc], xmm0
movlpd qword [ebp - 0xcf4], xmm0
movlpd qword [ebp - 0xcec], xmm0
movups xmmword [ebp - 0xcd4], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4039e9
push 0xffffffffffffffff
push dword [ebp - 0xcd4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0xc64]
mov dword [ebp - 0xc64], 0
push eax
push dword [ebp - 0xcd4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0xcd4]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xcd0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or edi, 0xffffffff
mov edx, dword [ebp - 0xc58]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x403a06
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x59c688
lea ecx, [ebp - 0xc58]
mov byte [ebp - 4], 6
call fcn.00402b40
mov dword [ebp - 0xc74], eax
mov eax, dword [ebp - 0xc84]
sub eax, dword [ebp - 0xc88]
sar eax, 2
mov dword [ebp - 0xc7c], 1
test eax, eax
je 0x403a79
xor esi, esi
mov edi, eax
push 1
push 0x59c68c
lea ecx, [ebp - 0xc58]
call fcn.00401e80
mov eax, dword [ebp - 0xc88]
lea ecx, [ebp - 0xc58]
mov eax, dword [eax + esi*4]
push dword [eax - 0xc]
push eax
call fcn.00401e80
inc esi
cmp esi, edi
jb 0x403a41
mov esi, dword [ebp - 0xc70]
or edi, 0xffffffff
mov eax, dword [ebp - 0xc74]
lea ecx, [ebp - 0xc54]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00401e80
mov byte [ebp - 4], 5
mov eax, edi
mov edx, dword [ebp - 0xc58]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x403ab1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x59c688
lea ecx, [ebp - 0xc60]
call fcn.00402b40
mov byte [ebp - 4], 7
lea eax, [ebp - 0xc60]
push dword [ebp - 0xc54]
push esi
push dword [ebp - 0xc5c]
push str.msiexec.exe__s___s___s
push eax
call fcn.00403e30
add esp, 0x14
mov dword [ebp - 0xd6c], 0x44
lea eax, [ebp - 0xce4]
xorps xmm0, xmm0
movlpd qword [ebp - 0xd68], xmm0
movlpd qword [ebp - 0xd60], xmm0
push eax
lea eax, [ebp - 0xd6c]
movlpd qword [ebp - 0xd58], xmm0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0xc60]
movlpd qword [ebp - 0xd50], xmm0
push 0
movlpd qword [ebp - 0xd48], xmm0
movlpd qword [ebp - 0xd40], xmm0
movlpd qword [ebp - 0xd38], xmm0
movlpd qword [ebp - 0xd30], xmm0
movups xmmword [ebp - 0xce4], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x403b7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xc6c]
mov dword [ecx + 0xd0], eax
jmp 0x403c0c
push 0xffffffffffffffff
push dword [ebp - 0xce4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0xc78]
mov dword [ebp - 0xc78], 0
push eax
push dword [ebp - 0xce4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0xce4]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xce0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x403bda
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xc6c]
mov dword [ecx + 0xd0], eax
jmp 0x403c09
mov eax, dword [ebp - 0xc78]
test eax, eax
je 0x403bf2
mov ecx, dword [ebp - 0xc6c]
mov dword [ecx + 0xd0], eax
jmp 0x403c09
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0xc6c]
mov dword [ecx + 0xd0], 0
or edi, 0xffffffff
mov byte [ebp - 4], 5
mov eax, edi
mov edx, dword [ebp - 0xc60]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x403c2d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov eax, edi
mov edx, dword [ebp - 0xc54]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x403c4e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov eax, edi
mov edx, dword [ebp - 0xc5c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x403c6f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0xcc4]
call fcn.00403f90
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp - 0xc50]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x403c9b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x403cb7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053cc3d
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402de0
int3