Function at 0x140002760
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov rax, qword [0x140008038]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov eax, dword [rdx]
xor ebx, ebx
mov r15, rcx
cmp eax, 0xc
ja 0x14000279f
mov ecx, 0x17ba
lea r8d, [rbx + 1]
bt ecx, eax
jb 0x1400027a2
mov r8d, ebx
mov r10d, dword [rdx + 4]
lea edi, [r8 + 3]
mov eax, dword [rdx + 0x18]
mov r9d, r8d
mov r14d, dword [rdx + 8]
mov r12, qword [rdx + 0x10]
imul edi, r10d
shl r9d, 4
add r9d, 0x36
mov qword [rsp + 0xe0], r13
mov dword [rbp - 0x49], eax
mov qword [rbp - 3], rbx
mov qword [rbp + 5], rbx
lea esi, [rdi + 3]
and esi, 0xfffffffc
mov edx, esi
imul edx, r14d
lea ecx, [rdx + r9]
test r15, r15
je 0x140002990
test r12, r12
je 0x140002990
movzx eax, cx
mov byte [rbp - 0x37], al
shr eax, 8
mov byte [rbp - 0x36], al
mov eax, r9d
shr eax, 8
mov byte [rbp - 0x2e], al
mov eax, r9d
shr eax, 0x10
mov byte [rbp - 0x2d], al
shr eax, 8
mov byte [rbp - 0x2c], al
shr ecx, 0x10
mov byte [rbp - 0x35], cl
shr ecx, 8
mov byte [rbp - 0x34], cl
lea ecx, [r9 - 0xe]
movzx eax, cx
mov byte [rbp - 0x2b], al
shr eax, 8
mov byte [rbp - 0x2a], al
shr ecx, 0x10
movzx eax, r10w
mov byte [rbp - 0x27], al
shr eax, 8
mov byte [rbp - 0x26], al
shr r10d, 0x10
mov byte [rbp - 0x29], cl
shr ecx, 8
movzx eax, r14w
mov byte [rbp - 0x23], al
shr eax, 8
mov byte [rbp - 0x22], al
mov eax, r14d
shr eax, 0x10
mov byte [rbp - 0x21], al
shr eax, 8
mov byte [rbp - 0x20], al
lea eax, [r8*8 + 0x18]
mov byte [rbp - 0x1d], al
shr eax, 8
mov byte [rbp - 0x1c], al
mov eax, r8d
mov byte [rbp - 0x28], cl
mov byte [rbp - 0x25], r10b
shr r10d, 8
neg eax
mov word [rbp - 0x39], 0x4d42
movzx eax, dx
sbb cl, cl
mov byte [rbp - 0x17], al
shr edx, 0x10
and cl, 3
shr eax, 8
mov byte [rbp - 0x15], dl
shr edx, 8
mov dword [rbp - 0x33], ebx
mov byte [rbp - 0x2f], r9b
mov byte [rbp - 0x24], r10b
mov word [rbp - 0x1f], 1
mov byte [rbp - 0x1b], cl
mov word [rbp - 0x1a], bx
mov byte [rbp - 0x18], bl
mov byte [rbp - 0x16], al
mov byte [rbp - 0x14], dl
mov dword [rbp - 0x13], 0x960
mov qword [rbp - 0xf], 0x960
mov dword [rbp - 7], ebx
test r8d, r8d
je 0x140002901
mov dword [rbp - 3], 0xff0000
mov dword [rbp + 1], 0xff00
mov dword [rbp + 5], 0xff
mov dword [rbp + 9], 0xff000000
mov edx, r9d
lea rcx, [rbp - 0x39]
mov r9, r15
mov r8d, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, 1
jne 0x140002990
test r14d, r14d
je 0x140002989
movsxd rdx, dword [rbp - 0x49]
mov qword [rbp - 0x41], rdx
mov r13d, edi
nop dword [rax]
mov ecx, r14d
mov r9, r15
sub ecx, ebx
mov r8d, 1
dec ecx
imul rcx, rdx
mov rdx, r13
add rcx, r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, 1
jne 0x140002990
cmp esi, edi
je 0x14000297e
xor eax, eax
lea rcx, [rbp - 0x49]
mov edx, esi
mov word [rbp - 0x49], ax
sub edx, edi
mov byte [rbp - 0x47], al
mov r9, r15
lea r8d, [rax + 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, 1
jne 0x140002990
mov rdx, qword [rbp - 0x41]
inc ebx
cmp ebx, r14d
jb 0x140002930
mov eax, 1
jmp 0x140002992
xor eax, eax
mov r13, qword [rsp + 0xe0]
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140003a60
add rsp, 0x90
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret