Function at 0x418411
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3f8]
sub esp, 0x478
mov eax, dword [0x48a9f8]
xor eax, ebp
mov dword [ebp + 0x3f4], eax
push esi
mov esi, ecx
call fcn.0041ab69
mov ecx, eax
call fcn.0041aada
mov dword [ebp - 0x44], eax
call fcn.0041ab69
mov ecx, eax
call fcn.0041aaeb
cmp byte [esi + 0xcd], 0
je 0x418467
push str.SetTrayDontLauchGameFlag
push esi
call fcn.0041706e
pop ecx
pop ecx
mov ecx, esi
call fcn.00416985
and dword [ebp - 0x28], 0
cmp byte [esi + 0xce], 0
push ebx
push edi
mov edi, dword [esi + 0x6c]
mov dword [ebp - 0x2c], edi
jne 0x41848f
test edi, edi
jbe 0x41848f
call fcn.00419b4c
mov edx, dword [eax]
push edi
push 0
mov ecx, eax
call dword [edx + 4]
lea ebx, [esi + 0x50]
mov eax, dword [ebx + 0x18]
push ebx
push dword [eax]
lea ecx, [ebp - 0x34]
call fcn.0041c1b7
push ebx
push dword [ebx + 0x18]
lea ecx, [ebp - 0x40]
call fcn.0041c1b7
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x34]
call fcn.00407d66
test al, al
jne 0x41867e
mov ebx, 0x208
cmp dword [ebp - 0x28], 0x40
jae 0x41867e
lea ecx, [ebp - 0x34]
call fcn.00416a24
mov eax, dword [eax + 0x1c]
add eax, 0x1c
cmp dword [eax + 0x18], 8
jb 0x4184e8
mov eax, dword [eax + 4]
jmp 0x4184eb
add eax, 4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x418633
xor eax, eax
push ebx
push eax
mov word [ebp + 0x1e8], ax
lea eax, [ebp + 0x1ea]
push eax
call fcn.004463d0
add esp, 0xc
lea ecx, [ebp - 0x34]
call fcn.00416a24
mov eax, dword [eax + 0x1c]
add eax, 0x1c
cmp dword [eax + 0x18], 8
jb 0x41852d
mov eax, dword [eax + 4]
jmp 0x418530
add eax, 4
push eax
push 0x46e620
mov edi, 0x104
lea eax, [ebp + 0x1e8]
push edi
push eax
call fcn.004038ae
push 0x38
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.004463d0
lea eax, [ebp + 0x1e8]
mov dword [ebp - 0x70], eax
xor eax, eax
add esp, 0x1c
mov dword [ebp - 0x80], 0x3c
cmp dword [esi + 0xa4], eax
je 0x4185b0
push ebx
push eax
lea eax, [ebp - 0x22]
xor ecx, ecx
push eax
mov word [ebp - 0x24], cx
call fcn.004463d0
lea eax, [esi + 0x90]
add esp, 0xc
cmp dword [eax + 0x18], 8
jb 0x418597
mov eax, dword [eax + 4]
jmp 0x41859a
add eax, 4
push eax
push str._PID_s
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.004038ae
add esp, 0x10
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x6c], eax
lea eax, [ebp + 0x1e8]
push eax
push str.Install_package_process:__s____param:_s_
mov dword [ebp - 0x7c], 0x40
call fcn.004053cd
push eax
call fcn.004047c2
add esp, 0x10
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x418633
push 0x2710
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x418633
cmp byte [esi + 0xce], al
jne 0x418611
call fcn.00419b4c
push dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov edx, dword [eax]
inc ecx
push ecx
mov ecx, eax
call dword [edx + 4]
or dword [ebp - 0x38], 0xffffffff
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x418633
cmp dword [ebp - 0x38], 0
jne 0x418633
and dword [0x4842e8], 0
lea ecx, [ebp - 0x34]
call fcn.00416a24
mov edi, dword [eax + 0x1c]
test edi, edi
je 0x418650
mov ecx, edi
call fcn.00417046
push edi
call fcn.0044674d
pop ecx
lea ecx, [ebp - 0x34]
call fcn.00408909
inc dword [ebp - 0x28]
lea eax, [esi + 0x50]
push eax
push dword [eax + 0x18]
lea ecx, [ebp - 0x40]
call fcn.0041c1b7
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x34]
call fcn.00407d66
test al, al
je 0x4184c5
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esi + 0xce], 0
pop edi
pop ebx
jne 0x4186a4
call fcn.00419b4c
push dword [ebp - 0x2c]
mov edx, dword [eax]
push dword [ebp - 0x2c]
mov ecx, eax
call dword [edx + 4]
lea ecx, [esi + 0x50]
call fcn.00418269
mov ecx, esi
call fcn.004174c8
mov ecx, dword [ebp + 0x3f4]
mov byte [esi + 0xcc], 1
xor ecx, ebp
mov al, 1
pop esi
call fcn.004463b6
add ebp, 0x3f8
leave
ret