Function at 0x10081e40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x5c]
mov eax, dword fs:[0]
sub esp, 0x5c
push 0xffffffffffffffff
push 0x1024a619
push eax
mov dword fs:[0], esp
sub esp, 0x58
push edi
mov edi, dword [ebp + 0x64]
cmp dword [edi + 0x88], 0
je 0x10081e7f
xor al, al
pop edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
lea esp, [ebp + 0x5c]
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0x68]
push ebx
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__
add esp, 4
test al, al
jne 0x10081ea1
pop ebx
pop edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
lea esp, [ebp + 0x5c]
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x54], 0
push esi
mov dword [ebp - 0x50], 7
mov word [ebp - 0x64], ax
mov dword [ebp - 4], eax
cmp byte [ebp + 0x6c], al
je 0x10082097
push ebx
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
test al, al
jne 0x10081ed6
xor bl, bl
jmp 0x1008240a
mov dword [ebp + 0x54], vtable.WM::GMFile.0
mov dword [ebp + 0x58], 0xffffffff
push 0x2000000
push 3
push 3
push accept
push ebx
lea ecx, [ebp + 0x54]
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 0x10081f12
lea ecx, [ebp + 0x54]
xor bl, bl
call sym.WMCommon.dll_public_virtual:_void___thiscall_WM::GMFile::destructor_void_
jmp 0x1008240a
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp + 0x40]
push eax
lea ecx, [ebp + 0x54]
call sym.WMCommon.dll_public:_bool___thiscall_WM::GMFile::GetTime_struct__FILETIME___struct__FILETIME___struct__FILETIME__
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x10081f30
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x90
mov dword [ebp + 0x48], eax
call fcn.1006e6a7
add esp, 4
mov dword [ebp + 0x64], eax
mov ecx, eax
push 0
push edi
call sym.WMCommon.dll_public:_void___thiscall_WM::GMTocNode::constructor_class_WM::GMTocNode___enum_WM::GMNodeType_
mov esi, eax
lea ecx, [ebp + 0x4c]
push esi
mov dword [ebp + 0x64], esi
call fcn.10020ba0
push ecx
push 0x10266284
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.10020180
cmp eax, 0xffffffff
je 0x10082032
push 0xffffffffffffffff
inc eax
mov ecx, ebx
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.1001ce30
add esi, 0xc
push eax
mov ecx, esi
call fcn.1001a270
lea ecx, [ebp - 0x24]
call fcn.1001a5a0
push esi
lea eax, [ebp - 0x24]
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::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__
mov esi, dword [ebp + 0x64]
add esp, 0xc
push eax
lea ecx, [esi + 0x24]
call fcn.1001a270
lea ecx, [ebp - 0x24]
call fcn.1001a5a0
mov eax, dword [ebp + 0x48]
mov dword [esi + 0x54], eax
mov eax, dword [ebp + 0x40]
mov dword [esi + 0x3c], eax
mov eax, dword [ebp + 0x44]
mov dword [esi + 0x40], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x44], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x48], eax
mov eax, dword [ebp - 0x34]
mov dword [esi + 0x4c], eax
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x50], eax
mov edx, dword [edi + 4]
cmp dword [edi + 8], edx
je 0x10082013
mov eax, dword [ebp + 0x4c]
mov dword [edx], eax
mov ecx, dword [ebp + 0x50]
mov dword [edx + 4], ecx
test ecx, ecx
je 0x1008200d
add ecx, 4
mov eax, 1
lock xadd dword [ecx], eax
add dword [edi + 4], 8
jmp 0x1008201f
lea eax, [ebp + 0x4c]
mov ecx, edi
push eax
push edx
call fcn.10021400
push dword [ebp + 0x70]
push 0
push ebx
push esi
call sym.WMCommon.dll_public:_static_bool___cdecl_WM::GMPackTool::GenerateToc_class_WM::GMTocNode___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___bool__enum_WM::GMCompressCodeType_
add esp, 0x10
mov bl, al
jmp 0x1008203d
push ebx
lea ecx, [esi + 0xc]
call sym.WMCommon.dll_public:_class_WM::GMIniFile____thiscall_WM::GMIniFile::operator_class_WM::GMIniFile_const__
xor bl, bl
mov edi, dword [ebp + 0x50]
test edi, edi
je 0x1008208a
or esi, 0xffffffff
lea ecx, [edi + 4]
mov eax, esi
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x1008208a
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea eax, [edi + 8]
lock xadd dword [eax], esi
cmp esi, 1
jne 0x1008208a
mov edx, dword [edi]
mov ecx, edi
mov eax, dword [edx + 8]
cmp eax, fcn.1001eaf0
jne 0x10082472
push esi
call dword [edx]
lea ecx, [ebp + 0x54]
call sym.WMCommon.dll_public_virtual:_void___thiscall_WM::GMFile::destructor_void_
jmp 0x1008240a
lea ecx, [ebp + 0x54]
call sym.WMCommon.dll_public_virtual:_void___thiscall_WM::GMFile::destructor_void_
jmp 0x1008240a
push 4
call fcn.1006e6a7
mov esi, eax
add esp, 4
mov dword [ebp + 0x64], esi
mov dword [ebp + 0x48], esi
mov dword [esi], 0xffffffff
xorps xmm0, xmm0
mov dword [ebp + 0x38], 0
xor eax, eax
movlpd qword [ebp], xmm0
movlpd qword [ebp + 0x20], xmm0
mov dword [ebp + 0x3c], 7
mov word [ebp + 0x28], ax
push 0x1026628c
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 4
call fcn.1001a2f0
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x4c]
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::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
lea ecx, [ebp]
mov byte [ebp - 4], 6
push ecx
push eax
mov ecx, esi
call fcn.100320b0
lea ecx, [ebp - 0x4c]
mov bl, al
call fcn.1001a5a0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 4
call fcn.1001a5a0
test bl, bl
je 0x1008246e
mov ecx, dword [ebp + 0x20]
and ecx, 0x10
mov eax, ecx
or eax, 0
je 0x10082135
mov al, 1
jmp 0x10082137
xor al, al
mov edx, dword [ebp + 0x3c]
mov ebx, dword [ebp + 0x38]
mov esi, dword [ebp + 0x28]
test al, al
je 0x10082179
test ebx, ebx
je 0x10082179
cmp edx, 8
lea eax, [ebp + 0x28]
cmovae eax, esi
cmp word [eax], 0x2e
jne 0x10082179
cmp ebx, 1
je 0x100823ca
cmp edx, 8
lea eax, [ebp + 0x28]
cmovae eax, esi
cmp word [eax + 2], 0x2e
jne 0x10082179
cmp ebx, 2
je 0x100823ca
or ecx, 0
je 0x10082182
mov al, 1
jmp 0x10082184
xor al, al
push 0x90
test al, al
je 0x100822a9
call fcn.1006e6a7
add esp, 4
mov dword [ebp + 0x44], eax
mov ecx, eax
push 0
push edi
call sym.WMCommon.dll_public:_void___thiscall_WM::GMTocNode::constructor_class_WM::GMTocNode___enum_WM::GMNodeType_
mov esi, eax
lea ecx, [ebp + 0x4c]
push esi
call fcn.10020ba0
lea edx, [esi + 0xc]
mov byte [ebp - 4], 7
lea eax, [ebp + 0x28]
cmp edx, eax
je 0x100821d3
cmp dword [ebp + 0x3c], 8
mov ecx, edx
push ebx
cmovae eax, dword [ebp + 0x28]
push eax
call fcn.1001a600
lea edx, [esi + 0xc]
mov ebx, dword [ebp + 0x68]
lea eax, [ebp - 0x4c]
push edx
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::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
lea ecx, [esi + 0x24]
push eax
call fcn.1001a270
lea ecx, [ebp - 0x4c]
call fcn.1001a5a0
mov eax, dword [ebp + 0x20]
mov dword [esi + 0x54], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x3c], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x40], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x44], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x48], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x4c], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x50], eax
lea eax, [ebp + 0x28]
push eax
lea eax, [ebp - 0x24]
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::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__
push dword [ebp + 0x70]
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 8
push 0
push eax
push esi
call sym.WMCommon.dll_public:_static_bool___cdecl_WM::GMPackTool::GenerateToc_class_WM::GMTocNode___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___bool__enum_WM::GMCompressCodeType_
add esp, 0x1c
test al, al
je 0x10082426
mov ecx, dword [edi + 4]
cmp dword [edi + 8], ecx
je 0x10082289
mov eax, dword [ebp + 0x4c]
mov dword [ecx], eax
mov eax, dword [ebp + 0x50]
mov dword [ecx + 4], eax
mov ecx, dword [ebp + 0x50]
test ecx, ecx
je 0x10082271
add ecx, 4
mov eax, 1
lock xadd dword [ecx], eax
add dword [edi + 4], 8
lea ecx, [ebp - 0x24]
call fcn.1001a5a0
mov byte [ebp - 4], 4
mov esi, dword [ebp + 0x50]
jmp 0x1008238a
lea eax, [ebp + 0x4c]
push eax
push ecx
mov ecx, edi
call fcn.10021400
lea ecx, [ebp - 0x24]
call fcn.1001a5a0
mov byte [ebp - 4], 4
mov esi, dword [ebp + 0x50]
jmp 0x1008238a
call fcn.1006e6a7
add esp, 4
mov dword [ebp + 0x44], eax
mov ecx, eax
push 1
push edi
call sym.WMCommon.dll_public:_void___thiscall_WM::GMTocNode::constructor_class_WM::GMTocNode___enum_WM::GMNodeType_
mov esi, eax
lea ecx, [ebp + 0x54]
push esi
call fcn.10020ba0
lea edx, [esi + 0xc]
mov byte [ebp - 4], 9
lea eax, [ebp + 0x28]
cmp edx, eax
je 0x100822eb
cmp dword [ebp + 0x3c], 8
mov ecx, edx
push ebx
cmovae eax, dword [ebp + 0x28]
push eax
call fcn.1001a600
lea edx, [esi + 0xc]
push edx
push dword [ebp + 0x68]
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::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
lea ecx, [esi + 0x24]
push eax
call fcn.1001a270
lea ecx, [ebp - 0x4c]
call fcn.1001a5a0
mov eax, dword [ebp + 0x20]
mov dword [esi + 0x54], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x3c], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x40], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x44], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x48], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x4c], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x50], eax
mov eax, dword [ebp]
mov dword [esi + 0x58], eax
mov eax, dword [ebp + 4]
mov dword [esi + 0x5c], eax
mov eax, dword [ebp + 0x70]
mov dword [esi + 0x60], eax
mov ecx, dword [edi + 4]
cmp dword [edi + 8], ecx
je 0x10082377
mov eax, dword [ebp + 0x54]
mov dword [ecx], eax
mov eax, dword [ebp + 0x58]
mov dword [ecx + 4], eax
mov esi, dword [ebp + 0x58]
test esi, esi
je 0x10082371
lea ecx, [esi + 4]
mov eax, 1
lock xadd dword [ecx], eax
mov esi, dword [ebp + 0x58]
add dword [edi + 4], 8
jmp 0x10082386
lea eax, [ebp + 0x54]
push eax
push ecx
mov ecx, edi
call fcn.10021400
mov esi, dword [ebp + 0x58]
mov byte [ebp - 4], 4
test esi, esi
je 0x100823ca
or ebx, 0xffffffff
lea eax, [esi + 4]
mov ecx, ebx
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x100823ca
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
mov edx, ebx
lock xadd dword [eax], edx
cmp edx, 1
jne 0x100823ca
mov edx, dword [esi]
mov ecx, esi
mov eax, dword [edx + 8]
cmp eax, fcn.1001eaf0
jne 0x10082479
push 1
call dword [edx]
mov ebx, dword [ebp + 0x64]
lea eax, [ebp]
push eax
mov ecx, ebx
call fcn.10032120
test al, al
jne 0x10082124
mov eax, dword [ebx]
cmp eax, 0xffffffff
je 0x100823f8
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x100823f8
mov dword [ebx], 0xffffffff
mov bl, 1
lea ecx, [ebp + 0x28]
call fcn.1001a5a0
lea ecx, [ebp + 0x48]
call sym.WMCommon.dll_public:_void___thiscall_WM::GMFindFile::destructor_void_
lea ecx, [ebp - 0x64]
call fcn.1001a5a0
mov ecx, dword [ebp - 0xc]
mov al, bl
pop esi
pop ebx
pop edi
mov dword fs:[0], ecx
lea esp, [ebp + 0x5c]
pop ebp
ret
lea ecx, [ebp - 0x24]
call fcn.1001a5a0
mov edi, dword [ebp + 0x50]
test edi, edi
je 0x1008246e
or esi, 0xffffffff
lea eax, [edi + 4]
mov ecx, esi
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x1008246e
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea eax, [edi + 8]
lock xadd dword [eax], esi
cmp esi, 1
jne 0x1008246e
mov edx, dword [edi]
mov ecx, edi
mov eax, dword [edx + 8]
cmp eax, fcn.1001eaf0
jne 0x10082480
push esi
call dword [edx]
xor bl, bl
jmp 0x100823fa
xor bl, bl
jmp 0x100823fa
call eax
jmp 0x1008208a
call eax
jmp 0x100823ca
call eax
jmp 0x1008246e