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

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x8dc
push ebx
mov ebx, dword [ebp + 0x74]
push esi
push dword [ebx + 0x18]
mov esi, dword [sym.imp.ntdll.dll_wcscpy]
lea eax, [ebp - 0x54]
push eax
call esi
pop ecx
pop ecx
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp - 0x870]
push eax
push 0x104
push 0
lea eax, [ebp - 0x54]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x1001ac4
lea eax, [ebp - 0x54]
push eax
push 0x3ea
call fcn.010019e6
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x1001c70
push edi
mov edi, 0x1001374
lea eax, [ebp - 0x668]
push edi
push eax
call esi
mov esi, dword [sym.imp.ntdll.dll_wcscat]
lea eax, [ebp - 0x870]
push eax
lea eax, [ebp - 0x668]
push eax
call esi
lea eax, [ebp - 0x668]
push edi
push eax
call esi
mov edi, dword [sym.imp.ntdll.dll_wcslen]
xor edx, edx
add esp, 0x18
cmp dword [ebx + 0x1c], edx
je 0x1001b56
lea eax, [ebp - 0x668]
push 0x10012e4
push eax
call esi
push dword [ebx + 0x1c]
call edi
mov ebx, eax
lea eax, [ebp - 0x668]
push eax
call edi
lea eax, [ebx + eax + 3]
add esp, 0x10
cmp eax, 0x612
jbe 0x1001b43
push 0x3e9
call fcn.010019e6
xor eax, eax
pop ecx
inc eax
jmp 0x1001c6f
mov eax, dword [ebp + 0x74]
push dword [eax + 0x1c]
lea eax, [ebp - 0x668]
push eax
call esi
pop ecx
pop ecx
xor edx, edx
xor eax, eax
cmp dword [ebp + 0x78], edx
mov dword [ebp + 0x74], eax
jle 0x1001baf
mov ecx, dword [ebp + 0x7c]
mov eax, dword [ecx + eax*4]
push eax
mov dword [ebp + 0x68], eax
call edi
mov ebx, eax
lea eax, [ebp - 0x668]
push eax
call edi
lea eax, [ebx + eax + 3]
cmp eax, 0x612
pop ecx
pop ecx
ja 0x1001b30
lea eax, [ebp - 0x668]
push 0x10012e4
push eax
call esi
push dword [ebp + 0x68]
lea eax, [ebp - 0x668]
push eax
call esi
mov eax, dword [ebp + 0x74]
add esp, 0x10
inc eax
cmp eax, dword [ebp + 0x78]
mov dword [ebp + 0x74], eax
jl 0x1001b60
xor edx, edx
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp + 0x10]
push eax
push edx
push edx
push edx
xor esi, esi
inc esi
push esi
push edx
push edx
lea eax, [ebp - 0x668]
push eax
lea eax, [ebp - 0x870]
push eax
mov dword [ebp + 0x10], 0x44
mov dword [ebp + 0x14], edx
mov dword [ebp + 0x1c], edx
mov dword [ebp + 0x3c], edx
mov word [ebp + 0x42], dx
mov dword [ebp + 0x44], edx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1001c3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1001c18
lea eax, [ebp - 0x54]
push eax
push 0x3ea
call fcn.010019e6
pop ecx
pop ecx
mov eax, esi
jmp 0x1001c6f
cmp eax, 0x7b
jne 0x1001c37
lea eax, [ebp - 0x668]
push eax
lea eax, [ebp - 0x54]
push eax
push 0x3eb
call fcn.010019e6
add esp, 0xc
jmp 0x1001c14
push eax
push 0x3ec
jmp 0x1001c0d
push 0xffffffffffffffff
push dword [ebp + 0x54]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x1001c5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x3ed
jmp 0x1001c0d
push dword [ebp + 0x58]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp + 0x54]
call esi
xor eax, eax
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret 0xc