Function at 0x14015a6b0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
mov rbp, qword [rsp + 0xe8]
movsxd rax, edx
mov dword [rsp + 0xc8], edx
mov r13, rcx
mov edi, r8d
add rax, rcx
mov byte [rsp + 0x4d], r9b
mov qword [rsp + 0x28], rax
cmp rcx, rax
je 0x14015ac98
mov eax, r9d
xor r15d, r15d
and edi, 7
and eax, 1
mov byte [rsp + 0x4c], al
mov eax, r8d
and eax, 8
mov dword [rsp + 0x34], eax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov eax, r15d
mov r15, rcx
mov r14d, eax
movzx esi, byte [rsp + 0x4c]
mov eax, 0
shl esi, 5
cmp r13, r15
cmovne esi, eax
cmp edi, 2
je 0x14015aa88
jg 0x14015a830
test edi, edi
je 0x14015aa58
cmp edi, 1
jne 0x14015a940
movzx r9d, byte [r15]
add r15, 1
mov dword [rsp + 0x58], r9d
cmp qword [rsp + 0x28], r15
je 0x14015a853
mov eax, dword [rsp + 0x34]
test eax, eax
jne 0x14015a86c
cmp r9d, 0xffff
ja 0x14015aaa8
cmp r9d, 0xff
ja 0x14015ab50
or sil, byte [rsp + 0x4d]
mov byte [rsp + 0x5f], r9b
mov eax, esi
and eax, 4
test r9b, r9b
js 0x14015ab08
movsxd rax, r9d
lea rbx, [0x1404c9600]
movzx ecx, byte [rbx + rax]
and ecx, esi
mov eax, ecx
test al, 0x61
je 0x14015ab00
test al, 8
jne 0x14015abf0
test rbp, rbp
je 0x14015a811
mov r9, rbp
mov r8d, 1
mov edx, 1
lea rcx, [0x1404c9560]
call sub.msvcrt.dll_fwrite
cmp rax, 1
jne 0x14015a940
lea rcx, [rsp + 0x5f]
mov r9, rbp
mov r8d, 1
mov edx, 1
call sub.msvcrt.dll_fwrite
cmp rax, 1
jne 0x14015a940
mov eax, 2
add r14d, eax
cmp qword [rsp + 0x28], r15
jne 0x14015a71b
mov r15d, r14d
jmp 0x14015a946
cmp edi, 4
jne 0x14015a940
mov r9d, dword [r15]
add r15, 4
bswap r9d
mov dword [rsp + 0x58], r9d
cmp qword [rsp + 0x28], r15
jne 0x14015a766
mov eax, 0x40
cmp byte [rsp + 0x4c], 0
cmovne esi, eax
mov eax, dword [rsp + 0x34]
test eax, eax
je 0x14015a772
lea rbx, [rsp + 0x5f]
mov r8d, r9d
mov edx, 6
mov rcx, rbx
call fcn.14017b270
test eax, eax
jle 0x14015a819
or sil, byte [rsp + 0x4d]
sub eax, 1
mov qword [rsp + 0xe8], rbp
mov ebp, r14d
mov edx, esi
mov ecx, esi
lea r12, [rsp + rax + 0x60]
mov r14, r13
and edx, 4
and ecx, 0xf
lea rax, [rsp + 0x57]
mov dword [rsp + 0x48], edi
mov byte [rsp + 0x4e], dl
lea rdx, [rsp + 0x65]
mov r13, qword [rsp + 0xe8]
mov rdi, rax
mov byte [rsp + 0x4f], cl
mov qword [rsp + 0x40], rdx
movzx eax, byte [rbx]
mov byte [rsp + 0x57], al
test al, al
js 0x14015a9a0
movzx edx, al
lea r10, [0x1404c9600]
movzx r9d, al
movzx ecx, byte [r10 + rdx]
and ecx, esi
mov edx, ecx
test cl, 0x61
je 0x14015aba0
and edx, 8
je 0x14015aa00
cmp qword [rsp + 0xe0], 0
je 0x14015a91e
mov rax, qword [rsp + 0xe0]
mov byte [rax], 1
test r13, r13
je 0x14015a960
mov r9, r13
mov r8d, 1
mov edx, 1
mov rcx, rdi
call sub.msvcrt.dll_fwrite
cmp rax, 1
je 0x14015a960
nop
mov r15d, 0xffffffff
mov eax, r15d
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov eax, 1
add rbx, 1
add ebp, eax
cmp r12, rbx
jne 0x14015a8d0
mov qword [rsp + 0xe8], r13
mov edi, dword [rsp + 0x48]
mov r13, r14
mov r14d, ebp
mov rbp, qword [rsp + 0xe8]
cmp qword [rsp + 0x28], r15
jne 0x14015a71b
jmp 0x14015a824
cmp byte [rsp + 0x4e], 0
movzx r9d, al
je 0x14015a91e
mov rcx, qword [rsp + 0x40]
lea r8, [0x1404c9562]
mov edx, 0xb
call fcn.1400b5e20
test r13, r13
je 0x14015a9ec
mov rcx, qword [rsp + 0x40]
mov r9, r13
mov r8d, 3
mov edx, 1
call sub.msvcrt.dll_fwrite
cmp rax, 3
jne 0x14015a940
mov eax, 3
jmp 0x14015a965
test r13, r13
je 0x14015aa49
mov r9, r13
mov r8d, 1
mov edx, 1
lea rcx, [0x1404c9560]
call sub.msvcrt.dll_fwrite
cmp rax, 1
jne 0x14015a940
mov r9, r13
mov r8d, 1
mov edx, 1
mov rcx, rdi
call sub.msvcrt.dll_fwrite
cmp rax, 1
jne 0x14015a940
mov eax, 2
jmp 0x14015a965
mov r8, qword [rsp + 0x38]
mov edx, dword [rsp + 0xc8]
mov rcx, r15
call fcn.14017af40
test eax, eax
js 0x14015a940
cdqe
mov r9d, dword [rsp + 0x58]
add r15, rax
jmp 0x14015a75b
movzx r9d, word [r15]
add r15, 2
rol r9w, 8
movzx r9d, r9w
mov dword [rsp + 0x58], r9d
jmp 0x14015a75b
lea r12, [rsp + 0x65]
lea r8, str.W_08lX
mov edx, 0xb
mov rcx, r12
call fcn.1400b5e20
test rbp, rbp
je 0x14015aae6
mov r9, rbp
mov r8d, 0xa
mov edx, 1
mov rcx, r12
call sub.msvcrt.dll_fwrite
cmp rax, 0xa
jne 0x14015a940
mov eax, 0xa
add r14d, eax
cmp qword [rsp + 0x28], r15
jne 0x14015a71b
jmp 0x14015a824
and eax, 6
nop dword [rax + rax]
test al, al
jne 0x14015ac50
cmp r9d, 0x5c
je 0x14015ac10
test rbp, rbp
je 0x14015ab41
lea rcx, [rsp + 0x5f]
mov r9, rbp
mov r8d, 1
mov edx, 1
call sub.msvcrt.dll_fwrite
cmp rax, 1
jne 0x14015a940
mov eax, 1
jmp 0x14015aaeb
lea r12, [rsp + 0x65]
lea r8, str.U_04lX
mov edx, 0xb
mov rcx, r12
call fcn.1400b5e20
test rbp, rbp
je 0x14015ab8e
mov r9, rbp
mov r8d, 6
mov edx, 1
mov rcx, r12
call sub.msvcrt.dll_fwrite
cmp rax, 6
jne 0x14015a940
mov eax, 6
jmp 0x14015aaeb
and edx, 6
jne 0x14015a9af
cmp al, 0x5c
jne 0x14015a91e
cmp byte [rsp + 0x4f], 0
je 0x14015a91e
test r13, r13
je 0x14015aa49
mov r9, r13
mov r8d, 2
mov edx, 1
lea rcx, [0x1404c9568]
call sub.msvcrt.dll_fwrite
cmp rax, 2
jne 0x14015a940
jmp 0x14015aa49
cmp qword [rsp + 0xe0], 0
je 0x14015ab1a
mov rax, qword [rsp + 0xe0]
mov byte [rax], 1
jmp 0x14015ab1a
and esi, 0xf
je 0x14015ab1a
test rbp, rbp
je 0x14015a811
mov r9, rbp
mov r8d, 2
mov edx, 1
lea rcx, [0x1404c9568]
call sub.msvcrt.dll_fwrite
cmp rax, 2
jne 0x14015a940
jmp 0x14015a811
lea r12, [rsp + 0x65]
lea r8, [0x1404c9562]
mov edx, 0xb
mov rcx, r12
call fcn.1400b5e20
test rbp, rbp
je 0x14015ac8e
mov r9, rbp
mov r8d, 3
mov edx, 1
mov rcx, r12
call sub.msvcrt.dll_fwrite
cmp rax, 3
jne 0x14015a940
mov eax, 3
jmp 0x14015aaeb
xor r15d, r15d
jmp 0x14015a946