Function at 0x100936e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1024b7bf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push esi
mov dword [ebp - 0x20], vtable.WM::GMFile.0
mov dword [ebp - 0x1c], 0xffffffff
push 0x80
push 3
push 1
push 0x120089
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
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 0x100939eb
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], 0
mov dword [ebp - 0x14], 0
cmp eax, 0xffffffff
je 0x100939ee
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [ebp + 8]
push 0
push ecx
push 4
lea ecx, [ebp - 0x14]
push ecx
push eax
call esi
test eax, eax
je 0x100939eb
mov eax, dword [ebp + 8]
test eax, eax
je 0x100939eb
cmp eax, 4
jne 0x100939eb
lea eax, [ebp - 0x14]
mov eax, dword [eax]
cmp eax, dword [str.GMUT]
jne 0x100939eb
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 0xd], 0
cmp eax, 0xffffffff
je 0x100939ee
push 0
lea ecx, [ebp + 8]
mov dword [ebp + 8], 0
push ecx
push 1
lea ecx, [ebp - 0xd]
push ecx
push eax
call esi
test eax, eax
je 0x100939eb
mov eax, dword [ebp + 8]
test eax, eax
je 0x100939eb
cmp eax, 1
jne 0x100939eb
cmp byte [ebp - 0xd], 0
je 0x100939eb
mov dword [ebp - 0x3c], vtable.WM::GMBuffer_unsigned_char_.0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], al
lea edx, [ebp - 0x18]
push ecx
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x20]
call fcn.10096b50
add esp, 8
test al, al
je 0x100939dc
xor esi, esi
cmp dword [ebp - 0x30], esi
jbe 0x10093873
push edi
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x34]
mov ebx, dword [ecx + esi]
add esi, 4
mov eax, ebx
shr eax, 1
push eax
lea eax, [ecx + esi]
push eax
lea ecx, [ebp - 0x64]
call fcn.1001a330
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x64]
mov eax, dword [edi + 4]
push ecx
cmp dword [edi + 8], eax
je 0x10093857
mov ecx, eax
call fcn.1001a380
add dword [edi + 4], 0x18
jmp 0x1009385f
push eax
mov ecx, edi
call fcn.1001d450
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
add esi, ebx
call fcn.1001a5a0
cmp esi, dword [ebp - 0x30]
jb 0x10093820
pop edi
push ecx
push dword [ebp + 0x10]
lea edx, [ebp + 0xc]
lea ecx, [ebp - 0x20]
call fcn.10096b50
add esp, 8
test al, al
je 0x100939dc
cmp byte [ebp - 0xd], 2
jae 0x100938a5
lea ecx, [ebp - 0x3c]
mov bl, 1
call sym.WMCommon.dll_public:_void___thiscall_WM::GMSerial::destructor_void_
mov eax, dword [ebp - 0x1c]
jmp 0x100939f0
mov dword [ebp + 0xc], 0
mov dword [ebp - 0x5c], vtable.WM::GMBuffer_unsigned_char_.0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
push ecx
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp + 0xc]
lea ecx, [ebp - 0x20]
call fcn.10096b50
add esp, 8
test al, al
je 0x100939c5
cmp dword [ebp + 0xc], 0
jbe 0x1009390b
mov eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x2c]
push dword [ebp + 0x18]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0
call fcn.10029120
push ecx
push dword [ebp + 0x1c]
lea edx, [ebp + 0xc]
lea ecx, [ebp - 0x20]
call fcn.10096b50
add esp, 8
test al, al
je 0x100939c5
mov dword [ebp + 0xc], 0
mov dword [ebp - 0x4c], vtable.WM::GMBuffer_unsigned_char_.0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
push ecx
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 4
push eax
lea edx, [ebp + 0xc]
lea ecx, [ebp - 0x20]
call fcn.10096b50
add esp, 8
test al, al
jne 0x10093982
lea ecx, [ebp - 0x4c]
xor bl, bl
call sym.WMCommon.dll_public:_void___thiscall_WM::GMSerial::destructor_void_
lea ecx, [ebp - 0x5c]
call sym.WMCommon.dll_public:_void___thiscall_WM::GMSerial::destructor_void_
lea ecx, [ebp - 0x3c]
call sym.WMCommon.dll_public:_void___thiscall_WM::GMSerial::destructor_void_
mov eax, dword [ebp - 0x1c]
jmp 0x100939f0
cmp dword [ebp + 0xc], 0
jbe 0x100939a6
mov eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x2c]
push dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0
call fcn.10028e40
lea ecx, [ebp - 0x4c]
mov bl, 1
call sym.WMCommon.dll_public:_void___thiscall_WM::GMSerial::destructor_void_
lea ecx, [ebp - 0x5c]
call sym.WMCommon.dll_public:_void___thiscall_WM::GMSerial::destructor_void_
lea ecx, [ebp - 0x3c]
call sym.WMCommon.dll_public:_void___thiscall_WM::GMSerial::destructor_void_
mov eax, dword [ebp - 0x1c]
jmp 0x100939f0
lea ecx, [ebp - 0x5c]
xor bl, bl
call sym.WMCommon.dll_public:_void___thiscall_WM::GMSerial::destructor_void_
lea ecx, [ebp - 0x3c]
call sym.WMCommon.dll_public:_void___thiscall_WM::GMSerial::destructor_void_
mov eax, dword [ebp - 0x1c]
jmp 0x100939f0
lea ecx, [ebp - 0x3c]
xor bl, bl
call sym.WMCommon.dll_public:_void___thiscall_WM::GMSerial::destructor_void_
mov eax, dword [ebp - 0x1c]
jmp 0x100939f0
mov eax, dword [ebp - 0x1c]
xor bl, bl
mov dword [ebp - 0x20], vtable.WM::GMFile.0
cmp eax, 0xffffffff
je 0x10093a03
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x18