Function at 0x100026c8c
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb0
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov r14b, r9b
mov r12d, r8d
mov r9, rdx
mov rdi, rcx
xor r15d, r15d
cmp rcx, r15
je 0x10002c855
cmp rdx, r15
je 0x10002c855
mov qword [rax - 0x68], r15
mov dword [rsp + 0x44], r15d
lea r8, [rsp + 0x44]
lea rdx, [rax - 0x68]
mov rcx, r9
call fcn.100024e00
mov rbp, qword [rsp + 0x70]
cmp rbp, r15
je 0x10002c83a
mov r13d, dword [rsp + 0x44]
cmp r13d, r15d
je 0x10002c83a
lea ebx, [r15 + 0x65]
mov dword [rsp + 0x20], ebx
mov r9b, 1
mov r8d, r12d
xor edx, edx
mov rcx, rdi
call fcn.100003120
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x10002c70f
mov dword [rsp + 0x58], r15d
mov dword [rsp + 0x5c], r15d
mov dword [rsp + 0x60], 0x10
mov qword [rsp + 0x68], r15
mov rcx, qword [0x10009e1b8]
cmp rcx, r15
je 0x100026d7e
cmp dword [rcx + 0xd4], r15d
je 0x100026d7e
lea rax, str.RGMH_Thumbnail_Hearts.png
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
mov edx, 0x100
lea r8d, [rdx - 0x40]
call fcn.1000270f8
mov edx, ebx
lea rcx, [rsp + 0x88]
call fcn.100003810
mov rbx, rax
mov rcx, qword [0x10009e180]
mov r8, qword [rcx]
lea rdx, [rsp + 0xa0]
call qword [r8 + 0x10]
movdqu xmm0, xmmword [rax]
movdqu xmmword [rsp + 0x70], xmm0
mov eax, dword [rsp + 0x58]
neg eax
sbb r8, r8
lea rax, [rsp + 0x58]
and r8, rax
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rdi
mov r9, qword [rbx + 0x10]
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.100026f0c
cmp eax, r15d
sete bl
mov rcx, qword [rsp + 0x98]
call sub.msvcrt.dll_free
cmp bl, r15b
jne 0x10002c732
lea ebx, [r13 + r13]
lea eax, [rbx + 2]
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x50], r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x50]
mov r8d, 4
lea rdx, [rsp + 0x4c]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, r15d
je 0x10002c774
mov dword [rsp + 0x40], r15d
mov byte [rsp + 0xe0], 0xff
mov byte [rsp + 0xe1], 0xfe
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x40]
mov r8d, 2
lea rdx, [rsp + 0xe0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, r15d
je 0x10002c7f8
cmp dword [rsp + 0x40], 2
jne 0x10002c7f8
mov dword [rsp + 0x48], r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x48]
mov r8d, ebx
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, r15d
je 0x10002c7b6
mov rcx, r13
add rcx, rcx
mov eax, dword [rsp + 0x48]
cmp rax, rcx
jne 0x10002c7b6
mov rcx, rbp
call sub.msvcrt.dll_free
mov r8b, r14b
mov edx, r12d
mov rcx, rsi
call fcn.100003d5c
nop
mov rcx, qword [rsp + 0x68]
cmp rcx, r15
je 0x100026ee0
call qword [sym.imp.msvcrt.dll_free]
mov al, 1
jmp 0x100026ee4
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov r8, rdi
lea rdx, str.Stash::SaveXMLFile__:_Unable_to_open__s
mov ecx, 0x20001
call fcn.100002470
mov rcx, rbp
call sub.msvcrt.dll_free
xor al, al
jmp 0x100026ee4
mov r8, rdi
lea rdx, str.Stash::SaveXMLFile__:_Unable_to_write_Rich_Game_Media_header_to__s
mov ecx, 0x80
call fcn.100002470
mov rcx, rbp
call sub.msvcrt.dll_free
mov r8b, 1
mov edx, r12d
mov rcx, rsi
call fcn.100003d5c
nop
mov rcx, qword [rsp + 0x68]
cmp rcx, r15
je 0x10002c76d
call qword [sym.imp.msvcrt.dll_free]
xor al, al
jmp 0x100026ee4
mov r8, rdi
lea rdx, str.Stash::SaveXMLFile__:_Unable_to_write_XML_data_size_value_to__s
mov ecx, 0x80
call fcn.100002470
mov rcx, rbp
call sub.msvcrt.dll_free
mov r8b, 1
mov edx, r12d
mov rcx, rsi
call fcn.100003d5c
nop
mov rcx, qword [rsp + 0x68]
cmp rcx, r15
je 0x10002c7af
call qword [sym.imp.msvcrt.dll_free]
xor al, al
jmp 0x100026ee4
mov r8, rdi
lea rdx, str.Stash::SaveXMLFile__:_Unable_to_write_xml_buffer_to__s
mov ecx, 0x80
call fcn.100002470
mov rcx, rbp
call sub.msvcrt.dll_free
mov r8b, 1
mov edx, r12d
mov rcx, rsi
call fcn.100003d5c
nop
mov rcx, qword [rsp + 0x68]
cmp rcx, r15
je 0x10002c7f1
call qword [sym.imp.msvcrt.dll_free]
xor al, al
jmp 0x100026ee4
mov r8, rdi
lea rdx, str.Stash::SaveXMLFile__:_Unable_to_write_UTF16_LE_prefix_to__s
mov ecx, 0x80
call fcn.100002470
mov rcx, rbp
call sub.msvcrt.dll_free
mov r8b, 1
mov edx, r12d
mov rcx, rsi
call fcn.100003d5c
nop
mov rcx, qword [rsp + 0x68]
cmp rcx, r15
je 0x10002c833
call qword [sym.imp.msvcrt.dll_free]
xor al, al
jmp 0x100026ee4
mov r8, rdi
lea rdx, str.Stash::SaveXMLFile__:_Malformed_xml_string_generated_for_file__s
mov ecx, 0x20001
call fcn.100002470
xor al, al
jmp 0x100026ee4
mov dword [rsp + 0x20], r8d
mov r8, rcx
lea rdx, str.Stash::SaveXMLFile_wszFileName_u__pSource_u__dwFlags_u_:_Malformed_parameters
mov ecx, 0x80
call fcn.100002470
xor al, al
jmp 0x100026ee4