Function at 0x100aad90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1024c928
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
mov dword [ebp - 0x18], vtable.WM::GMFile.0
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x100aade8
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x100aaddd
push ecx
call fcn.1006e708
mov eax, dword [esi + 0x1c]
add esp, 4
push 0xc
push eax
call fcn.1006e6d7
add esp, 8
push 0
push 3
push 0
push accept
lea eax, [esi + 4]
mov dword [esi + 0x1c], 0
push eax
lea ecx, [ebp - 0x18]
mov byte [esi + 0x20], 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 0x100aaf3b
mov ecx, esi
call sym.WMCommon.dll_private:_void___thiscall_WM::GMIconFile::CreateIconDir_void_
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x100aaf0b
mov eax, dword [ebp - 0x14]
cmp eax, 0xffffffff
je 0x100aaf0b
push 0
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push edx
push 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100aaf0b
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x100aaf0b
cmp eax, 2
jne 0x100aaf0b
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esi + 0x1c]
lea ecx, [ebp - 0x18]
push 2
add eax, 2
push eax
call sym.WMCommon.dll_public_virtual:_bool___thiscall_WM::GMFile::Read_void___unsigned_int__unsigned_int__
test al, al
je 0x100aaf0b
cmp dword [ebp - 0x10], 2
jne 0x100aaf0b
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esi + 0x1c]
lea ecx, [ebp - 0x18]
push 2
add eax, 4
push eax
call sym.WMCommon.dll_public_virtual:_bool___thiscall_WM::GMFile::Read_void___unsigned_int__unsigned_int__
test al, al
je 0x100aaf0b
cmp dword [ebp - 0x10], 2
jne 0x100aaf0b
mov eax, dword [esi + 0x1c]
xor ecx, ecx
mov edx, 0x10
movzx eax, word [eax + 4]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1006e70d
mov ecx, dword [esi + 0x1c]
add esp, 4
mov dword [ecx + 8], eax
lea eax, [ebp - 0x10]
mov ecx, dword [esi + 0x1c]
push eax
movzx eax, word [ecx + 4]
shl eax, 4
push eax
push dword [ecx + 8]
lea ecx, [ebp - 0x18]
call sym.WMCommon.dll_public_virtual:_bool___thiscall_WM::GMFile::Read_void___unsigned_int__unsigned_int__
test al, al
je 0x100aaf02
mov eax, dword [esi + 0x1c]
movzx eax, word [eax + 4]
shl eax, 4
cmp dword [ebp - 0x10], eax
jne 0x100aaf02
mov byte [esi + 0x20], 1
jmp 0x100aaf3b
mov ecx, esi
call sym.WMCommon.dll_private:_void___thiscall_WM::GMIconFile::ReleaseIconDir_void_
jmp 0x100aaf3b
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x100aaf30
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x100aaf25
push ecx
call fcn.1006e708
mov eax, dword [esi + 0x1c]
add esp, 4
push 0xc
push eax
call fcn.1006e6d7
add esp, 8
mov dword [esi + 0x1c], 0
mov byte [esi + 0x20], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], vtable.WM::GMFile.0
pop esi
cmp eax, 0xffffffff
je 0x100aaf52
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4