Function at 0x10090de0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1024b574
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
push ebx
push esi
push edi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], vtable.WM::GMFile.0
mov dword [ebp - 0x18], 0xffffffff
push 0x80
push 3
push 1
push 0x120089
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
push dword [ebp + 8]
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 0x10091140
mov eax, dword [ebp - 0x18]
cmp eax, 0xffffffff
je 0x10091143
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10090e66
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10091140
mov ecx, dword [ebp + 8]
xor esi, esi
add esi, edi
mov eax, esi
adc ecx, 0
or eax, ecx
je 0x10091140
test ecx, ecx
ja 0x10091140
jb 0x10090e9b
cmp esi, 0x100000
ja 0x10091140
test ecx, ecx
ja 0x10090e9f
jb 0x10090e9b
cmp esi, 2
jae 0x10090e9f
xor bl, bl
jmp 0x10090f07
xor eax, eax
mov word [ebp - 0x14], ax
mov eax, dword [ebp - 0x18]
cmp eax, 0xffffffff
je 0x10091143
push 0
lea ecx, [ebp + 8]
mov dword [ebp + 8], 0
push ecx
push 2
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10091140
mov eax, dword [ebp + 8]
test eax, eax
je 0x10091140
cmp eax, 2
jne 0x10091140
mov ax, word [ebp - 0x14]
cmp al, 0xff
jne 0x10090ef8
cmp ah, 0xfe
jne 0x10090ef8
mov bl, 1
jmp 0x10090f07
xor bl, bl
cmp al, 0xfe
jne 0x10090f07
cmp ah, 0xff
je 0x10091140
lea ecx, [ebp - 0x1c]
call sym.WMCommon.dll_public:_bool___thiscall_WM::GMFile::SeekBeginOfFile_void_
test bl, bl
je 0x10090f33
lea eax, [ebp - 0x8c]
push eax
push 1
push 0
push 2
lea ecx, [ebp - 0x1c]
call sym.WMCommon.dll_public_virtual:_bool___thiscall_WM::GMFile::Seek_long_long___int64___unsigned_int__unsigned_long_long_unsigned___int64___const
test al, al
je 0x10091140
add esi, 0xfffffffe
push esi
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x20], 0
call fcn.100209c0
push esi
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x8c]
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x1c]
push eax
push esi
push edi
call sym.WMCommon.dll_public_virtual:_bool___thiscall_WM::GMFile::Read_void___unsigned_int__unsigned_int__
test al, al
jne 0x10090f83
lea ecx, [ebp - 0x94]
xor bl, bl
call sym.WMCommon.dll_public:_void___thiscall_WM::GMSerial::destructor_void_
mov eax, dword [ebp - 0x18]
jmp 0x10091145
xor eax, eax
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
mov byte [ebp - 4], 2
test bl, bl
je 0x10090fc4
shr esi, 1
lea ecx, [ebp - 0x84]
push esi
push edi
call fcn.1001a330
push eax
lea ecx, [ebp - 0x6c]
call fcn.1001a270
lea ecx, [ebp - 0x84]
call fcn.1001a5a0
jmp 0x10091035
push esi
push edi
lea ecx, [ebp - 0x3c]
call fcn.10027a10
push 0
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x84]
push eax
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::GMStringConvert::MultiByteToUnicodeString_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int_
add esp, 0xc
lea ecx, [ebp - 0x6c]
push eax
call fcn.1001a270
lea ecx, [ebp - 0x84]
call fcn.1001a5a0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x28]
cmp edx, 0x10
jb 0x10091035
mov ecx, dword [ebp - 0x3c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1009102b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1009102b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1006e6d7
add esp, 8
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x54]
call fcn.1001a380
push 0x10266ac8
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 4
push 0x10266acc
push eax
call sym.WMCommon.dll_public:_static_void___cdecl_WM::GMStringUtils::Replace_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____wchar_t_const___wchar_t_const__
add esp, 0xc
cmp dword [ebp - 0x44], 0
je 0x1009111e
mov esi, dword [ebp - 0x24]
nop dword [eax + eax]
lea eax, [ebp - 0x54]
push 0x10265fb8
push eax
call sym.WMCommon.dll_public:_static_void___cdecl_WM::GMStringUtils::TrimLeft_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____wchar_t_const__
add esp, 8
lea ecx, [ebp - 0x84]
push 0x10266ac8
call fcn.1001a2f0
lea eax, [ebp - 0x84]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x3c]
push eax
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::GMStringUtils::GetLine_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 0xc
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 7
call fcn.1001a5a0
lea eax, [ebp - 0x3c]
push 0x10265fb8
push eax
call sym.WMCommon.dll_public:_static_void___cdecl_WM::GMStringUtils::TrimLeft_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____wchar_t_const__
lea eax, [ebp - 0x3c]
push 0x10265fb8
push eax
call sym.WMCommon.dll_public:_static_void___cdecl_WM::GMStringUtils::TrimRight_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____wchar_t_const__
mov eax, dword [esi + 0x1b8]
lea ecx, [ebp - 0x3c]
add esp, 0x10
push ecx
cmp dword [esi + 0x1bc], eax
je 0x100910fc
mov ecx, eax
call fcn.1001a380
add dword [esi + 0x1b8], 0x18
jmp 0x10091108
push eax
lea ecx, [esi + 0x1b4]
call fcn.1001d450
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 4
call fcn.1001a5a0
cmp dword [ebp - 0x44], 0
jne 0x10091070
lea ecx, [ebp - 0x54]
mov bl, 1
call fcn.1001a5a0
lea ecx, [ebp - 0x6c]
call fcn.1001a5a0
lea ecx, [ebp - 0x94]
call sym.WMCommon.dll_public:_void___thiscall_WM::GMSerial::destructor_void_
mov eax, dword [ebp - 0x18]
jmp 0x10091145
mov eax, dword [ebp - 0x18]
xor bl, bl
mov dword [ebp - 0x1c], vtable.WM::GMFile.0
cmp eax, 0xffffffff
je 0x10091158
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4