Function at 0x1008d6a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1024b06d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x258
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x6c]
push edi
xor ebx, ebx
push eax
mov dword [ebp - 0x54], ebx
call sym.WMCommon.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_WM::GMFilePathUtils::Extension_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 8
mov dword [ebp - 4], ebx
mov esi, dword [ebp - 0x5c]
test esi, esi
je 0x1008d797
push 4
xor eax, eax
mov dword [ebp - 0x40], ebx
push str..gmz
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
call fcn.1001a600
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
cmp esi, dword [ebp - 0x40]
lea eax, [ebp - 0x6c]
mov edx, esi
mov ebx, 1
cmovb edx, dword [ebp - 0x40]
cmp dword [ebp - 0x3c], 8
push edx
cmovae ecx, dword [ebp - 0x50]
cmp dword [ebp - 0x58], 8
push ecx
cmovae eax, dword [ebp - 0x6c]
push eax
mov dword [ebp - 0x54], ebx
call sym.WMCommon.dll_public:_static_int___cdecl_WM::GMStringUtils::CompareNoCase_wchar_t_const___wchar_t_const___unsigned_int_
add esp, 0xc
test eax, eax
je 0x1008d791
push 6
xor eax, eax
mov dword [ebp - 0x28], 0
push 0x10266234
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
call fcn.1001a600
cmp esi, dword [ebp - 0x28]
lea ecx, [ebp - 0x38]
lea eax, [ebp - 0x6c]
mov ebx, 3
cmovb esi, dword [ebp - 0x28]
cmp dword [ebp - 0x24], 8
push esi
cmovae ecx, dword [ebp - 0x38]
cmp dword [ebp - 0x58], 8
push ecx
cmovae eax, dword [ebp - 0x6c]
push eax
call sym.WMCommon.dll_public:_static_int___cdecl_WM::GMStringUtils::CompareNoCase_wchar_t_const___wchar_t_const___unsigned_int_
add esp, 0xc
test eax, eax
jne 0x1008d797
mov byte [ebp - 0xd], 0
jmp 0x1008d79b
mov byte [ebp - 0xd], 1
test bl, 2
je 0x1008d7ab
lea ecx, [ebp - 0x38]
and ebx, 0xfffffffd
call fcn.1001a5a0
mov dword [ebp - 4], 0
test bl, 1
je 0x1008d7bf
lea ecx, [ebp - 0x50]
call fcn.1001a5a0
cmp byte [ebp - 0xd], 0
je 0x1008d7cc
xor bl, bl
jmp 0x1008d985
mov dword [ebp - 0x18], vtable.WM::GMFile.0
mov dword [ebp - 0x14], 0xffffffff
push 0x80
push 3
push 3
push accept
push edi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call sym.WMCommon.dll_public:_bool___thiscall_WM::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_
test al, al
je 0x1008d958
xor eax, eax
mov word [ebp - 0x1c], ax
mov byte [ebp - 0x1a], al
mov eax, dword [ebp - 0x14]
cmp eax, 0xffffffff
je 0x1008d95b
push 0
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push ecx
push 3
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1008d958
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x1008d958
cmp eax, 3
jne 0x1008d958
lea ecx, [ebp - 0x1c]
cmp word [ecx], 0x4d47
jne 0x1008d958
cmp byte [ecx + 2], 0x5a
jne 0x1008d958
lea ecx, [ebp - 0x18]
call sym.WMCommon.dll_public:_bool___thiscall_WM::GMFile::SeekBeginOfFile_void_
test al, al
je 0x1008d958
push 0
push 0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x264]
call sym.WMCommon.dll_public:_void___thiscall_WM::GMSfxInstall::constructor_class_WM::GMBaseFile___bool__enum_WM::GMRegInstallType_
push dword [ebp + 0x10]
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 3
call sym.WMCommon.dll_public_virtual:_bool___thiscall_WM::GMSfxInstall::Load_bool_
test al, al
je 0x1008d946
mov edi, dword [ebp + 0xc]
cmp edi, 0xffffffff
je 0x1008d934
push str.gmid
lea ecx, [ebp - 0x38]
call fcn.1001a2f0
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x264]
call sym.WMCommon.dll_public:_bool___thiscall_WM::GMSfxInstall::HasGameMetaData_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
lea ecx, [ebp - 0x38]
mov bl, al
call fcn.1001a5a0
test bl, bl
je 0x1008d946
push str.gmid
lea ecx, [ebp - 0x38]
call fcn.1001a2f0
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x264]
call sym.WMCommon.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_WM::GMSfxInstall::GetGameMetaData_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
lea ecx, [ebp - 0x38]
call fcn.1001a5a0
cmp dword [ebp - 0x3c], 8
lea eax, [ebp - 0x50]
push 0
cmovae eax, dword [ebp - 0x50]
push eax
call sym.WMCommon.dll_public:_static_unsigned_long_long_unsigned___int64____cdecl_WM::GMStringUtils::ConvertStringToUInt64_wchar_t_const___wchar_t_const___
add esp, 8
lea ecx, [ebp - 0x50]
mov esi, eax
call fcn.1001a5a0
cmp esi, edi
lea ecx, [ebp - 0x264]
sete bl
call sym.WMCommon.dll_public_virtual:_void___thiscall_WM::GMSfxInstall::destructor_void_
mov eax, dword [ebp - 0x14]
jmp 0x1008d95d
lea ecx, [ebp - 0x264]
mov bl, 1
call sym.WMCommon.dll_public_virtual:_void___thiscall_WM::GMSfxInstall::destructor_void_
mov eax, dword [ebp - 0x14]
jmp 0x1008d95d
lea ecx, [ebp - 0x264]
xor bl, bl
call sym.WMCommon.dll_public_virtual:_void___thiscall_WM::GMSfxInstall::destructor_void_
mov eax, dword [ebp - 0x14]
jmp 0x1008d95d
mov eax, dword [ebp - 0x14]
xor bl, bl
mov dword [ebp - 0x18], vtable.WM::GMFile.0
cmp eax, 0xffffffff
je 0x1008d97e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
or edx, 0xffffffff
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], vtable.WM::GMBaseFile.0
lea ecx, [ebp - 0x6c]
call fcn.1001a5a0
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret