Function at 0x10086fc0
Capabilities:
Resolve function by parsing pe exports
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1024aa70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x168
push esi
push edi
push dword [ebp + 0xc]
mov edi, ecx
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x50], edi
call fcn.1001a380
lea eax, [ebp - 0x70]
mov dword [ebp - 4], 0
push 0x10267444
push eax
call sym.WMCommon.dll_public:_static_void___cdecl_WM::GMStringUtils::TrimRight_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____wchar_t_const__
mov ecx, dword [ebp - 0x60]
add esp, 8
test ecx, ecx
je 0x10087041
mov edx, dword [ebp - 0x5c]
cmp ecx, edx
jae 0x1008702f
lea eax, [ecx + 1]
cmp edx, 8
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
mov dword [eax + ecx*2], 0x5c
jmp 0x10087041
push 0x5c
mov byte [ebp - 0x1c], 0
push dword [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x70]
call fcn.1001d8e0
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0xb8]
lea eax, [esi + 0xc]
push eax
call fcn.1001a380
mov byte [ebp - 4], 1
mov eax, dword [edi + 0xb0]
mov ecx, dword [edi + 0xac]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x10087074
mov eax, dword [ecx]
mov dword [edi + 0xa8], eax
mov eax, dword [edi]
lea ecx, [ebp + 0xf]
push ecx
lea ecx, [ebp - 0xb8]
mov byte [ebp + 0xf], 0
push ecx
lea ecx, [ebp - 0x70]
push ecx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp byte [ebp + 0xf], 0
jne 0x10087d1e
lea eax, [ebp - 0xb8]
push eax
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
lea eax, [ebp - 0xb8]
jne 0x10087109
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x174]
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__
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x1c], eax
add esp, 0xc
cmp ecx, eax
je 0x100870fc
call fcn.1001a5a0
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x70], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x60], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x174]
call fcn.1001a5a0
jmp 0x10087126
cmp dword [ebp - 0xa4], 8
lea ecx, [ebp - 0x70]
push dword [ebp - 0xa8]
cmovae eax, dword [ebp - 0xb8]
push eax
call fcn.1001a600
lea ecx, [esi + 0x24]
lea eax, [ebp - 0x70]
cmp ecx, eax
je 0x10087141
cmp dword [ebp - 0x5c], 8
push dword [ebp - 0x60]
cmovae eax, dword [ebp - 0x70]
push eax
call fcn.1001a600
lea eax, [ebp - 0xb8]
lea ecx, [esi + 0xc]
cmp ecx, eax
je 0x10087168
cmp dword [ebp - 0xa4], 8
push dword [ebp - 0xa8]
cmovae eax, dword [ebp - 0xb8]
push eax
call fcn.1001a600
mov ecx, dword [edi + 0xf8]
test ecx, ecx
je 0x10087178
mov eax, dword [ecx]
push esi
call dword [eax + 8]
cmp dword [esi + 0x88], 0
je 0x10087b90
mov eax, dword [edi]
mov ecx, edi
push 0
push 0
push esi
call dword [eax + 0x24]
mov ecx, dword [edi + 0xa8]
lea edx, [ebp - 0xa0]
xorps xmm0, xmm0
movlpd qword [ebp - 0xa0], xmm0
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
test al, al
mov eax, dword [edi]
jne 0x10087246
mov esi, dword [eax + 0x30]
lea ecx, [ebp - 0xe4]
push 0x10255fec
call fcn.1001a2f0
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0xe4]
push ecx
push eax
mov ecx, edi
call esi
lea ecx, [ebp - 0xe4]
mov byte [ebp + 0xb], al
mov byte [ebp - 4], 1
call fcn.1001a5a0
cmp byte [ebp + 0xb], 0
jne 0x10087d1e
mov eax, dword [edi]
mov edi, dword [eax + 0x34]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10255fec
lea ecx, [ebp - 0xfc]
mov esi, eax
call fcn.1001a2f0
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0xfc]
push esi
push eax
push 0x10000002
mov byte [ebp - 4], 3
call edi
lea ecx, [ebp - 0xfc]
call fcn.1001a5a0
mov byte [ebp + 0xb], 0
jmp 0x10087d22
push dword [esi + 0x60]
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, edi
call dword [eax + 0x18]
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x10087b7f
mov eax, dword [ecx]
call dword [eax + 0x20]
mov eax, dword [edi + 0xb0]
mov ecx, dword [edi + 0xac]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x10087b7f
xor eax, eax
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], eax
xor edx, edx
mov byte [ebp - 4], 5
mov dword [ebp - 0x58], edx
jmp 0x100872b6
mov ecx, dword [edi + 0xac]
mov ecx, dword [ecx + edx*4]
lea edx, [ebp - 0xa0]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
test al, al
je 0x10087ade
mov ecx, dword [ebp - 0x18]
cmp dword [ebp - 0x88], ecx
je 0x100872f6
mov eax, dword [ebp - 0xa0]
mov dword [ecx], eax
mov eax, dword [ebp - 0x9c]
mov dword [ecx + 4], eax
add ecx, 8
mov dword [ebp - 0x8c], ecx
jmp 0x1008730f
lea eax, [ebp - 0xa0]
push eax
push ecx
lea ecx, [ebp - 0x90]
call fcn.10020da0
mov ecx, dword [ebp - 0x8c]
mov eax, dword [edi + 0xb0]
mov edx, dword [ebp - 0x58]
sub eax, dword [edi + 0xac]
inc edx
sar eax, 2
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x58], edx
cmp edx, eax
jb 0x100872b0
mov edx, dword [esi + 0x68]
xor eax, eax
mov dword [ebp - 0x24], edx
mov edx, dword [esi + 0x6c]
mov dword [ebp - 0x20], edx
mov edx, dword [ebp - 0x90]
sub ecx, edx
sar ecx, 3
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x10087d5e
mov edi, dword [ebp - 0x90]
mov edx, dword [edx + eax*8]
mov eax, dword [edi + eax*8 + 4]
mov edi, dword [ebp - 0x50]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], eax
jb 0x100873fd
ja 0x1008737a
cmp dword [ebp - 0x24], edx
jb 0x100873fd
mov eax, dword [ebp - 0x10]
inc dword [ebp - 0x10]
cmp ecx, eax
jbe 0x10087d5e
sub dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x20]
sbb eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
cmp eax, ecx
jae 0x100873a3
mov edx, dword [ebp - 0x90]
jmp 0x10087353
mov eax, dword [esi + 0x58]
or eax, dword [esi + 0x5c]
je 0x100873fd
cmp dword [edi + 0x128], 8
lea eax, [edi + 0x114]
jb 0x100873bc
mov eax, dword [eax]
push dword [ebp - 0x10]
push str..part
push eax
lea eax, [ebp - 0x114]
push str._s_s_d
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::GMStringUtils::FormatResult_wchar_t_const__
add esp, 0x14
push 2
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x114]
mov eax, dword [edi]
push ecx
push 0x10000002
mov ecx, edi
call dword [eax + 0x34]
lea ecx, [ebp - 0x114]
jmp 0x10087b5e
lea eax, [ebp - 0x70]
push eax
call sym.WMCommon.dll_public:_static_bool___cdecl_WM::GMFilePathUtils::IsExistsFile_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 4
test al, al
je 0x1008749c
lea eax, [ebp - 0x70]
mov ecx, edi
push eax
call sym.WMCommon.dll_private:_bool___thiscall_WM::GMUnpacker::RemoveOrRenameFile_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
test al, al
jne 0x1008749c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi]
mov dword [ebp + 8], eax
mov edx, dword [ecx + 0x30]
lea ecx, [ebp - 0x70]
push ecx
push eax
mov ecx, edi
call edx
test al, al
mov eax, dword [edi]
je 0x10087465
push dword [esi + 0x74]
mov ecx, edi
push dword [esi + 0x70]
push esi
call dword [eax + 0x24]
lea ecx, [ebp - 0x90]
mov byte [ebp + 0xb], 1
call fcn.10020230
lea ecx, [ebp - 0x38]
call fcn.1001eb30
jmp 0x10087d22
push dword [ebp + 8]
mov eax, dword [eax + 0x34]
lea ecx, [ebp - 0x70]
push ecx
push 0x10000004
mov ecx, edi
call eax
test al, al
je 0x10087b63
lea ecx, [ebp - 0x90]
mov byte [ebp + 0xb], 1
call fcn.10020230
lea ecx, [ebp - 0x38]
call fcn.1001eb30
jmp 0x10087d22
mov dword [ebp - 0x44], vtable.WM::GMFile.0
mov dword [ebp - 0x40], 0xffffffff
mov byte [ebp - 4], 9
cmp dword [esi + 0x88], 1
jne 0x10087575
mov eax, dword [esi + 0x54]
lea ecx, [ebp - 0x44]
or eax, 0x8000000
push eax
push 2
push 1
push 0x40000000
lea eax, [ebp - 0x70]
push eax
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 0x1008756d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi]
mov dword [ebp + 8], eax
mov edx, dword [ecx + 0x30]
lea ecx, [ebp - 0x70]
push ecx
push eax
mov ecx, edi
call edx
test al, al
mov eax, dword [edi]
je 0x1008752e
push dword [esi + 0x74]
mov ecx, edi
push dword [esi + 0x70]
push esi
call dword [eax + 0x24]
lea ecx, [ebp - 0x44]
mov byte [ebp + 0xb], 1
call sym.WMCommon.dll_public_virtual:_void___thiscall_WM::GMFile::destructor_void_
lea ecx, [ebp - 0x90]
call fcn.10020230
lea ecx, [ebp - 0x38]
call fcn.1001eb30
jmp 0x10087d22
push dword [ebp + 8]
mov eax, dword [eax + 0x34]
lea ecx, [ebp - 0x70]
push ecx
push 0x10000001
mov ecx, edi
call eax
test al, al
je 0x10087a74
lea ecx, [ebp - 0x44]
mov byte [ebp + 0xb], 1
call sym.WMCommon.dll_public_virtual:_void___thiscall_WM::GMFile::destructor_void_
lea ecx, [ebp - 0x90]
call fcn.10020230
lea ecx, [ebp - 0x38]
call fcn.1001eb30
jmp 0x10087d22
lea ecx, [ebp - 0x44]
call sym.WMCommon.dll_public:_bool___thiscall_WM::GMFile::SeekBeginOfFile_void_
mov eax, dword [esi + 0x70]
xorps xmm0, xmm0
mov ecx, dword [esi + 0x5c]
mov dword [ebp - 0x74], eax
mov eax, dword [esi + 0x74]
mov dword [ebp - 0x78], eax
mov eax, dword [esi + 0x58]
movlpd qword [ebp - 0x84], xmm0
mov dword [ebp - 0x94], eax
mov dword [ebp - 0xbc], ecx
test ecx, ecx
jne 0x100875aa
test eax, eax
je 0x10087a98
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x18]
nop dword [eax]
cmp eax, dword [esi + 0x74]
ja 0x10087a98
jb 0x100875d4
cmp ecx, dword [esi + 0x70]
jae 0x10087a98
mov ecx, dword [ebp - 0x10]
cmp ecx, edx
jae 0x10087a24
mov eax, dword [edi + 0xb0]
mov ecx, dword [edi + 0xac]
sub eax, ecx
mov edx, dword [ebp - 0x10]
sar eax, 2
cmp eax, edx
jbe 0x10087d63
mov ecx, dword [ecx + edx*4]
xorps xmm0, xmm0
movlpd qword [ebp - 0x84], xmm0
lea edx, [ebp - 0x84]
push edx
mov dword [ebp - 0x54], ecx
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
test al, al
je 0x10087a74
mov edx, dword [ebp - 0x24]
cmp dword [ebp - 0x84], edx
jne 0x10087635
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0x80], eax
je 0x10087672
mov ecx, dword [ebp - 0x54]
lea edi, [ebp - 0x84]
push edi
push 0
push dword [ebp - 0x20]
mov eax, dword [ecx]
push edx
mov eax, dword [eax + 0x18]
call eax
mov edi, dword [ebp - 0x50]
test al, al
je 0x10087a74
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x84], eax
jne 0x10087a74
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0x80], eax
jne 0x10087a74
mov edx, dword [ebp - 0x18]
xorps xmm0, xmm0
mov eax, dword [ebp - 0x10]
movlpd qword [ebp - 0x34], xmm0
cmp edx, eax
jbe 0x10087d5e
mov esi, dword [ebp - 0x90]
mov ecx, dword [esi + eax*8]
mov eax, dword [esi + eax*8 + 4]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x74]
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x78]
adc eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x2c]
jb 0x100876f9
ja 0x100876b6
cmp dword [ebp - 0x1c], ecx
jbe 0x100876f9
cmp edx, dword [ebp - 0x10]
jbe 0x10087d5e
mov eax, dword [ebp - 0x74]
mov edx, dword [ebp - 0x24]
sub eax, ecx
mov edi, dword [ebp - 0x78]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x2c]
sbb edi, eax
add dword [ebp - 0x14], edx
movlpd qword [ebp - 0x34], xmm0
adc edi, dword [ebp - 0x20]
sub ecx, edx
mov edx, dword [ebp - 0x30]
sbb eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], edi
mov edi, dword [ebp - 0x34]
mov dword [ebp - 0x20], edx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x24], edi
mov edi, dword [ebp - 0x50]
jmp 0x1008770e
mov esi, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x2c], esi
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0x14], esi
mov esi, dword [ebp + 8]
add dword [ebp - 0x4c], ecx
mov dword [ebp - 0x28], ecx
adc dword [ebp - 0x48], eax
sub dword [ebp - 0x74], ecx
sbb dword [ebp - 0x78], eax
inc dword [ebp - 0x10]
cmp dword [esi + 0x88], 1
jne 0x10087786
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
push dword [ebp - 0xbc]
push dword [ebp - 0x94]
push eax
push ecx
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x54]
mov eax, dword [ebp - 0x3c]
sub esp, 8
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [ebp - 0x38]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x10087767
add ecx, 4
mov eax, 1
lock xadd dword [ecx], eax
push esi
lea eax, [ebp - 0x70]
mov ecx, edi
push eax
call sym.WMCommon.dll_protected:_bool___thiscall_WM::GMUnpacker::ExtractNodeToFile_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____class_WM::GMTocNode___class_boost::shared_ptr_class_WM::GMCompressConverter___class_WM::GMBaseFile___class_WM::GMBaseFile___unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64__
test al, al
je 0x100879c1
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x4c]
jmp 0x100875b9
cmp dword [esi + 0x88], 2
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x4c]
jne 0x100875c0
push dword [esi + 0x58]
lea ecx, [esi + 0x78]
mov dword [ebp - 0x7c], 0
call fcn.10020ab0
cmp dword [esi + 0x60], 0
jne 0x100877ee
mov ecx, dword [edi + 0xa8]
lea edx, [ebp - 0x7c]
push edx
push dword [ebp - 0x28]
mov eax, dword [ecx]
push dword [esi + 0x80]
mov eax, dword [eax + 4]
call eax
test al, al
je 0x100879c1
mov ecx, dword [esi + 0x7c]
cmp dword [ebp - 0x7c], ecx
mov eax, dword [ebp - 0x48]
cmovbe ecx, dword [ebp - 0x7c]
mov dword [esi + 0x84], ecx
mov ecx, dword [ebp - 0x4c]
jmp 0x100875b9
mov eax, dword [esi + 0x80]
mov ecx, dword [esi + 0x58]
push dword [ebp - 0x28]
add ecx, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0xcc]
call fcn.100209c0
mov byte [ebp - 4], 0xb
lea edx, [ebp - 0x7c]
mov ecx, dword [edi + 0xa8]
push edx
push dword [ebp - 0x28]
mov eax, dword [ecx]
push dword [ebp - 0xc4]
mov eax, dword [eax + 4]
call eax
test al, al
je 0x100879ed
mov edx, dword [ebp - 0x7c]
mov ecx, edx
cmp edx, dword [ebp - 0xc8]
mov eax, dword [esi + 0x7c]
cmova ecx, dword [ebp - 0xc8]
cmp dword [ebp - 0x94], eax
mov dword [ebp - 0x28], edx
cmovbe eax, dword [ebp - 0x94]
mov dword [ebp - 0xc0], ecx
mov dword [esi + 0x84], eax
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x54], 0
test edx, edx
je 0x10087930
nop dword [eax]
mov ecx, dword [ebp - 0x3c]
lea edi, [ebp - 0x98]
push 0
push edi
push dword [ebp - 0x28]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0x54]
add eax, dword [ebp - 0xc4]
push eax
call edx
mov edi, dword [ebp - 0x50]
test al, al
je 0x100879ed
mov eax, dword [ebp - 0x98]
mov ecx, dword [ebp - 0x54]
sub dword [ebp - 0x28], eax
add ecx, eax
mov eax, dword [edi]
push 0
push ecx
mov dword [ebp - 0x54], ecx
mov ecx, edi
push esi
call dword [eax + 0x24]
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
test eax, eax
je 0x10087926
mov ecx, dword [ebp - 0x3c]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x18]
call eax
mov dword [ebp - 0x30], eax
test eax, eax
je 0x1008791e
mov edx, dword [ebp - 0x2c]
test edx, edx
je 0x1008791e
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
sub ecx, eax
cmp ecx, edx
jb 0x100879ed
push edx
push dword [ebp - 0x30]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x14]
add esp, 0xc
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ecx]
call dword [eax + 0x1c]
cmp dword [ebp - 0x28], 0
ja 0x10087880
cmp dword [esi + 0x60], 0
je 0x100879a7
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
test eax, eax
je 0x10087991
mov ecx, dword [ebp - 0x3c]
lea edx, [ebp - 0x58]
mov dword [ebp - 0x58], 0
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x18]
call eax
mov dword [ebp - 0x30], eax
test eax, eax
je 0x10087991
mov edx, dword [ebp - 0x58]
test edx, edx
je 0x10087991
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
sub ecx, eax
cmp ecx, edx
jb 0x100879ed
push edx
push dword [ebp - 0x30]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x14]
add esp, 0xc
add eax, dword [ebp - 0x58]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
test eax, eax
jne 0x10087936
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ecx]
call dword [eax + 0x1c]
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 9
call sym.WMCommon.dll_public:_void___thiscall_WM::GMSerial::destructor_void_
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x4c]
jmp 0x100875b9
lea ecx, [ebp - 0x44]
call sym.WMCommon.dll_public_virtual:_bool___thiscall_WM::GMFile::Close_void_
lea ecx, [ebp - 0x44]
mov byte [ebp + 0xb], 0
call sym.WMCommon.dll_public_virtual:_void___thiscall_WM::GMFile::destructor_void_
lea ecx, [ebp - 0x90]
call fcn.10020230
lea ecx, [ebp - 0x38]
call fcn.1001eb30
jmp 0x10087d22
lea ecx, [ebp - 0x44]
call sym.WMCommon.dll_public_virtual:_bool___thiscall_WM::GMFile::Close_void_
lea ecx, [ebp - 0xcc]
call sym.WMCommon.dll_public:_void___thiscall_WM::GMSerial::destructor_void_
lea ecx, [ebp - 0x44]
mov byte [ebp + 0xb], 0
call sym.WMCommon.dll_public_virtual:_void___thiscall_WM::GMFile::destructor_void_
lea ecx, [ebp - 0x90]
call fcn.10020230
lea ecx, [ebp - 0x38]
call fcn.1001eb30
jmp 0x10087d22
cmp dword [edi + 0x128], 8
lea eax, [edi + 0x114]
jb 0x10087a35
mov eax, dword [eax]
push ecx
push str..part
push eax
lea eax, [ebp - 0x12c]
push str._s_s_d
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::GMStringUtils::FormatResult_wchar_t_const__
add esp, 0x14
push 2
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x12c]
mov eax, dword [edi]
push ecx
push 0x10000002
mov ecx, edi
call dword [eax + 0x34]
lea ecx, [ebp - 0x12c]
call fcn.1001a5a0
lea ecx, [ebp - 0x44]
mov byte [ebp + 0xb], 0
call sym.WMCommon.dll_public_virtual:_void___thiscall_WM::GMFile::destructor_void_
lea ecx, [ebp - 0x90]
call fcn.10020230
lea ecx, [ebp - 0x38]
call fcn.1001eb30
jmp 0x10087d22
push dword [esi + 0x50]
lea ecx, [ebp - 0x44]
push dword [esi + 0x4c]
push dword [esi + 0x48]
push dword [esi + 0x44]
push dword [esi + 0x40]
push dword [esi + 0x3c]
call sym.WMCommon.dll_public_virtual:_bool___thiscall_WM::GMFile::SetTime_struct__FILETIME__struct__FILETIME__struct__FILETIME_
lea ecx, [ebp - 0x44]
call sym.WMCommon.dll_public_virtual:_bool___thiscall_WM::GMFile::Close_void_
lea ecx, [ebp - 0x44]
call sym.WMCommon.dll_public_virtual:_void___thiscall_WM::GMFile::destructor_void_
lea ecx, [ebp - 0x90]
call fcn.10020230
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.1001eb30
jmp 0x10087cf4
mov eax, dword [edi]
lea ecx, [ebp - 0x144]
push 0x10255fec
mov esi, dword [eax + 0x30]
call fcn.1001a2f0
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x144]
push ecx
push eax
mov ecx, edi
call esi
lea ecx, [ebp - 0x144]
mov byte [ebp + 0xb], al
mov byte [ebp - 4], 5
call fcn.1001a5a0
cmp byte [ebp + 0xb], 0
jne 0x10087480
mov eax, dword [edi]
mov edi, dword [eax + 0x34]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10255fec
lea ecx, [ebp - 0x15c]
mov esi, eax
call fcn.1001a2f0
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x15c]
push esi
push eax
push 0x10000002
mov byte [ebp - 4], 7
call edi
lea ecx, [ebp - 0x15c]
call fcn.1001a5a0
lea ecx, [ebp - 0x90]
mov byte [ebp + 0xb], 0
call fcn.10020230
lea ecx, [ebp - 0x38]
call fcn.1001eb30
jmp 0x10087d22
lea ecx, [ebp - 0x38]
mov byte [ebp + 0xb], 0
call fcn.1001eb30
jmp 0x10087d22
lea eax, [ebp - 0x70]
push eax
call sym.WMCommon.dll_public:_static_bool___cdecl_WM::GMFilePathUtils::IsExistsFile_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 0x1008723d
lea eax, [ebp - 0x70]
push eax
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 0x10087bf2
mov eax, dword [edi]
lea ecx, [ebp - 0x70]
push ecx
mov ecx, edi
mov eax, dword [eax + 0x2c]
call eax
test al, al
jne 0x10087bf2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi]
mov edx, dword [ecx + 0x30]
lea ecx, [ebp - 0x70]
push ecx
push eax
mov ecx, edi
call edx
test al, al
je 0x1008723d
mov eax, dword [edi]
mov ecx, edi
push 0
push 0
push esi
call dword [eax + 0x24]
jmp 0x10087cf4
mov eax, dword [edi]
mov ecx, edi
push 0
push 0
push esi
call dword [eax + 0x24]
mov eax, dword [esi + 4]
xor ecx, ecx
sub eax, dword [esi]
sar eax, 3
mov dword [ebp + 8], ecx
test eax, eax
je 0x10087ca6
cmp byte [edi + 0xf4], 0
jne 0x1008723d
mov eax, dword [esi]
mov edx, dword [eax + ecx*8]
mov ecx, dword [eax + ecx*8 + 4]
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], ecx
test ecx, ecx
je 0x10087c3f
add ecx, 4
mov eax, 1
lock xadd dword [ecx], eax
mov byte [ebp - 4], 0xc
cmp dword [edx + 0x60], 3
jne 0x10087c6d
cmp dword [edx + 0x70], 0
jne 0x10087c55
cmp dword [edx + 0x74], 0
je 0x10087c83
mov eax, dword [edi]
lea ecx, [ebp - 0x70]
push ecx
push edx
mov ecx, edi
mov eax, dword [eax + 0x1c]
call eax
test al, al
je 0x10087d50
jmp 0x10087c83
mov eax, dword [edi]
lea ecx, [ebp - 0x70]
push ecx
push edx
mov ecx, edi
mov eax, dword [eax + 0x10]
call eax
test al, al
je 0x10087d4a
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.1001eb30
mov eax, dword [esi + 4]
mov ecx, dword [ebp + 8]
sub eax, dword [esi]
inc ecx
sar eax, 3
mov dword [ebp + 8], ecx
cmp ecx, eax
jb 0x10087c13
cmp byte [edi + 0xf4], 0
jne 0x1008723d
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
push dword [esi + 0x54]
cmovae eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x10087cd2
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [esi + 0x4c]
push eax
lea eax, [esi + 0x44]
push eax
lea eax, [esi + 0x3c]
push eax
lea eax, [ebp - 0x70]
push eax
call sym.WMCommon.dll_public:_static_bool___cdecl_WM::GMFileSystemUtils::SetDirTime_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___struct__FILETIME_const___struct__FILETIME_const___struct__FILETIME_const__
add esp, 0x10
test al, al
jne 0x10087cf4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x28]
mov eax, dword [esi + 0x70]
add dword [edi + 0x108], eax
mov eax, dword [esi + 0x74]
adc dword [edi + 0x10c], eax
mov ecx, dword [edi + 0xf8]
test ecx, ecx
je 0x10087d1e
mov eax, dword [ecx]
push esi
call dword [eax + 0x10]
mov byte [ebp + 0xb], 1
lea ecx, [ebp - 0xb8]
call fcn.1001a5a0
lea ecx, [ebp - 0x70]
call fcn.1001a5a0
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp + 0xb]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 8
mov al, byte [edi + 0xf4]
lea ecx, [ebp - 0x30]
call fcn.1001eb30
mov byte [ebp + 0xb], 0
jmp 0x10087d22
call fcn.10020220
call fcn.10020220
int3