Function at 0x499570
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov eax, dword [0x0056b178]
mov r9d, dword [0x0056b07c]
mov r10d, eax
sub r10d, 0x454af141
sub r10d, 1
add r10d, 0x454af141
imul eax, r10d
and eax, 1
cmp eax, 0
sete r11b
cmp r9d, 0xa
setl bl
mov sil, r11b
and sil, bl
xor r11b, bl
or sil, r11b
test sil, 1
mov qword [rbp], r8
mov qword [rbp - 8], rdx
mov qword [rbp - 0x10], rcx
jne 0x4995e3
jmp 0x49975d
mov eax, 0x10
mov qword [rbp - 0x18], rax
call fcn.0055ed60
sub rsp, rax
mov rax, rsp
mov rcx, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, rcx
call fcn.0055ed60
sub rsp, rax
mov rax, rsp
mov rcx, qword [rbp - 0x18]
mov qword [rbp - 0x28], rax
mov rax, rcx
call fcn.0055ed60
sub rsp, rax
mov rax, rsp
mov rcx, qword [rbp - 0x18]
mov qword [rbp - 0x30], rax
mov rax, rcx
call fcn.0055ed60
sub rsp, rax
mov rax, rsp
mov rcx, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov rax, rcx
call fcn.0055ed60
sub rsp, rax
mov rax, rsp
mov rcx, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x10]
mov qword [rcx], rdx
mov r8, qword [rbp - 0x28]
mov r9, qword [rbp - 8]
mov qword [r8], r9
mov r10, qword [rbp - 0x30]
mov r11, qword [rbp]
mov qword [r10], r11
mov rsi, qword [rbp - 0x38]
mov qword [rsi], 0
mov rcx, qword [r8]
mov r8, qword [r10]
mov rdi, qword [rbp - 0x20]
mov r9, qword [rdi]
sub rsp, 0x20
mov edx, 1
mov qword [rbp - 0x40], rax
call sub.msvcrt.dll_fwrite
add rsp, 0x20
mov rcx, qword [rbp - 0x38]
mov qword [rcx], rax
mov rax, qword [rbp - 0x40]
mov dword [rax], 0
mov rdx, qword [rbp - 0x20]
mov rcx, qword [rdx]
sub rsp, 0x20
call sub.msvcrt.dll_fflush
add rsp, 0x20
mov rcx, qword [rbp - 0x40]
mov dword [rcx], eax
mov eax, dword [0x0056b178]
mov ebx, dword [0x0056b07c]
mov r14d, eax
add r14d, 0x15f14166
sub r14d, 1
sub r14d, 0x15f14166
imul eax, r14d
and eax, 1
cmp eax, 0
sete r15b
cmp ebx, 0xa
setl r12b
mov r13b, r15b
xor r13b, 0xff
mov al, r12b
xor al, 0xff
mov dl, 1
xor dl, 1
mov r8b, r13b
and r8b, 0xff
and r15b, dl
mov r9b, al
and r9b, 0xff
and r12b, dl
or r8b, r15b
or r9b, r12b
xor r8b, r9b
or r13b, al
xor r13b, 0xff
or dl, 1
and r13b, dl
or r8b, r13b
test r8b, 1
jne 0x49974c
jmp 0x49975d
lea rsp, [rbp + 8]
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov eax, 0x10
mov qword [rbp - 0x48], rax
call fcn.0055ed60
sub rsp, rax
mov rax, rsp
mov rcx, qword [rbp - 0x48]
mov qword [rbp - 0x50], rax
mov rax, rcx
call fcn.0055ed60
sub rsp, rax
mov rax, rsp
mov rcx, qword [rbp - 0x48]
mov qword [rbp - 0x58], rax
mov rax, rcx
call fcn.0055ed60
sub rsp, rax
mov rax, rsp
mov rcx, qword [rbp - 0x48]
mov qword [rbp - 0x60], rax
mov rax, rcx
call fcn.0055ed60
sub rsp, rax
mov rax, rsp
mov rcx, qword [rbp - 0x48]
mov qword [rbp - 0x68], rax
mov rax, rcx
call fcn.0055ed60
sub rsp, rax
mov rax, rsp
mov rcx, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x10]
mov qword [rcx], rdx
mov r8, qword [rbp - 0x58]
mov r9, qword [rbp - 8]
mov qword [r8], r9
mov r10, qword [rbp - 0x60]
mov r11, qword [rbp]
mov qword [r10], r11
mov rsi, qword [rbp - 0x68]
mov qword [rsi], 0
mov rcx, qword [r8]
mov r8, qword [r10]
mov rdi, qword [rbp - 0x50]
mov r9, qword [rdi]
sub rsp, 0x20
mov edx, 1
mov qword [rbp - 0x70], rax
call sub.msvcrt.dll_fwrite
add rsp, 0x20
mov rcx, qword [rbp - 0x68]
mov qword [rcx], rax
mov rax, qword [rbp - 0x70]
mov dword [rax], 0
mov rdx, qword [rbp - 0x50]
mov rcx, qword [rdx]
sub rsp, 0x20
call sub.msvcrt.dll_fflush
add rsp, 0x20
mov rcx, qword [rbp - 0x70]
mov dword [rcx], eax
jmp 0x4995e3