Function at 0x10091170
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x68
push 0xffffffffffffffff
push 0x1024b5b9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push ebx
push esi
push edi
mov dword [ebp + 0x58], vtable.WM::GMFile.0
mov dword [ebp + 0x5c], 0xffffffff
mov ebx, dword [ebp + 0x70]
lea ecx, [ebp + 0x58]
push 0x80
push 3
push 1
push 0x120089
push ebx
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 0x10091512
mov eax, dword [ebp + 0x5c]
mov dword [ebp + 0x60], 0
mov dword [ebp + 0x44], 0
cmp eax, 0xffffffff
je 0x10091515
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [ebp + 0x60]
push 0
push ecx
push 4
lea ecx, [ebp + 0x44]
push ecx
push eax
call esi
test eax, eax
je 0x10091512
mov eax, dword [ebp + 0x60]
test eax, eax
je 0x10091512
cmp eax, 4
jne 0x10091512
lea eax, [ebp + 0x44]
mov eax, dword [eax]
cmp eax, dword [str.GMUT]
jne 0x10091512
mov eax, dword [ebp + 0x5c]
mov byte [ebp + 0x67], 0
cmp eax, 0xffffffff
je 0x10091515
push 0
lea ecx, [ebp + 0x60]
mov dword [ebp + 0x60], 0
push ecx
push 1
lea ecx, [ebp + 0x67]
push ecx
push eax
call esi
test eax, eax
je 0x10091512
mov eax, dword [ebp + 0x60]
test eax, eax
je 0x10091512
cmp eax, 1
jne 0x10091512
cmp byte [ebp + 0x67], 0
je 0x10091512
mov dword [ebp + 0x34], vtable.WM::GMBuffer_unsigned_char_.0
mov dword [ebp + 0x38], 0
mov dword [ebp + 0x3c], 0
mov dword [ebp + 0x40], 0
mov byte [ebp - 4], al
lea edx, [ebp + 0x48]
push ecx
lea eax, [ebp + 0x34]
push eax
lea ecx, [ebp + 0x58]
call fcn.10096b50
add esp, 8
test al, al
jne 0x100912ba
lea ecx, [ebp + 0x34]
xor bl, bl
call sym.WMCommon.dll_public:_void___thiscall_WM::GMSerial::destructor_void_
mov eax, dword [ebp + 0x5c]
jmp 0x10091517
xor esi, esi
mov dword [ebp + 0x4c], 0
mov dword [ebp + 0x50], esi
mov dword [ebp + 0x54], esi
xor edi, edi
mov byte [ebp - 4], 2
cmp dword [ebp + 0x40], edi
jbe 0x1009132c
mov ecx, dword [ebp + 0x3c]
mov ebx, dword [ecx + edi]
add edi, 4
mov eax, ebx
shr eax, 1
push eax
lea eax, [ecx + edi]
push eax
lea ecx, [ebp + 0x1c]
call fcn.1001a330
mov byte [ebp - 4], 3
lea eax, [ebp + 0x1c]
push eax
cmp dword [ebp + 0x54], esi
je 0x1009130a
mov ecx, esi
call fcn.1001a380
add esi, 0x18
mov dword [ebp + 0x50], esi
jmp 0x10091316
push esi
lea ecx, [ebp + 0x4c]
call fcn.1001d450
mov esi, dword [ebp + 0x50]
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 2
add edi, ebx
call fcn.1001a5a0
cmp edi, dword [ebp + 0x40]
jb 0x100912d4
mov ebx, dword [ebp + 0x70]
mov dword [ebp + 0x48], 0
mov dword [ebp + 0x24], vtable.WM::GMBuffer_unsigned_char_.0
mov dword [ebp + 0x28], 0
mov dword [ebp + 0x2c], 0
mov dword [ebp + 0x30], 0
push ecx
lea eax, [ebp + 0x24]
mov byte [ebp - 4], 4
push eax
lea edx, [ebp + 0x48]
lea ecx, [ebp + 0x58]
call fcn.10096b50
add esp, 8
test al, al
jne 0x10091371
xor bl, bl
jmp 0x100914f5
lea ecx, [ebp + 0x58]
call sym.WMCommon.dll_public_virtual:_bool___thiscall_WM::GMFile::Close_void_
lea eax, [ebp]
mov byte [ebp + 0x66], 0
push ebx
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::GMFileName::GetDirectory_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
lea eax, [ebp]
mov byte [ebp - 4], 5
push 0x20
push eax
call sym.WMCommon.dll_public:_static_void___cdecl_WM::GMFileName::NormalizePath_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____unsigned_int_
sub esi, dword [ebp + 0x4c]
mov eax, 0x2aaaaaab
imul esi
add esp, 0x10
xor ebx, ebx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1009148d
sub eax, ebx
lea ecx, [ebp + 0x4c]
dec eax
push eax
call fcn.10027950
mov esi, eax
push esi
call sym.WMCommon.dll_public:_static_bool___cdecl_WM::GMFileName::IsCompletedPath_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 4
test al, al
jne 0x100913f1
push esi
lea eax, [ebp]
push eax
lea eax, [ebp - 0x24]
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::GMFileName::JoinFileName_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 0xc
mov ecx, esi
push eax
call fcn.1001a270
lea ecx, [ebp - 0x24]
call fcn.1001a5a0
push esi
call sym.WMCommon.dll_public:_static_bool___cdecl_WM::GMFilePathUtils::IsExists_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
mov edi, dword [ebp + 0x50]
add esp, 4
test al, al
je 0x1009146d
push 0x20
push esi
call sym.WMCommon.dll_public:_static_void___cdecl_WM::GMFileName::NormalizePath_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____unsigned_int_
lea eax, [ebp]
push esi
push eax
call sym.WMCommon.dll_public:_static_int___cdecl_WM::GMStringUtils::CompareNoCase_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 0x10
test eax, eax
je 0x100914c3
push esi
call sym.WMCommon.dll_public:_static_bool___cdecl_WM::GMFilePathUtils::IsDirectory_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 4
push esi
test al, al
je 0x10091433
call sym.WMCommon.dll_public:_static_unsigned_long_long_unsigned___int64____cdecl_WM::GMFilePathUtils::RemoveAll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
jmp 0x10091438
call sym.WMCommon.dll_public:_static_bool___cdecl_WM::GMFilePathUtils::RemoveFile_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 4
cmp dword [ebp + 0x74], 0
je 0x1009146d
push dword [ebp + 0x78]
mov ecx, edi
mov eax, 0x2aaaaaab
sub ecx, dword [ebp + 0x4c]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push ebx
sub esp, 0x18
mov ecx, esp
push esi
call fcn.1001a380
call dword [ebp + 0x74]
add esp, 0x24
sub edi, dword [ebp + 0x4c]
mov eax, 0x2aaaaaab
imul edi
inc ebx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x100913b5
mov bl, byte [ebp + 0x66]
cmp dword [ebp + 0x48], 0
jbe 0x100914d0
push 0
lea ecx, [ebp - 0x88]
call sym.WMCommon.dll_public:_void___thiscall_WM::GMRegInstall::constructor_enum_WM::GMRegInstallType_
lea eax, [ebp + 0x24]
mov byte [ebp - 4], 6
push eax
call sym.WMCommon.dll_public:_static_bool___cdecl_WM::GMRegInstall::Uninstall_class_WM::GMBuffer_unsigned_char__const__
add esp, 4
lea ecx, [ebp - 0x88]
test al, al
jne 0x100914c7
call sym.WMCommon.dll_public:_void___thiscall_WM::GMRegInstall::destructor_void_
xor bl, bl
jmp 0x100914ed
mov bl, 1
jmp 0x1009148d
mov byte [ebp - 4], 5
call sym.WMCommon.dll_public:_void___thiscall_WM::GMRegInstall::destructor_void_
push dword [ebp + 0x70]
call sym.WMCommon.dll_public:_static_bool___cdecl_WM::GMFilePathUtils::RemoveFile_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 4
test bl, bl
je 0x100914eb
lea eax, [ebp]
push eax
call sym.WMCommon.dll_public:_static_unsigned_long_long_unsigned___int64____cdecl_WM::GMFilePathUtils::RemoveAll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 4
mov bl, 1
lea ecx, [ebp]
call fcn.1001a5a0
lea ecx, [ebp + 0x24]
call sym.WMCommon.dll_public:_void___thiscall_WM::GMSerial::destructor_void_
lea ecx, [ebp + 0x4c]
call fcn.1001d100
lea ecx, [ebp + 0x34]
call sym.WMCommon.dll_public:_void___thiscall_WM::GMSerial::destructor_void_
mov eax, dword [ebp + 0x5c]
jmp 0x10091517
mov eax, dword [ebp + 0x5c]
xor bl, bl
mov dword [ebp + 0x58], vtable.WM::GMFile.0
cmp eax, 0xffffffff
je 0x1009152a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
lea esp, [ebp + 0x68]
pop ebp
ret