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

Disassembly:
sub esp, 0x864
mov eax, dword [0x1013b024]
xor eax, esp
mov dword [esp + 0x860], eax
mov eax, dword [esp + 0x868]
push ebx
push esi
push edi
push 0x3fe
mov ebx, ecx
lea ecx, [esp + 0x6e]
push 0
push ecx
mov esi, edx
mov dword [esp + 0x18], eax
mov word [esp + 0x74], 0
call sub.MSVCR80.dll_memset
push 0x3fe
lea edx, [esp + 0x47a]
push 0
push edx
mov word [esp + 0x480], 0
call sub.MSVCR80.dll_memset
push 0x44
lea eax, [esp + 0x3c]
push 0
push eax
call sub.MSVCR80.dll_memset
xor eax, eax
xor ecx, ecx
add esp, 0x24
test esi, esi
setne cl
mov dword [esp + 0x20], 0x44
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov edi, ecx
test edi, edi
jne 0x10108741
push 0x192
mov esi, str..green.cpp
call fcn.10107420
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call sub.Comn.dll_GetObjectLog
mov edx, dword [eax]
push esi
push ebx
push str.pApp_NULL
push str._s_return_code:_0x_08X___s.
push eax
mov eax, dword [edx + 0xc]
call eax
add esp, 0x14
jmp 0x101088c6
lea edx, [ebx + 0x1c]
mov eax, edx
lea edi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10108750
sub eax, edi
sar eax, 1
xor ecx, ecx
cmp ecx, eax
sbb edi, edi
neg edi
jne 0x101087a6
push 0x193
mov esi, str..green.cpp
call fcn.10107420
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call sub.Comn.dll_GetObjectLog
mov edx, dword [eax]
push esi
push ebx
push str._tcslen_m_tszRoot__0
push str._s_return_code:_0x_08X___s.
push eax
mov eax, dword [edx + 0xc]
call eax
add esp, 0x14
jmp 0x101088c6
push esi
mov esi, dword [sym.imp.MSVCR80.dll__swprintf]
push edx
lea ecx, [esp + 0x70]
push str._s_s
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov edi, ecx
test edi, edi
jne 0x10108813
push 0x196
mov esi, str..green.cpp
call fcn.10107420
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call sub.Comn.dll_GetObjectLog
mov edx, dword [eax]
push esi
push ebx
push str.GetFileAttributes_tszLoadDrv__INVALID_FILE_ATTRIBUTES
push str._s_return_code:_0x_08X___s.
push eax
mov eax, dword [edx + 0xc]
call eax
add esp, 0x14
jmp 0x101088c6
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x10108837
jmp 0x10108820
movzx ecx, word [esp + eax + 0x68]
mov word [esp + eax + 0x468], cx
add eax, 2
test cx, cx
jne 0x10108820
jmp 0x1010884f
push eax
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x470]
push str._s__s
push edx
call esi
add esp, 0x10
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x488]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
test edi, edi
jne 0x101088a5
push 0x1aa
mov esi, str..green.cpp
call fcn.10107420
add esp, 4
push eax
push str.CreateProcess_NULL__tszCommand__NULL__NULL__FALSE__0__NULL__NULL__si__pi_
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.100015b0
add esp, 8
jmp 0x101088c6
mov eax, dword [esp + 0x10]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
mov ecx, dword [esp + 0x86c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1010dc50
add esp, 0x864
ret 4