Function at 0x10007190
Capabilities:
Check if file exists
Create process on windows
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x10031894
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x1004304c]
xor eax, esp
mov dword [esp + 0xb8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1004304c]
xor eax, esp
push eax
lea eax, [esp + 0xd0]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xe0]
mov dword [esp + 0xd8], 1
mov eax, dword [0x100448a8]
mov edx, dword [eax + 0xc]
mov ecx, 0x100448a8
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
lea esi, [esp + 0x18]
mov byte [esp + 0xd8], 2
call fcn.10015d80
mov ebx, 8
mov byte [esp + 0xd8], 3
cmp dword [eax + 0x18], ebx
jb 0x1000721b
mov eax, dword [eax + 4]
jmp 0x1000721e
add eax, 4
push eax
push str._sgameCore_cef.exe
lea edi, [esp + 0x1c]
call fcn.100083b0
add esp, 8
lea ecx, [esp + 0x18]
mov byte [esp + 0xd8], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x7c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea ecx, [esp + 0x94]
mov byte [esp + 0xd8], 4
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov byte [esp + 0xd8], 5
cmp dword [esp + 0x118], 0x10
mov eax, dword [esp + 0x104]
jae 0x10007286
lea eax, [esp + 0x104]
lea ecx, [esp + 0x94]
push ecx
push eax
call fcn.10015a80
mov ecx, dword [esp + 0xa0]
add esp, 8
cmp dword [esp + 0xac], ebx
jae 0x100072ae
lea ecx, [esp + 0x98]
mov eax, dword [esp + 0xe8]
cmp dword [esp + 0xfc], ebx
jae 0x100072c5
lea eax, [esp + 0xe8]
mov edx, dword [esp + 0x11c]
push edx
push 0x100353e0
push 0x100353e0
push ecx
push eax
mov eax, dword [ebp]
mov edx, dword [eax + 0x8c]
mov ecx, ebp
call edx
push eax
push str._p_d__u_s__d_s__a_s__b_s__m_d
lea edi, [esp + 0x30]
call fcn.100083b0
mov esi, dword [esp + 0x30]
add esp, 0x1c
push esi
lea ecx, [esp + 0xb4]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov byte [esp + 0xd8], 6
mov eax, dword [esp + 0xb4]
cmp dword [esp + 0xc8], ebx
jae 0x10007329
lea eax, [esp + 0xb4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esp + 0x7c]
cmp dword [esp + 0x90], ebx
jae 0x10007341
lea eax, [esp + 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100073c5
xor eax, eax
push 0x40
push eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x24], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0
lea ecx, [esp + 0xb4]
mov dword [esp + 0x38], 0x44
call dword [sym.imp.MSVCP90.dll_public:_wchar_t____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator___unsigned_int_]
mov ecx, dword [esp + 0x7c]
cmp dword [esp + 0x90], ebx
jae 0x1000739a
lea ecx, [esp + 0x7c]
lea edx, [esp + 0x18]
push edx
lea edx, [esp + 0x38]
push edx
push 0
push 0
push 0x220
push 0
push 0
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov eax, dword [esp + 0x20]
mov dword [ebp + 0x2728], eax
lea ecx, [esp + 0xb0]
mov byte [esp + 0xd8], 5
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x94]
mov byte [esp + 0xd8], 4
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x78]
mov byte [esp + 0xd8], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea eax, [esi - 0x10]
mov byte [esp + 0xd8], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10007425
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0xe4]
mov byte [esp + 0xd8], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x100]
mov dword [esp + 0xd8], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, 1
mov ecx, dword [esp + 0xd0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.1002dfc6
add esp, 0xc8
ret 0x40