Function at 0x18002b930
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], r9
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0x90
lea eax, [rcx + 0x7fe]
mov rsi, r8
mov dword [rbp - 0x21], eax
mov r12, rdx
mov r15d, ecx
cmp ecx, eax
jae 0x18002bab3
mov r13, qword [rbp + 0x7f]
mov ebx, dword [rbp + 0x5f]
mov rdi, qword [rbp - 0x19]
lea r14, str.SDL_output_device
cmp r15d, 0xf8
ja 0x18002ba50
je 0x18002bb53
mov eax, r15d
sub eax, 0x3a
je 0x18002ba42
sub eax, 0xd
je 0x18002b9df
sub eax, 0x2b
je 0x18002b9cd
sub eax, 0x13
je 0x18002bc21
cmp eax, 0x21
jne 0x18002bc0b
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm0
mov qword [rsi + 0x20], rax
jmp 0x18002bc0b
test r12, r12
je 0x18002bab3
mov rdi, qword [r12]
jmp 0x18002bc0b
mov eax, dword [rsi]
lea rcx, [rbp + 0x5f]
mov r9d, 0xb
mov dword [rbp + 0x5f], eax
xor r8d, r8d
mov rdx, r12
call fcn.180026610
mov rbx, rax
mov qword [rbp - 0x11], r14
lea rax, [0x180041cc0]
mov qword [rbp - 1], 0
movsd xmm1, qword [rbp - 1]
lea r8, [rbp + 0x5f]
mov qword [rbp - 9], rax
mov r9, r12
movups xmm0, xmmword [rbp - 0x11]
mov eax, dword [rsi]
mov edx, 0x53
xor ecx, ecx
movsd qword [rbp + 0x17], xmm1
movups xmmword [rbp + 7], xmm0
mov dword [rbp + 0x5f], eax
call fcn.1800132f0
jmp 0x18002bc09
mov rcx, rsi
call qword [0x18005a1e8]
jmp 0x18002bc0b
mov eax, r15d
sub eax, 0x101
je 0x18002bbf3
sub eax, 0x2b
je 0x18002bb9e
sub eax, 0x86
je 0x18002bb94
sub eax, 9
je 0x18002ba92
cmp eax, 0xb1
jne 0x18002bc0b
mov rcx, qword [rsi + 0x10]
mov rax, qword [rsi]
mov byte [rcx + rax], 0
jmp 0x18002bc0b
mov r14d, 0x122
nop dword [rax + rax]
mov eax, r14d
sub eax, 0x122
je 0x18002bad2
cmp eax, 0x24
jne 0x18002bb42
mov rax, qword [rbp - 0x19]
mov rbx, qword [rsp + 0xd8]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov eax, dword [rsi]
xor r9d, r9d
mov dword [rbp + 0x5f], eax
xor r8d, r8d
lea rax, [rbp + 0x5f]
mov rdx, r12
mov qword [rsp + 0x30], rax
mov ecx, 0xea
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call fcn.180010440
add ebx, eax
mov dword [rbp - 0x29], 0
mov eax, dword [rsi]
lea r8, [rbp + 0x5f]
mov dword [rbp - 0x31], eax
lea rdx, [rbp - 0x31]
lea rax, [rbp + 7]
mov dword [rbp + 0x5f], 1
mov qword [rsp + 0x28], rax
lea rcx, [rbp - 0x29]
mov r9d, 0xcb
mov qword [rsp + 0x20], r12
call fcn.180021ef0
mov dword [rbp - 0x19], eax
add r14d, 0x24
cmp r14d, 0x16a
jb 0x18002baa0
mov r8, qword [r13]
mov rcx, qword [rsi + 0x10]
lea rax, [r8 + 1]
add rax, rcx
cmp rax, qword [rsi + 8]
jb 0x18002bb87
xor r8d, r8d
mov qword [rbp - 0x29], rax
lea r9, [rbp - 0x29]
mov rcx, rsi
lea edx, [r8 + 0x21]
call fcn.18001d510
mov r8, qword [r13]
mov rcx, qword [rsi + 0x10]
add rcx, qword [rsi]
mov rdx, r12
call sub.VCRUNTIME140.dll_memcpy
jmp 0x18002bc0b
mov rax, qword [r13]
add qword [rsi + 0x10], rax
jmp 0x18002bc0b
test rdi, rdi
je 0x18002bc0b
xor r14d, r14d
cmp qword [rsi + 8], r14
jbe 0x18002bbe8
mov rax, qword [rdi]
mov rcx, qword [rdi + 8]
mov rax, qword [rax + 0x20]
cmp qword [rcx + r14*8], rax
jae 0x18002bbdf
nop dword [rax]
mov rdx, qword [rsi + 0x30]
mov ecx, 0x22
call fcn.18003a820
mov rax, qword [rdi]
mov rcx, qword [rdi + 8]
mov rax, qword [rax + 0x20]
cmp qword [rcx + r14*8], rax
jb 0x18002bbc0
inc r14
cmp r14, qword [rsi + 8]
jb 0x18002bbb7
mov rdi, qword [rdi + 0x18]
test rdi, rdi
jne 0x18002bba3
jmp 0x18002bc0b
mov eax, dword [rsi]
lea rdx, [rbp + 0x5f]
mov r8, r12
mov dword [rbp + 0x5f], eax
mov ecx, 0x11a
call fcn.18003df30
add ebx, eax
add r15d, 0xba
cmp r15d, dword [rbp - 0x21]
jae 0x18002bab3
jmp 0x18002b976
mov r9, qword [rbp + 0x77]
mov rcx, rsi
mov r8, qword [r13]
mov rdx, qword [r12]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x18002bab7