Function at 0x10099df0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1024bdb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
mov dword [ebp - 0x20], vtable.WM::GMFile.0
mov dword [ebp - 0x1c], 0xffffffff
push 0x80
push 3
push 1
push accept
push dword [ebp + 8]
lea ecx, [ebp - 0x20]
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 - 0x1c]
jne 0x10099e63
mov dword [ebp - 0x20], vtable.WM::GMFile.0
cmp eax, 0xffffffff
je 0x10099e53
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 esi
cmp eax, 0xffffffff
je 0x10099e9a
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10099eab
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10099eab
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], vtable.WM::GMFile.0
cmp eax, esi
je 0x10099e9a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push ebx
xor ebx, ebx
push edi
mov ebx, esi
push ebx
call fcn.1006e70d
mov edi, eax
add esp, 4
test edi, edi
je 0x10099ef6
push ebx
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x20]
push eax
push ebx
push edi
call sym.WMCommon.dll_public_virtual:_bool___thiscall_WM::GMFile::Read_void___unsigned_int__unsigned_int__
test al, al
je 0x10099eed
push ebx
call fcn.1006e70d
mov esi, eax
add esp, 4
test esi, esi
jne 0x10099f11
push edi
call fcn.1006e708
add esp, 4
lea ecx, [ebp - 0x20]
call sym.WMCommon.dll_public_virtual:_void___thiscall_WM::GMFile::destructor_void_
pop edi
pop ebx
xor al, al
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push ebx
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x48]
call sym.WMCommon.dll_public:_void___thiscall_WM::GMDataEncrypt::constructor_void_
push 0
push ebx
push esi
push edi
lea ecx, [ebp - 0x48]
call sym.WMCommon.dll_private:_bool___thiscall_WM::GMDataEncrypt::EncryptData_unsigned_char_const___unsigned_char___unsigned_int__bool_
push edi
test al, al
jne 0x10099f47
call fcn.1006e708
push esi
call fcn.1006e708
add esp, 8
jmp 0x10099ef6
call fcn.1006e708
add esp, 4
mov dword [ebp - 0x28], vtable.WM::GMFile.0
mov dword [ebp - 0x24], 0xffffffff
push 0x80
push 2
push 0
push 0x40000000
push dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
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
jne 0x10099f94
push esi
call fcn.1006e708
add esp, 4
lea ecx, [ebp - 0x28]
call sym.WMCommon.dll_public_virtual:_void___thiscall_WM::GMFile::destructor_void_
jmp 0x10099ef6
lea eax, [ebp - 0x18]
push eax
push ebx
push esi
lea ecx, [ebp - 0x28]
call sym.WMCommon.dll_public_virtual:_bool___thiscall_WM::GMFile::Write_void_const___unsigned_int__unsigned_int__
push esi
test al, al
je 0x10099f7f
call fcn.1006e708
add esp, 4
lea ecx, [ebp - 0x28]
call sym.WMCommon.dll_public_virtual:_void___thiscall_WM::GMFile::destructor_void_
lea ecx, [ebp - 0x20]
call sym.WMCommon.dll_public_virtual:_void___thiscall_WM::GMFile::destructor_void_
mov ecx, dword [ebp - 0xc]
mov al, 1
pop edi
pop ebx
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret