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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1024aeae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
push esi
mov dword [ebp - 0x10], edi
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 0x1008b3e4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov dword [ebp - 4], eax
cmp byte [ebp + 0x10], al
je 0x1008b5d5
mov dword [ebp - 0x28], vtable.WM::GMFile.0
mov dword [ebp - 0x24], 0xffffffff
push 0x2000000
push 3
push 3
push accept
push esi
lea ecx, [ebp - 0x28]
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 0x1008b442
lea ecx, [ebp - 0x28]
call sym.WMCommon.dll_public_virtual:_void___thiscall_WM::GMFile::destructor_void_
mov byte [ebp + 0x13], 0
jmp 0x1008b691
mov eax, dword [ebp - 0x24]
cmp eax, 0xffffffff
je 0x1008b45d
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x30]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1008b467
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push ecx
push 0x10266284
mov ecx, esi
mov dword [ebp - 0x14], eax
call fcn.10020180
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x1008b5c9
push 0x238
call fcn.1006e6a7
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, eax
call sym.WMCommon.dll_public:_void___thiscall_WM::GMFileItem::constructor_void_
push eax
lea ecx, [ebp - 0x20]
call fcn.10023100
mov byte [ebp - 4], 2
mov ecx, esi
mov eax, dword [ebp - 0x20]
push 0xffffffffffffffff
push dword [ebp + 8]
mov dword [eax], 1
lea eax, [ebp - 0x70]
push eax
call fcn.1001ce30
push eax
lea ecx, [ebp - 0x58]
call fcn.1001a270
lea ecx, [ebp - 0x70]
call fcn.1001a5a0
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x58]
mov edx, dword [ebp - 0x20]
cmovae ecx, dword [ebp - 0x58]
add edx, 4
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x1008b4f0
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x21c], ecx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
mov dword [eax + 0x224], edx
mov dword [eax + 0x220], ecx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
mov dword [eax + 0x22c], edx
mov dword [eax + 0x228], ecx
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
mov dword [eax + 0x234], edx
lea edx, [edi + 0x28]
mov dword [eax + 0x230], ecx
mov edi, dword [edx + 4]
cmp dword [edx + 8], edi
je 0x1008b578
mov eax, dword [ebp - 0x20]
mov dword [edi], eax
mov ecx, dword [ebp - 0x1c]
mov dword [edi + 4], ecx
test ecx, ecx
je 0x1008b572
add ecx, 4
mov eax, 1
lock xadd dword [ecx], eax
add dword [edx + 4], 8
jmp 0x1008b584
lea eax, [ebp - 0x20]
mov ecx, edx
push eax
push edi
call fcn.100231b0
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x1008b5c6
lea ecx, [edi + 4]
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x1008b5c6
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea eax, [edi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x1008b5c6
mov edx, dword [edi]
mov ecx, edi
mov eax, dword [edx + 8]
cmp eax, fcn.1001eaf0
jne 0x1008b6ae
push 1
call dword [edx]
mov edi, dword [ebp - 0x10]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call sym.WMCommon.dll_public_virtual:_void___thiscall_WM::GMFile::destructor_void_
push 1
push 0x102665ac
lea ecx, [ebp - 0x58]
call fcn.1001a7c0
lea eax, [ebp - 0x58]
mov ecx, edi
push eax
push esi
call sym.WMCommon.dll_private:_void___thiscall_WM::GMCopyZip::Update_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 edx, dword [edi + 0x2c]
mov eax, edx
mov ecx, dword [edi + 0x28]
sub eax, ecx
sar eax, 3
push 0x1008b7e0
push eax
call fcn.10023310
add esp, 8
lea ecx, [ebp - 0x70]
push esi
call fcn.1001a380
cmp byte [ebp + 0x10], 0
mov byte [ebp - 4], 3
je 0x1008b655
push ecx
push 0x10266284
mov ecx, esi
call fcn.10020180
cmp eax, 0xffffffff
je 0x1008b655
push eax
push 0
lea eax, [ebp - 0x88]
mov ecx, esi
push eax
call fcn.1001ce30
push eax
lea ecx, [ebp - 0x70]
call fcn.1001a270
lea ecx, [ebp - 0x88]
call fcn.1001a5a0
sub esp, 0x18
xor eax, eax
mov ecx, esp
push eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
push 0x10255fec
mov word [ecx], ax
call fcn.1001a600
lea eax, [ebp - 0x70]
mov ecx, edi
push eax
push dword [ebp + 0xc]
call sym.WMCommon.dll_private:_bool___thiscall_WM::GMCopyZip::SaveToFile_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___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___
lea ecx, [ebp - 0x70]
mov byte [ebp + 0x13], al
call fcn.1001a5a0
lea ecx, [ebp - 0x58]
call fcn.1001a5a0
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp + 0x13]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
call eax
jmp 0x1008b5c6