Function at 0x4995cc
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x188
lea rbp, [rsp + 0x80]
mov rsi, rcx
mov rcx, qword [0x005100f8]
test rcx, rcx
je 0x49997a
lea rdx, [0x0049c2ff]
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x49997a
lea r15, [0x0049c301]
lea r13, [0x0049c304]
xor ebx, ebx
xor edi, edi
or r14, 0xffffffffffffffff
mov r12, qword [rsi + rbx*8]
mov edx, ebx
lea r9, [rbx*8]
test r12, r12
je 0x499698
mov rdx, r15
mov rcx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x49997a
cmp byte [r12], 0x2d
jne 0x499667
cmp byte [r12 + 1], 0x6f
jne 0x499667
inc r14d
jne 0x49997a
movsxd r14, ebx
jmp 0x499693
mov rdx, r13
mov rcx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x49968e
lea rdx, [0x0049c30b]
mov rcx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x499693
jmp 0x49997a
mov edi, 1
inc rbx
jmp 0x499624
cmp r14d, 0xffffffff
je 0x49997a
test edi, edi
je 0x49997a
lea r13, [rbp - 0x30]
xor eax, eax
lea r12d, [rbx + 4]
mov ecx, 0xc
mov rdi, r13
movsxd r12, r12d
rep stosd dword [rdi], eax
shl r12, 3
lea rax, [r12 + 0x1e]
and rax, 0xfffffffffffffff0
call fcn.00487db0
sub rsp, rax
lea rax, str._frandom_seed0
lea rcx, [r12 - 0x18]
lea rbx, [rsp + 0x30]
shl r14, 3
mov rdi, rbx
rep movsb byte [rdi], byte [rsi]
mov qword [rbx + r9], rax
lea eax, [rdx + 2]
mov dword [rbp - 0x4c], eax
lea rax, [0x0049c329]
mov qword [rbx + r12 - 0x18], rax
lea rax, [rbx + r12 - 0x10]
mov qword [rax], 0
mov qword [rbp - 0x48], rax
lea rax, [rbx + r14]
mov rdx, qword [rax]
cmp byte [rdx + 2], 0
jne 0x499731
lea rax, [0x0049c2ff]
mov qword [rbx + r14 + 8], rax
jmp 0x49973b
lea rdi, [0x0049c337]
mov qword [rax], rdi
lea rdi, str..out
lea rsi, str..err
xor r14d, r14d
mov rcx, rdi
call fcn.00478e72
mov rcx, rsi
mov qword [r13 + r14*8], rax
call fcn.00478e72
xor r9d, r9d
mov rdx, qword [r13 + r14*8]
cmp r14d, 2
sete r9b
mov qword [r13 + r14*8 + 0x18], rax
mov r8, rax
mov dword [rsp + 0x20], r9d
mov rcx, rbx
call fcn.0049938b
cmp eax, 2
jne 0x4997a5
inc r14
cmp r14, 3
jne 0x49974c
mov rdx, qword [rbp - 0x28]
mov rcx, qword [rbp - 0x30]
call fcn.004994a6
test al, al
jne 0x4997c0
call qword [sym.imp.msvcrt.dll___iob_func]
lea rdx, str.The_bug_is_not_reproducible__so_it_is_likely_a_hardware_or_OS_problem._n
lea rcx, [rax + 0x60]
call fcn.00424db0
jmp 0x499955
mov rdx, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x18]
call fcn.004994a6
test al, al
mov r15b, al
je 0x4997a5
mov rax, qword [rbp - 8]
mov rsi, qword [rbp - 0x20]
lea rdx, [0x0049c3f0]
mov r14, rbp
mov rcx, rax
mov qword [rbp - 0x38], rax
call sub.msvcrt.dll_fopen
lea rdx, [0x0049c3f3]
mov rcx, rsi
mov qword [rbp - 0x40], rax
call sub.msvcrt.dll_fopen
mov rdi, rax
mov r8, qword [rbp - 0x40]
mov edx, 0x100
mov rcx, r14
call sub.msvcrt.dll_fgets
test rax, rax
je 0x49985e
test r15b, r15b
je 0x49983d
lea rcx, [0x0049c390]
mov r9, rdi
mov r8d, 3
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rdx, rdi
mov rcx, r14
call sub.msvcrt.dll_fputs
mov edx, 0xa
mov rcx, r14
call sub.msvcrt.dll_strchr
test rax, rax
setne r15b
jmp 0x499808
mov rcx, qword [rbp - 0x40]
call sub.msvcrt.dll_fclose
mov rcx, rdi
call sub.msvcrt.dll_fclose
mov edx, 0xa
mov rcx, rsi
call sub.msvcrt.dll__open_1
test eax, eax
mov r15d, eax
js 0x499955
lea rdx, [0x0049c394]
mov r8d, 3
mov ecx, eax
xor r14d, r14d
call sub.msvcrt.dll__write
lea rdx, [0x0049c0dc]
mov r8d, 1
mov ecx, r15d
call sub.msvcrt.dll__write
mov rdx, qword [rbx + r14*8]
xor eax, eax
or rcx, 0xffffffffffffffff
inc r14
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8d, [rcx - 1]
mov ecx, r15d
call sub.msvcrt.dll__write
cmp dword [rbp - 0x4c], r14d
jg 0x49989e
lea rdx, [0x0049c398]
mov r8d, 2
mov ecx, r15d
lea rdi, [0x0049c301]
call sub.msvcrt.dll__write
mov ecx, r15d
call sub.msvcrt.dll__close_1
mov rax, qword [rbp - 0x48]
mov r8, qword [rbp - 0x38]
xor r9d, r9d
mov rdx, rsi
mov rcx, rbx
mov qword [rax], rdi
mov qword [rbx + r12 - 8], 0
mov dword [rsp + 0x20], 1
call fcn.0049938b
dec eax
jne 0x499955
call qword [sym.imp.msvcrt.dll___iob_func]
lea rdx, str.Preprocessed_source_stored_into__s_file__please_attach_this_to_your_bugreport._n
lea rcx, [rax + 0x60]
mov r8, rsi
call fcn.00424db0
mov rcx, rsi
call fcn.00494cb8
mov qword [rbp - 0x20], 0
xor ebx, ebx
mov rsi, qword [r13 + rbx*8]
test rsi, rsi
je 0x499971
mov rcx, rsi
call sub.msvcrt.dll__unlink
mov rcx, rsi
call fcn.00494cb8
inc rbx
cmp rbx, 6
jne 0x499957
lea rsp, [rbp + 0x108]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret