Function at 0x100e6c00
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10250ca2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x380
push ebx
push esi
push edi
mov dword [ebp - 0x14], vtable.WM::GMFile.0
mov dword [ebp - 0x10], 0xffffffff
push 0x80
push 3
push 1
push 0x120089
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
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
je 0x100e7030
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], 0
cmp eax, 0xffffffff
je 0x100e7030
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [ebp - 0x18]
push 0
push ecx
push 0x40
lea ecx, [ebp - 0x184]
mov dword [ebp - 0x18], 0
push ecx
push eax
call ebx
test eax, eax
je 0x100e7030
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100e7030
cmp eax, 0x40
jne 0x100e7030
mov eax, 0x5a4d
cmp word [ebp - 0x184], ax
jne 0x100e7030
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x148]
lea ecx, [ebp - 0x14]
push 0
cdq
push edx
push eax
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 0x100e7030
mov eax, dword [ebp - 0x10]
cmp eax, 0xffffffff
je 0x100e7030
push 0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push ecx
push 0xf8
lea ecx, [ebp - 0x144]
push ecx
push eax
call ebx
test eax, eax
je 0x100e7030
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100e7030
cmp eax, 0xf8
jne 0x100e7030
cmp dword [ebp - 0x144], 0x4550
jne 0x100e7030
test byte [ebp - 0x12e], 2
je 0x100e7030
movzx esi, word [ebp - 0x13e]
xor ecx, ecx
mov eax, esi
mov edx, 0x28
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1006e70d
add esp, 4
lea ecx, [esi + esi*4]
mov ebx, eax
shl ecx, 3
lea eax, [ebp - 0x18]
mov dword [ebp - 0x2c], ebx
push eax
push ecx
push ebx
lea ecx, [ebp - 0x14]
call sym.WMCommon.dll_public_virtual:_bool___thiscall_WM::GMFile::Read_void___unsigned_int__unsigned_int__
test al, al
je 0x100e7027
push dword [ebp - 0xc4]
mov edx, ebx
lea ecx, [ebp - 0x144]
call fcn.100e7130
mov esi, dword [ebp - 0xc0]
lea ecx, [ebp - 0x34]
add esp, 4
push ecx
push 0
push 0
push eax
lea ecx, [ebp - 0x14]
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 0x100e7027
push esi
call fcn.1006e70d
add esp, 4
mov dword [ebp - 0x1c], 0
mov edi, eax
lea ecx, [ebp - 0x14]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], edi
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 0x100e6dec
push ebx
call fcn.1006e708
push edi
call fcn.1006e708
add esp, 8
jmp 0x100e7030
mov eax, 0xcccccccd
mov dword [ebp - 0x1c], 0
mul esi
xor edi, edi
mov eax, edx
shr eax, 4
mov dword [ebp - 0x28], eax
test eax, eax
jle 0x100e6ec7
mov esi, dword [ebp - 0x24]
add esi, 0xc
cmp dword [esi + 4], 0
je 0x100e6ec7
push 0x104
lea eax, [ebp - 0x288]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push dword [esi]
mov edx, ebx
lea ecx, [ebp - 0x144]
call fcn.100e7130
add esp, 0x10
lea ecx, [ebp - 0x34]
push ecx
push 0
push 0
push eax
lea ecx, [ebp - 0x14]
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 0x100e6ec7
mov eax, dword [ebp - 0x10]
cmp eax, 0xffffffff
je 0x100e6ec7
push 0
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push ecx
push 0x103
lea ecx, [ebp - 0x288]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100e6ec7
mov eax, dword [ebp - 0x20]
test eax, eax
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x4c]
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_char_const___int__unsigned_int_
add esp, 0x10
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x4c]
push eax
mov byte [ebp - 4], 1
call fcn.100313d0
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0
call fcn.1001a5a0
inc edi
add esi, 0x14
cmp edi, dword [ebp - 0x28]
jl 0x100e6e12
push dword [ebp - 0x64]
mov edx, ebx
lea ecx, [ebp - 0x144]
call fcn.100e7130
mov edi, dword [ebp - 0x60]
lea ecx, [ebp - 0x34]
add esp, 4
push ecx
push 0
push 0
push eax
lea ecx, [ebp - 0x14]
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 0x100e7027
push dword [ebp - 0x24]
call fcn.1006e708
push edi
call fcn.1006e70d
add esp, 8
mov dword [ebp - 0x1c], 0
mov esi, eax
lea ecx, [ebp - 0x14]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x28], esi
push eax
push edi
push esi
call sym.WMCommon.dll_public_virtual:_bool___thiscall_WM::GMFile::Read_void___unsigned_int__unsigned_int__
test al, al
jne 0x100e6f39
push ebx
call fcn.1006e708
push esi
call fcn.1006e708
add esp, 8
jmp 0x100e7030
shr edi, 5
mov dword [ebp - 0x20], edi
xor edi, edi
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], 0
test eax, eax
je 0x100e7012
mov ebx, dword [esi + 4]
test ebx, ebx
je 0x100e7003
push 0x104
lea eax, [ebp - 0x38c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push ebx
mov ebx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x144]
mov edx, ebx
call fcn.100e7130
add esp, 0x10
lea ecx, [ebp - 0x34]
push ecx
push 0
push 0
push eax
lea ecx, [ebp - 0x14]
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 0x100e7012
mov eax, dword [ebp - 0x10]
cmp eax, 0xffffffff
je 0x100e7012
push 0
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push ecx
push 0x103
lea ecx, [ebp - 0x38c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100e7012
mov eax, dword [ebp - 0x24]
test eax, eax
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x38c]
push eax
lea eax, [ebp - 0x4c]
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_char_const___int__unsigned_int_
add esp, 0x10
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x4c]
push eax
mov byte [ebp - 4], 2
call fcn.100313d0
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0
call fcn.1001a5a0
mov eax, dword [ebp - 0x20]
jmp 0x100e7006
mov ebx, dword [ebp - 0x2c]
inc edi
add esi, 0x20
cmp edi, eax
jl 0x100e6f53
push ebx
call fcn.1006e708
push dword [ebp - 0x28]
call fcn.1006e708
add esp, 8
mov bl, 1
jmp 0x100e7032
push ebx
call fcn.1006e708
add esp, 4
xor bl, bl
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], vtable.WM::GMFile.0
cmp eax, 0xffffffff
je 0x100e7048
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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