Function at 0x100848a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1024a7fa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
push esi
push edi
mov ebx, ecx
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], 0
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 0x10084932
push edi
mov ecx, ebx
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 0x10084932
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebx]
mov esi, eax
push edi
push esi
mov edx, dword [ecx + 0x30]
mov ecx, ebx
call edx
mov ecx, ebx
test al, al
je 0x10084912
mov eax, dword [ebp + 0xc]
mov edx, dword [ebx]
push dword [eax + 0x74]
push dword [eax + 0x70]
push eax
call dword [edx + 0x24]
mov bl, 1
jmp 0x10084d32
mov eax, dword [ebx]
push esi
push edi
push 0x10000004
mov eax, dword [eax + 0x34]
call eax
test al, al
je 0x1008492b
mov bl, 1
jmp 0x10084d32
xor bl, bl
jmp 0x10084d32
mov dword [ebp - 0x48], vtable.WM::GMFile.0
mov dword [ebp - 0x44], 0xffffffff
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 1
mov eax, dword [edi + 0x54]
or eax, 0x8000000
push eax
push 2
push 1
push 0x40000000
push ecx
lea ecx, [ebp - 0x48]
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 0x100849ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebx]
mov esi, eax
push dword [ebp + 8]
push esi
mov edx, dword [ecx + 0x30]
mov ecx, ebx
call edx
test al, al
mov eax, dword [ebx]
je 0x10084997
push dword [edi + 0x74]
mov ecx, ebx
push dword [edi + 0x70]
push edi
call dword [eax + 0x24]
mov bl, 1
jmp 0x10084d07
mov ecx, dword [ebp + 8]
mov eax, dword [eax + 0x34]
push esi
push ecx
push 0x10000001
mov ecx, ebx
call eax
test al, al
je 0x100849b3
mov bl, 1
jmp 0x10084d07
xor bl, bl
jmp 0x10084d07
lea ecx, [ebp - 0x48]
call sym.WMCommon.dll_public:_bool___thiscall_WM::GMFile::SeekBeginOfFile_void_
push 0x80000
mov dword [ebp - 0x60], vtable.WM::GMBuffer_unsigned_char_.0
mov dword [ebp - 0x54], 0
call fcn.1006e70d
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], 0x80000
mov byte [ebp - 4], 2
lea edx, [ebp - 0x50]
mov eax, dword [edi + 0x74]
xorps xmm0, xmm0
mov ecx, dword [ebx + 0xa8]
mov esi, dword [edi + 0x70]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x58]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x5c]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], 0
movlpd qword [ebp - 0x50], xmm0
mov eax, dword [ecx]
push edx
call dword [eax + 0x10]
cmp dword [ebp - 0x10], 0
ja 0x10084a40
test esi, esi
je 0x10084c2d
nop word [eax + eax]
cmp dword [ebp - 0x10], 0
mov ecx, dword [ebx + 0xa8]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
jb 0x10084a62
ja 0x10084a5b
cmp esi, 0x80000
jbe 0x10084a62
mov eax, 0x80000
jmp 0x10084a64
mov eax, esi
lea edi, [ebp - 0x14]
push edi
push eax
push dword [ebp - 0x18]
call edx
mov edi, dword [ebp + 0xc]
test al, al
je 0x10084cbc
sub esi, dword [ebp - 0x14]
mov dword [ebp - 0x24], esi
sbb dword [ebp - 0x10], 0
cmp byte [ebx + 0xf4], 0
jne 0x10084c26
mov ecx, dword [edi + 0x70]
mov eax, dword [edi + 0x74]
sub ecx, esi
mov edx, dword [ebx]
sbb eax, dword [ebp - 0x10]
push eax
push ecx
push edi
mov ecx, ebx
call dword [edx + 0x24]
cmp dword [edi + 0x60], 0
jne 0x10084b00
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
test ecx, ecx
je 0x10084ad9
mov eax, dword [ebp - 0x44]
cmp eax, 0xffffffff
je 0x10084ad9
push 0
lea edx, [ebp - 0x28]
push edx
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10084ad9
cmp esi, dword [ebp - 0x28]
je 0x10084bef
mov eax, dword [ebx]
mov esi, dword [eax + 0x34]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
mov ecx, ebx
push 0x10000003
call esi
test al, al
je 0x10084c26
mov bl, 1
jmp 0x10084cf7
mov edi, dword [ebp - 0x14]
xor esi, esi
mov dword [ebp - 0x30], 0
test edi, edi
je 0x10084bec
mov eax, dword [ebx + 0xf8]
test eax, eax
je 0x10084b2d
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
je 0x10084b2d
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 0x10]
mov byte [ebp - 0x2c], 0
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x20], 0
ja 0x10084b4a
jb 0x10084b46
cmp dword [ebp - 0x1c], eax
ja 0x10084b4a
mov byte [ebp - 0x2c], 1
mov ecx, dword [ebp + 0x10]
push dword [ebp - 0x2c]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x18]
push edi
add eax, esi
push eax
call edx
test al, al
je 0x10084c01
mov ecx, dword [ebp + 0x10]
add esi, dword [ebp - 0x30]
sub edi, dword [ebp - 0x30]
mov dword [ebp - 0x3c], esi
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
je 0x10084be4
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push edx
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, eax
test ecx, ecx
je 0x10084bdc
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x10084bd9
sub dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x44]
sbb dword [ebp - 0x20], 0
mov dword [ebp - 0x38], 0
cmp eax, 0xffffffff
je 0x10084ad9
push 0
lea edx, [ebp - 0x38]
push edx
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10084ad9
cmp esi, dword [ebp - 0x38]
jne 0x10084ad9
mov esi, dword [ebp - 0x3c]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x1c]
test edi, edi
jne 0x10084b14
mov edi, dword [ebp + 0xc]
cmp dword [ebp - 0x10], 0
mov esi, dword [ebp - 0x24]
jbe 0x10084a2e
jmp 0x10084a40
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov edx, dword [ebx]
add esi, dword [ecx + 0x68]
adc eax, dword [ecx + 0x6c]
sub esi, dword [ebp - 0x24]
sbb eax, dword [ebp - 0x10]
add esi, dword [ecx + 0x70]
adc eax, dword [ecx + 0x74]
mov ecx, ebx
push eax
push esi
push 0x30000003
call dword [edx + 0x38]
xor bl, bl
jmp 0x10084cf7
cmp dword [edi + 0x60], 0
je 0x10084c96
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
je 0x10084c82
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0
push edx
mov eax, dword [ecx]
call dword [eax + 0x18]
test eax, eax
je 0x10084c82
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x10084c82
lea edx, [ebp - 0x40]
mov dword [ebp - 0x40], 0
push edx
push ecx
push eax
lea ecx, [ebp - 0x48]
call sym.WMCommon.dll_public_virtual:_bool___thiscall_WM::GMFile::Write_void_const___unsigned_int__unsigned_int__
test al, al
je 0x10084ad9
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x10084c33
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x1c]
push dword [edi + 0x50]
lea ecx, [ebp - 0x48]
push dword [edi + 0x4c]
push dword [edi + 0x48]
push dword [edi + 0x44]
push dword [edi + 0x40]
push dword [edi + 0x3c]
call sym.WMCommon.dll_public_virtual:_bool___thiscall_WM::GMFile::SetTime_struct__FILETIME__struct__FILETIME__struct__FILETIME_
lea ecx, [ebp - 0x48]
call sym.WMCommon.dll_public_virtual:_bool___thiscall_WM::GMFile::Close_void_
mov bl, 1
jmp 0x10084cf7
mov eax, dword [ebx]
mov edi, dword [eax + 0x34]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10255fec
lea ecx, [ebp - 0x78]
mov esi, eax
call fcn.1001a2f0
push esi
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 3
push eax
push 0x10000002
mov ecx, ebx
call edi
lea ecx, [ebp - 0x78]
mov bl, al
call fcn.1001a5a0
test bl, bl
setne bl
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10084d07
push eax
call fcn.1006e708
add esp, 4
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], vtable.WM::GMFile.0
cmp eax, 0xffffffff
je 0x10084d2b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x44]
or edx, 0xffffffff
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], vtable.WM::GMBaseFile.0
lea ecx, [ebp + 0x14]
call fcn.1001eb30
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10