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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1024bdd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
mov dword [ebp - 0x28], vtable.WM::GMFile.0
mov dword [ebp - 0x24], 0xffffffff
push 0x80
push 3
push 3
push accept
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
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
mov eax, dword [ebp - 0x24]
jne 0x1009a263
mov dword [ebp - 0x28], vtable.WM::GMFile.0
cmp eax, 0xffffffff
je 0x1009a253
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push edi
cmp eax, 0xffffffff
je 0x1009a29a
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1009a2ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1009a2ab
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], vtable.WM::GMFile.0
cmp eax, edi
je 0x1009a29a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x20]
push esi
xor esi, esi
mov dword [ebp - 0x20], vtable.WM::GMBuffer_unsigned_char_.0
add esi, edi
mov dword [ebp - 0x1c], 0
push esi
adc eax, 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x14], 0
call fcn.10020ab0
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x1009a3a4
mov eax, dword [ebp - 0x24]
cmp eax, 0xffffffff
je 0x1009a39b
push 0
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push ecx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1009a39b
mov eax, dword [ebp - 0x10]
test eax, eax
push ebx
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
push esi
call fcn.10020ab0
mov eax, dword [ebx + 4]
lea ecx, [ebp - 0x48]
cmp esi, eax
cmovbe eax, esi
mov dword [ebx + 0xc], eax
call sym.WMCommon.dll_public:_void___thiscall_WM::GMDataEncrypt::constructor_void_
cmp byte [ebp + 0x10], 0
lea ecx, [ebp - 0x48]
je 0x1009a348
push 1
jmp 0x1009a34a
push 0
push esi
push dword [ebx + 8]
push edi
call sym.WMCommon.dll_private:_bool___thiscall_WM::GMDataEncrypt::EncryptData_unsigned_char_const___unsigned_char___unsigned_int__bool_
lea ecx, [ebp - 0x20]
test al, al
jne 0x1009a37b
call sym.WMCommon.dll_public:_void___thiscall_WM::GMSerial::destructor_void_
lea ecx, [ebp - 0x28]
call sym.WMCommon.dll_public_virtual:_void___thiscall_WM::GMFile::destructor_void_
pop ebx
pop esi
xor al, al
pop edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call sym.WMCommon.dll_public:_void___thiscall_WM::GMSerial::destructor_void_
lea ecx, [ebp - 0x28]
call sym.WMCommon.dll_public_virtual:_void___thiscall_WM::GMFile::destructor_void_
pop ebx
pop esi
mov al, 1
pop edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push edi
call fcn.1006e708
add esp, 4
lea ecx, [ebp - 0x28]
call sym.WMCommon.dll_public_virtual:_void___thiscall_WM::GMFile::destructor_void_
mov ecx, dword [ebp - 0xc]
xor al, al
pop esi
pop edi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret