Function at 0x140002be0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x140008038]
xor rax, rsp
mov qword [rbp], rax
mov eax, dword [rdx]
xor ebx, ebx
mov r15, rcx
cmp eax, 0xc
ja 0x140002c24
mov ecx, 0x17ba
lea r8d, [rbx + 1]
bt ecx, eax
jb 0x140002c27
mov r8d, ebx
mov esi, dword [rdx + 4]
test r8d, r8d
mov r14d, dword [rdx + 8]
mov ecx, ebx
mov rdi, qword [rdx + 0x10]
setne r12b
movsxd r13, dword [rdx + 0x18]
add eax, 0xfffffff9
add r12b, 3
mov dword [rsp + 0x20], 0x2a4949
cmp eax, 3
mov dword [rsp + 0x24], 8
mov dword [rsp + 0x29], 0x3010000
setbe cl
mov dword [rsp + 0x2d], 0x100
test r8d, r8d
mov byte [rsp + 0x31], bl
mov dword [rsp + 0x36], 0x30101
setne al
mov dword [rsp + 0x3a], 1
add al, 0xe
mov dword [rsp + 0x42], 0x30102
test ecx, ecx
mov byte [rsp + 0x28], al
mov byte [rsp + 0x46], r12b
sete al
mov dword [rsp + 0x47], 0xc2000000
inc al
mov dword [rsp + 0x4b], 0x3000000
mov dword [rsp + 0x4f], 0x1000301
mov dword [rsp + 0x53], 0x1000000
mov dword [rsp + 0x57], 0x6000000
mov dword [rsp + 0x5b], 0x1000301
mov dword [rsp + 0x5f], 0x2000000
mov dword [rsp + 0x63], 0x11000000
mov dword [rsp + 0x67], 0x1000401
mov dword [rsp + 0x6b], 0xd2000000
mov dword [rsp + 0x6f], 0x12000000
mov dword [rsp + 0x73], 0x1000301
mov dword [rsp + 0x77], 0x1000000
mov dword [rsp + 0x7b], 0x15000000
mov dword [rsp + 0x7f], 0x1000301
mov word [rbp - 0x7d], bx
mov byte [rbp - 0x7b], bl
mov byte [rbp - 0x7a], r12b
mov dword [rbp - 0x79], 0x16000000
mov dword [rbp - 0x75], 0x1000301
mov word [rbp - 0x71], bx
mov byte [rbp - 0x6f], bl
mov dword [rbp - 0x6a], 0x40117
mov dword [rbp - 0x66], 1
mov dword [rbp - 0x5e], 0x5011a
mov dword [rbp - 0x5a], 1
mov dword [rbp - 0x56], 0xca
mov dword [rbp - 0x52], 0x5011b
mov dword [rbp - 0x4e], 1
mov dword [rbp - 0x4a], 0xca
mov dword [rbp - 0x46], 0x3011c
mov dword [rbp - 0x42], 1
mov dword [rbp - 0x3e], 1
mov dword [rbp - 0x3a], 0x30128
mov dword [rbp - 0x36], 1
mov dword [rbp - 0x32], 2
mov dword [rbp - 0x2e], 0x30152
mov dword [rbp - 0x2a], 1
mov byte [rbp - 0x26], al
mov dword [rbp - 0x25], ebx
mov dword [rbp - 0x21], 0x8000000
mov dword [rbp - 0x1d], 0x8000800
mov dword [rbp - 0x19], 0x48000800
mov dword [rbp - 0x15], 0x1000000
mov word [rbp - 0x11], bx
mov byte [rbp - 0xf], bl
test r15, r15
je 0x140002eb8
test rdi, rdi
je 0x140002eb8
movzx eax, si
mov ecx, r14d
shr ecx, 0x10
mov edx, r14d
mov byte [rsp + 0x32], al
shr eax, 8
mov byte [rsp + 0x33], al
mov eax, esi
shr eax, 0x10
mov byte [rsp + 0x34], al
shr eax, 8
mov byte [rsp + 0x40], cl
mov byte [rbp - 0x6c], cl
mov byte [rsp + 0x35], al
mov eax, ecx
shr eax, 8
shr edx, 8
mov byte [rsp + 0x41], al
mov byte [rbp - 0x6b], al
movzx ecx, r12b
imul ecx, r14d
mov byte [rsp + 0x3e], r14b
mov byte [rsp + 0x3f], dl
mov byte [rbp - 0x6e], r14b
mov byte [rbp - 0x6d], dl
imul ecx, esi
movzx eax, cx
shr ecx, 0x10
mov byte [rbp - 0x60], cl
shr ecx, 8
mov byte [rbp - 0x62], al
shr eax, 8
mov byte [rbp - 0x61], al
mov byte [rbp - 0x5f], cl
test r8d, r8d
jne 0x140002e5f
mov word [rbp - 0x2e], bx
mov byte [rbp - 0x2c], bl
mov r9, r15
lea rcx, [rsp + 0x20]
mov edx, 0xd2
mov r8d, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, 1
jne 0x140002eb8
test r14d, r14d
je 0x140002eb1
movzx r12d, r12b
nop word [rax + rax]
mov r9, r15
mov r8, rsi
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, rsi
jne 0x140002eb8
add rdi, r13
inc ebx
cmp ebx, r14d
jb 0x140002e90
mov eax, 1
jmp 0x140002eba
xor eax, eax
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140003a60
mov rbx, qword [rsp + 0x160]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret