Function at 0x1002d1f0
Capabilities:
Create process on windows
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x1005190c
mov eax, dword fs:[0]
push eax
sub esp, 0x180
mov eax, dword [0x1007ff50]
xor eax, esp
mov dword [esp + 0x17c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1007ff50]
xor eax, esp
push eax
lea eax, [esp + 0x194]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x7c]
or ebp, 0xffffffff
cmp eax, ebp
je 0x1002d27d
push 1
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1002d24c
lea eax, [ebp + 5]
jmp 0x1002d643
cmp byte [esi + 0x78], 0
je 0x1002d306
cmp byte [esp + 0x1a4], 0
je 0x1002d306
mov eax, dword [esi + 0x7c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [esi + 0x7c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x7c], ebp
lea edi, [esi + 0x38]
lea eax, [esp + 0x74]
push edi
push eax
call dword [sym.imp.K8Common.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_GameMgr::GMFileName::GetDirectory_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
push eax
mov dword [esp + 0x1a8], 1
call dword [sym.imp.K8Common.dll_public:_static_bool___cdecl_GameMgr::GMFilePathUtils::CreateDirectories_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
add esp, 0xc
test al, al
lea ecx, [esp + 0x74]
sete bl
mov dword [esp + 0x19c], ebp
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
test bl, bl
je 0x1002d33f
push edi
lea ecx, [esp + 0x78]
push str.create_dir_error:
push ecx
call dword [sym.imp.MSVCP80.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___wchar_t_const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
add esp, 0xc
push eax
lea ecx, [esi + 0xa8]
mov dword [esp + 0x1a0], 2
call dword [0x10055468]
lea ecx, [esp + 0x74]
mov dword [esp + 0x19c], ebp
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, 3
jmp 0x1002d643
lea ecx, [esp + 0x90]
call sym.K8DLUtils.dll_public:_void___thiscall_GameMgr::GMDLRuntimeFile::GMState::constructor_void_
lea edx, [esp + 0x90]
push edx
mov ecx, esi
mov dword [esp + 0x1a0], 0
call sym.K8DLUtils.dll_private:_enum_GameMgr::GMDLPlatformState___thiscall_GameMgr::GMDLControler::CheckDLPlatformState_struct_GameMgr::GMDLRuntimeFile::GMState__
mov dword [esp + 0x19c], ebp
lea ecx, [esp + 0x90]
jmp 0x1002d63a
mov ebp, dword [sym.imp.K8Common.dll_public:_bool___thiscall_GameMgr::GMFile::Create_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___unsigned_int__unsigned_int__unsigned_int__unsigned_int_]
push 0x80
push 2
push 1
push 0x12019f
lea ebx, [esi + 0x54]
push edi
mov ecx, ebx
call ebp
test al, al
jne 0x1002d435
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x1002d45e
push 0x80
push 3
push 3
push 0x120089
push edi
mov ecx, ebx
mov byte [esi + 0x78], 0
call ebp
test al, al
jne 0x1002d3de
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
lea edx, [esp + 0x78]
push str.open_flag_file_error:
push edx
call dword [sym.imp.MSVCP80.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___wchar_t_const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
add esp, 0xc
push eax
lea ecx, [esi + 0xa8]
mov dword [esp + 0x1a0], 3
call dword [0x10055468]
lea ecx, [esp + 0x74]
mov dword [esp + 0x19c], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, 3
jmp 0x1002d643
lea edi, [esi + 0x74]
mov ecx, edi
call dword [sym.imp.K8Common.dll_public:_bool___thiscall_GameMgr::GMFile::IsOpen_void_const]
test al, al
jne 0x1002d403
push 0x80
push 4
push 3
push 0x12019f
lea eax, [esi + 0x58]
push eax
mov ecx, edi
call ebp
lea ecx, [esp + 0x90]
call sym.K8DLUtils.dll_public:_void___thiscall_GameMgr::GMDLRuntimeFile::GMState::constructor_void_
lea ecx, [esp + 0x90]
push ecx
mov ecx, esi
mov dword [esp + 0x1a0], 4
call sym.K8DLUtils.dll_private:_enum_GameMgr::GMDLPlatformState___thiscall_GameMgr::GMDLControler::CheckDLPlatformState_struct_GameMgr::GMDLRuntimeFile::GMState__
lea ecx, [esp + 0x90]
jmp 0x1002d62f
lea edi, [esi + 0x74]
mov ecx, edi
call dword [sym.imp.K8Common.dll_public:_bool___thiscall_GameMgr::GMFile::IsOpen_void_const]
test al, al
jne 0x1002d45a
push 0x80
push 4
push 3
push 0x12019f
lea edx, [esi + 0x58]
push edx
mov ecx, edi
call ebp
mov byte [esi + 0x78], 1
cmp byte [esi + 0x78], 0
je 0x1002d602
lea ecx, [esp + 0x90]
call sym.K8DLUtils.dll_public:_void___thiscall_GameMgr::GMDLRuntimeFile::GMState::constructor_void_
lea eax, [esp + 0x90]
push eax
mov ecx, esi
mov dword [esp + 0x1a0], 5
call sym.K8DLUtils.dll_private:_enum_GameMgr::GMDLPlatformState___thiscall_GameMgr::GMDLControler::CheckDLPlatformState_struct_GameMgr::GMDLRuntimeFile::GMState__
or ebx, 0xffffffff
cmp dword [esi + 0x7c], ebx
mov edi, eax
je 0x1002d4b2
lea ecx, [esp + 0x90]
mov dword [esp + 0x19c], ebx
call sym.K8DLUtils.dll_public:_void___thiscall_GameMgr::GMDLRuntimeFile::GMState::destructor_void_
mov eax, edi
jmp 0x1002d643
xor ebp, ebp
push 0x40
xor eax, eax
lea ecx, [esp + 0x38]
push ebp
push ecx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x3c], 0x44
call sub.MSVCR80.dll_memset
or dword [esp + 0x68], 0x81
xor eax, eax
mov dword [esp + 0x38], eax
add esp, 0xc
lea ecx, [esp + 0x74]
mov dword [esp + 0x24], 0xc
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 1
mov word [esp + 0x60], bp
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov edi, 8
cmp dword [esi + 0x34], edi
mov byte [esp + 0x19c], 6
jb 0x1002d526
mov ecx, dword [esi + 0x20]
jmp 0x1002d529
lea ecx, [esi + 0x20]
cmp dword [esi + 0x18], edi
jb 0x1002d533
mov eax, dword [esi + 4]
jmp 0x1002d536
lea eax, [esi + 4]
push ecx
push str._runtime
push eax
lea edx, [esp + 0x80]
push str.__s___s__s_
push edx
call dword [sym.imp.K8Common.dll_public:_static_void___cdecl_GameMgr::GMStringUtils::Format_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____wchar_t_const__]
mov eax, dword [esp + 0x8c]
add esp, 0x14
cmp dword [esp + 0x8c], edi
jae 0x1002d567
lea eax, [esp + 0x78]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x34]
push edx
push ebp
push ebp
push ebp
push ebp
push ebp
lea ecx, [esp + 0x40]
push ecx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, ebp
jne 0x1002d5c4
push str.Create_process_failed
lea ecx, [esi + 0xa8]
call dword [0x10055494]
lea ecx, [esp + 0x74]
mov byte [esp + 0x19c], 5
call dword [sym.imp.MSVCP80.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 + 0x90]
mov dword [esp + 0x19c], ebx
call sym.K8DLUtils.dll_public:_void___thiscall_GameMgr::GMDLRuntimeFile::GMState::destructor_void_
mov eax, 3
jmp 0x1002d643
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push eax
mov dword [esi + 0x7c], edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x74]
mov byte [esp + 0x19c], 5
call dword [sym.imp.MSVCP80.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 + 0x90]
mov dword [esp + 0x19c], ebx
call sym.K8DLUtils.dll_public:_void___thiscall_GameMgr::GMDLRuntimeFile::GMState::destructor_void_
mov eax, 1
jmp 0x1002d643
lea ecx, [esp + 0x110]
call sym.K8DLUtils.dll_public:_void___thiscall_GameMgr::GMDLRuntimeFile::GMState::constructor_void_
lea ecx, [esp + 0x110]
push ecx
mov ecx, esi
mov dword [esp + 0x1a0], 7
call sym.K8DLUtils.dll_private:_enum_GameMgr::GMDLPlatformState___thiscall_GameMgr::GMDLControler::CheckDLPlatformState_struct_GameMgr::GMDLRuntimeFile::GMState__
lea ecx, [esp + 0x110]
mov dword [esp + 0x19c], 0xffffffff
mov esi, eax
call sym.K8DLUtils.dll_public:_void___thiscall_GameMgr::GMDLRuntimeFile::GMState::destructor_void_
mov eax, esi
mov ecx, dword [esp + 0x194]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x17c]
xor ecx, esp
call fcn.1004a1cc
add esp, 0x18c
ret 4