Function at 0x140050b00
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rsi
mov dword [rsp + 0x20], r9d
push rdi
sub rsp, 0x30
mov edx, 1
mov rsi, r8
mov rdi, rcx
mov r9, rcx
lea rcx, str.:_conflicting_types_for__
lea r8d, [rdx + 0x18]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rax
xor ecx, 0x19
jne 0x140050d96
mov qword [rsp + 0x40], rbx
lea edx, [rcx + 1]
mov qword [rsp + 0x48], r14
mov r9, rdi
mov r14, qword [rsp + 0x60]
mov ebx, dword [r14 + 0x30]
mov rcx, qword [r14]
mov r8d, ebx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
xor eax, ebx
mov ecx, eax
jne 0x140050d8c
mov edx, 1
lea rcx, str.__previous_declaration_of__
mov r9, rdi
lea r8d, [rdx + 0x1b]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
xor eax, 0x1c
mov ecx, eax
jne 0x140050d8c
mov ebx, dword [r14 + 0x30]
mov r9, rdi
mov rcx, qword [r14]
mov r8d, ebx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
xor eax, ebx
mov ecx, eax
jne 0x140050d8c
mov edx, 1
lea rcx, str._at
mov r9, rdi
lea r8d, [rdx + 4]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
xor eax, 5
mov ecx, eax
jne 0x140050d8c
mov ecx, dword [r14 + 0x18]
mov r8d, dword [r14 + 0x84]
sub ecx, esi
je 0x140050c07
nop dword [rax]
nop word [rax + rax]
cmp byte [rsi], 0xa
lea eax, [r8 + 1]
lea rsi, [rsi + 1]
cmovne eax, r8d
mov r8d, eax
add ecx, 0xffffffff
jne 0x140050bf0
lea rdx, [fcn.140045140]
mov rcx, rdi
call fcn.140018c00
mov ecx, eax
test eax, eax
jne 0x140050d8c
mov eax, dword [r14 + 0x2c]
cmp eax, 0xffffff7d
je 0x140050d25
cmp eax, 0xffffff7e
je 0x140050d0e
cmp eax, 0xffffff7f
jne 0x140050d8c
lea r8d, [rcx + 0x1f]
mov rcx, rdi
lea rdx, str.___reference_class_changed_for
call fcn.140045140
test eax, eax
jne 0x140050d8a
mov ebx, dword [r14 + 0x20]
lea rdx, [fcn.140045140]
inc ebx
mov rcx, rdi
mov r8d, ebx
call fcn.140018c00
test eax, eax
jne 0x140050d8a
mov eax, 0xcccccccd
mul ebx
mov eax, 0xcccccccd
mov r8d, edx
shr r8d, 3
mul r8d
lea ecx, [r8 + r8*4]
shr edx, 3
add ecx, ecx
sub ebx, ecx
lea eax, [rdx + rdx*4]
add eax, eax
sub r8d, eax
cmp r8d, 1
je 0x140050cd7
cmp ebx, 1
jne 0x140050cbd
mov word [rsp + 0x58], 0x7473
jmp 0x140050cde
cmp ebx, 2
jne 0x140050ccb
mov word [rsp + 0x58], 0x646e
jmp 0x140050cde
mov word [rsp + 0x58], 0x6472
cmp ebx, 3
je 0x140050cde
mov word [rsp + 0x58], 0x6874
mov r8d, 2
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.140045140
test eax, eax
jne 0x140050d8a
lea r8d, [rax + 0xa]
mov rcx, rdi
lea rdx, str._parameter
call fcn.140045140
jmp 0x140050d8a
mov rax, qword [rsp + 0x68]
mov r9, r14
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.140050db0
jmp 0x140050d8a
mov r8d, 0x1e
lea rdx, str.___function_type_changed_from
mov rcx, rdi
call fcn.140045140
test eax, eax
jne 0x140050d8a
mov rbx, qword [rsp + 0x68]
lea rdx, [fcn.140045140]
mov r8d, dword [r14 + 0x20]
mov r9, rbx
mov rcx, rdi
call fcn.14005fdb0
test eax, eax
jne 0x140050d8a
lea r8d, [rax + 4]
mov rcx, rdi
lea rdx, str._to
call fcn.140045140
test eax, eax
jne 0x140050d8a
mov r8d, dword [r14 + 0x24]
lea rdx, [fcn.140045140]
mov r9, rbx
mov rcx, rdi
call fcn.14005fdb0
mov ecx, eax
mov rbx, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, ecx
add rsp, 0x30
pop rdi
ret