Function at 0x1000ca40
Capabilities:
Accept command line arguments
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10039da6
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x1004e014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
call esi
push str.UpdateFinish
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
je 0x1000ca8d
xor eax, eax
jmp 0x1000cce9
call fcn.1000c900
mov ecx, eax
call fcn.1000d070
test eax, eax
je 0x1000ca86
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10014600
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.update_tempupdate.exe
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
mov dword [ebp - 0x22c], 0
push eax
lea ecx, [ebp - 0x22c]
call fcn.10009220
push dword [ebp - 0x22c]
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or ebx, 0xffffffff
test eax, eax
je 0x1000ccc3
push dword [ebp - 0x22c]
call dword [sym.imp.nativeutils.dll_Ordinal_5]
test eax, eax
je 0x1000ccc3
call esi
mov esi, eax
call fcn.10018571
push eax
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
lea ecx, [ebp - 0x22d]
mov dword [ebp - 0x228], 0
mov edi, eax
call fcn.1000c730
push eax
lea ecx, [ebp - 0x228]
call fcn.10009220
mov byte [ebp - 4], 1
lea esi, [ebx + 2]
call fcn.10018571
cmp dword [eax], esi
jle 0x1000cba4
test edi, edi
je 0x1000cbaf
push 0x1003c554
lea ecx, [ebp - 0x228]
call fcn.1000c820
push dword [edi + esi*4]
lea ecx, [ebp - 0x228]
call fcn.1000c820
inc esi
call fcn.10018571
cmp esi, dword [eax]
jl 0x1000cb78
test edi, edi
je 0x1000cbaf
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [section..data], 0
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x22c]
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x238], ecx
je 0x1000cc78
push str.ntdll.dll
mov dword [ebp - 0x220], 0
xor edi, edi
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x21c], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x1000cc62
push str.RtlGetNtVersionNumbers
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000cc3e
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x220]
push ecx
call eax
movzx eax, word [ebp - 0x21c]
mov edi, 1
mov dword [ebp - 0x21c], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x1000cc62
mov eax, dword [0x10050034]
mov ecx, 1
cmp dword [ebp - 0x220], 6
cmovae eax, ecx
mov dword [0x10050034], eax
mov eax, dword [ebp - 0x234]
mov ecx, dword [ebp - 0x238]
mov dword [section..data], 0
cmp dword [0x10050034], 0
push 1
push 0
push eax
push ecx
mov ecx, str.open
mov eax, 0x1003c558
cmove eax, ecx
push eax
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edx, dword [ebp - 0x228]
mov esi, 1
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000ccc5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x1000ccc5
xor esi, esi
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1000cce7
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000d872
mov esp, ebp
pop ebp
ret