Function at 0x140127480
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rsp + 0xa0]
mov rsi, qword [rcx + 0x1c0]
mov r12d, dword [rsp + 0xa8]
mov r14, qword [rsp + 0xb0]
mov ebx, dword [rsp + 0xb8]
mov qword [rsp + 0x20], rax
mov r13, rcx
mov rdi, rdx
mov rbp, r8
mov rax, qword [rcx + 0x218]
mov dword [rsp + 0x28], r9d
lea rcx, [0x14020fd42]
test rax, rax
je 0x1401274ec
mov rcx, r13
mov rdx, qword [r13 + 0x220]
call rax
mov rcx, qword [rax + 0x10]
mov rdx, rsi
call fcn.1401deb18
test ebx, ebx
jle 0x140127690
movsxd rdx, ebx
xor r15d, r15d
movzx eax, byte [r14 + rdx - 1]
cmp al, 0xa
je 0x140127610
cmp al, 0xd
je 0x1401275c8
mov edx, dword [rsp + 0x28]
mov dword [rsp + 0x2c], 0
test edx, edx
jne 0x1401276c0
test rdi, rdi
je 0x140127700
mov rdx, rsi
mov rcx, rdi
call fcn.1401deb18
test r12d, r12d
jne 0x140127778
test ebx, ebx
je 0x140127750
mov r12d, dword [rsp + 0x2c]
test rbp, rbp
je 0x14012757d
cmp rdi, rbp
je 0x14012756d
mov rcx, qword [rsp + 0x20]
mov rdx, rsi
call fcn.1401deb18
mov r12d, dword [rsp + 0x2c]
mov rdx, rsi
mov rcx, rbp
call fcn.1401deb18
movsxd rdx, ebx
mov r9, rsi
mov r8d, 1
mov rcx, r14
call sub.msvcrt.dll_fwrite
mov rcx, qword [rsp + 0x20]
mov rdx, rsi
call fcn.1401deb18
test r12d, r12d
jne 0x140127678
test r15d, r15d
jne 0x140127656
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
sub ebx, 1
mov eax, ebx
or eax, r12d
je 0x140127678
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x2c], 1
test eax, eax
jne 0x1401276c0
test rdi, rdi
jne 0x140127535
test r12d, r12d
jne 0x1401277b0
mov r12d, dword [rsp + 0x2c]
test ebx, ebx
je 0x14012759e
jmp 0x140127709
sub ebx, 1
jne 0x140127760
test r12d, r12d
je 0x140127656
mov ecx, dword [rsp + 0x28]
test ecx, ecx
jne 0x1401277c0
test rdi, rdi
je 0x140127790
mov rdx, rsi
mov rcx, rdi
call fcn.1401deb18
mov rdx, rsi
mov ecx, r12d
call sub.msvcrt.dll_fputc
mov rcx, qword [rsp + 0x20]
mov rdx, rsi
call fcn.1401deb18
mov rdx, rsi
mov ecx, 0xa
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sub.msvcrt.dll_fputc
mov rdx, rsi
mov ecx, 0xd
call sub.msvcrt.dll_fputc
jmp 0x1401275a7
mov eax, ebx
xor r15d, r15d
mov dword [rsp + 0x2c], 0
or eax, r12d
je 0x1401275b0
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x1401275ea
nop word cs:[rax + rax]
nop dword [rax]
mov edx, dword [r13 + 0xfc]
mov ecx, 1
call fcn.140105780
test eax, eax
jne 0x140127720
test rdi, rdi
jne 0x140127535
test r12d, r12d
jne 0x1401277a0
mov r12d, dword [rsp + 0x2c]
test ebx, ebx
je 0x14012759e
mov r12d, dword [rsp + 0x2c]
jmp 0x140127709
test r12d, r12d
jne 0x1401277b0
test rbp, rbp
jne 0x140127572
jmp 0x14012757d
mov r9, rsi
mov r8d, 4
mov edx, 1
lea rcx, str.e_7m
call sub.msvcrt.dll_fwrite
test rdi, rdi
jne 0x140127535
test r12d, r12d
jne 0x1401277d8
test ebx, ebx
jne 0x1401276f4
mov r12d, dword [rsp + 0x2c]
jmp 0x140127591
movzx eax, byte [r14 + rdx - 2]
mov r15d, 1
jmp 0x140127510
mov rdx, rsi
mov ecx, r12d
call sub.msvcrt.dll_fputc
jmp 0x140127549
mov rdx, rsi
mov ecx, r12d
call sub.msvcrt.dll_fputc
jmp 0x140127656
mov rdx, rsi
mov ecx, r12d
call sub.msvcrt.dll_fputc
jmp 0x1401276e7
mov rdx, rsi
mov ecx, r12d
call sub.msvcrt.dll_fputc
jmp 0x1401275fc
mov dword [rsp + 0x2c], 0
mov r15d, 1
jmp 0x1401276c0
mov rdx, rsi
mov ecx, r12d
call sub.msvcrt.dll_fputc
jmp 0x14012774c