Function at 0x100f9750
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10251feb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push edi
mov eax, dword [ebp + 0x20]
test eax, eax
mov dword [ebp - 4], 0
mov edi, dword [ecx + 0x5c]
cmovne edi, eax
mov dword [ebp - 0x1c], vtable.WM::GMBuffer_char_.0
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
mov eax, dword [edi]
push ecx
mov ecx, edi
mov eax, dword [eax + 0x84]
call eax
test al, al
jne 0x100f97f1
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], vtable.WM::GMBuffer_char_.0
test eax, eax
je 0x100f97d6
push eax
call fcn.1006e708
add esp, 4
mov dword [ebp - 0x14], 0
lea ecx, [ebp + 8]
call fcn.1001a5a0
xor al, al
pop edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x1c
push esi
mov esi, dword [ebp - 0x18]
mov dword [ebp + 0x20], esi
test esi, 0xfffffff8
jbe 0x100f9848
mov eax, esi
mov ecx, 8
and eax, 7
sub ecx, eax
mov dword [ebp - 0x38], ecx
cmp ecx, 8
je 0x100f9848
lea eax, [esi + ecx]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp + 0x20], eax
call fcn.10020ab0
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x100f9842
mov edi, dword [ebp - 0x14]
mov edx, ecx
add edi, esi
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebp - 0x3c]
mov eax, dword [ebp + 0x20]
mov dword [ebp + 0x20], eax
mov eax, dword [edi]
lea ecx, [ebp - 0x58]
push 3
push 0x102703c0
mov dword [ebp - 0x48], 0
mov esi, dword [eax + 0xc]
xor eax, eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.1001a600
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
push eax
mov ecx, edi
call esi
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
mov esi, eax
call fcn.1001a5a0
test esi, esi
je 0x100f98e1
mov eax, dword [ebp + 0x20]
lea edx, [ebp - 0x34]
mov ecx, dword [ebp - 0x14]
sub eax, 0x2b
push edx
add ecx, 0x2b
xorps xmm0, xmm0
push eax
push ecx
movups xmmword [ebp - 0x34], xmm0
call sym.WMCommon.dll_public:_static_void___cdecl_WM::GMMD5Utils::CalculateMD5_unsigned_char_const___int__unsigned_char__const_
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x88]
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::GMMD5Utils::GetMD5String_unsigned_char__const_
add esp, 0x14
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x88]
mov eax, dword [edi]
push ecx
push esi
mov ecx, edi
call dword [eax + 0x70]
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 1
call fcn.1001a5a0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x100f98f8
push eax
call fcn.1006e708
add esp, 4
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], 0
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x84]
mov edi, dword [ebp - 0x18]
test edi, 0xfffffff8
jbe 0x100f995b
mov eax, edi
mov esi, 8
and eax, 7
sub esi, eax
cmp esi, 8
je 0x100f995b
lea eax, [edi + esi]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp + 0x20], eax
call fcn.10020ab0
test esi, esi
je 0x100f9958
add edi, dword [ebp - 0x14]
mov ecx, esi
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebp + 0x20]
lea ecx, [ebp - 0x90]
call sym.WMCommon.dll_public:_void___thiscall_WM::GMDataEncrypt::constructor_void_
xor esi, esi
mov dword [ebp - 0x34], vtable.WM::GMBuffer_char_.0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
test edi, edi
je 0x100f9995
test edi, edi
je 0x100f998f
push edi
call fcn.1006e70d
add esp, 4
mov esi, eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
push 1
push edi
push esi
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x90]
push dword [ebp - 0x14]
call sym.WMCommon.dll_private:_bool___thiscall_WM::GMDataEncrypt::EncryptData_unsigned_char_const___unsigned_char___unsigned_int__bool_
test al, al
je 0x100f9abe
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x70]
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 - 0x70]
mov byte [ebp - 4], 5
push eax
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, 0xc
test al, al
jne 0x100f99e0
lea eax, [ebp - 0x70]
push eax
call sym.WMCommon.dll_public:_static_bool___cdecl_WM::GMFilePathUtils::CreateDirectories_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 4
mov dword [ebp - 0x24], vtable.WM::GMFile.0
mov dword [ebp - 0x20], 0xffffffff
push 0x80
push 2
push 2
push 0x40000000
lea eax, [ebp + 8]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x24]
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 0x100f9a8b
test esi, esi
je 0x100f9a8b
mov eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100f9aaf
push 0
lea ecx, [ebp - 0x40]
push ecx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100f9a8b
cmp edi, dword [ebp - 0x40]
jne 0x100f9a8b
lea ecx, [ebp - 0x24]
call sym.WMCommon.dll_public_virtual:_void___thiscall_WM::GMFile::destructor_void_
lea ecx, [ebp - 0x70]
call fcn.1001a5a0
push esi
call fcn.1006e708
mov eax, dword [ebp - 0x14]
add esp, 4
mov dword [ebp - 0x1c], vtable.WM::GMBuffer_char_.0
test eax, eax
je 0x100f9a6f
push eax
call fcn.1006e708
add esp, 4
mov dword [ebp - 0x14], 0
lea ecx, [ebp + 8]
call fcn.1001a5a0
pop esi
mov al, 1
pop edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x1c
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], vtable.WM::GMFile.0
cmp eax, 0xffffffff
je 0x100f9aaf
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x20]
or edx, 0xffffffff
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x24], vtable.WM::GMBaseFile.0
call fcn.1001a5a0
test esi, esi
je 0x100f9acb
push esi
call fcn.1006e708
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], vtable.WM::GMBuffer_char_.0
test eax, eax
je 0x100f9ae9
push eax
call fcn.1006e708
add esp, 4
mov dword [ebp - 0x14], 0
lea ecx, [ebp + 8]
call fcn.1001a5a0
mov ecx, dword [ebp - 0xc]
xor al, al
pop esi
pop edi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x1c