Function at 0x140005240
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, qword [rcx]
mov qword [rsp + 0x58], rsi
mov rsi, rcx
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x38], r12
mov r12, rdx
mov edi, r8d
mov r8, qword [rbx + 0x18]
mov rax, r8
mov qword [rsp + 0x30], r13
cmp r8, qword [rbx + 0x10]
jb 0x140005294
mov rcx, qword [rbx + 8]
cmp r8, rcx
je 0x140005294
mov r9, qword [rbx]
sub r8, rcx
mov edx, 1
call fcn.140062110
mov rax, qword [rbx + 8]
mov qword [rbx + 0x18], rax
mov byte [rax], 0x22
mov r13, rdi
inc qword [rbx + 0x18]
test edi, edi
je 0x1400054ca
mov qword [rsp + 0x50], rbp
lea rax, [0x140000000]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
xor r15d, r15d
nop
movzx ebp, byte [r12]
lea r12, [r12 + 1]
mov rbx, qword [rsi]
inc r15
mov r14d, ebp
movzx edi, byte [rbp + rax + 0xaffa0]
mov r8, qword [rbx + 0x18]
mov rax, r8
test dil, dil
je 0x14000547d
cmp r8, qword [rbx + 0x10]
jb 0x140005324
mov rcx, qword [rbx + 8]
cmp r8, rcx
je 0x140005324
mov r9, qword [rbx]
sub r8, rcx
mov edx, 1
call fcn.140062110
mov rax, qword [rbx + 8]
lea rbp, [0x140000000]
movzx edi, byte [r14 + rbp + 0xaffa0]
mov qword [rbx + 0x18], rax
jmp 0x14000532b
lea rbp, [0x140000000]
mov byte [rax], 0x5c
movzx ecx, dil
inc qword [rbx + 0x18]
mov rbx, qword [rsi]
mov r8, qword [rbx + 0x18]
mov rax, r8
cmp r8, qword [rbx + 0x10]
jb 0x140005373
mov r10, qword [rbx + 8]
cmp r8, r10
je 0x140005373
mov r9, qword [rbx]
sub r8, r10
mov edx, 1
mov rcx, r10
call fcn.140062110
mov rax, qword [rbx + 8]
movzx ecx, byte [r14 + rbp + 0xaffa0]
mov qword [rbx + 0x18], rax
mov byte [rax], dil
inc qword [rbx + 0x18]
cmp cl, 0x75
jne 0x1400054ab
mov rbx, qword [rsi]
mov r8, qword [rbx + 0x18]
mov rax, r8
cmp r8, qword [rbx + 0x10]
jb 0x1400053b4
mov rcx, qword [rbx + 8]
cmp r8, rcx
je 0x1400053b4
mov r9, qword [rbx]
sub r8, rcx
mov edx, 1
call fcn.140062110
mov rax, qword [rbx + 8]
mov qword [rbx + 0x18], rax
mov byte [rax], 0x30
inc qword [rbx + 0x18]
mov rbx, qword [rsi]
mov r8, qword [rbx + 0x18]
mov rax, r8
cmp r8, qword [rbx + 0x10]
jb 0x1400053ec
mov rcx, qword [rbx + 8]
cmp r8, rcx
je 0x1400053ec
mov r9, qword [rbx]
sub r8, rcx
mov edx, 1
call fcn.140062110
mov rax, qword [rbx + 8]
mov qword [rbx + 0x18], rax
mov byte [rax], 0x30
mov rax, r14
inc qword [rbx + 0x18]
mov rbx, qword [rsi]
shr rax, 4
mov r8, qword [rbx + 0x18]
movzx edi, byte [rax + rbp + 0xb0210]
mov rax, r8
cmp r8, qword [rbx + 0x10]
jb 0x140005433
mov rcx, qword [rbx + 8]
cmp r8, rcx
je 0x140005433
mov r9, qword [rbx]
sub r8, rcx
mov edx, 1
call fcn.140062110
mov rax, qword [rbx + 8]
mov qword [rbx + 0x18], rax
mov byte [rax], dil
and r14d, 0xf
inc qword [rbx + 0x18]
mov rbx, qword [rsi]
movzx edi, byte [r14 + rbp + 0xb0210]
mov r8, qword [rbx + 0x18]
mov rax, r8
cmp r8, qword [rbx + 0x10]
jb 0x140005478
mov rcx, qword [rbx + 8]
cmp r8, rcx
je 0x140005478
mov r9, qword [rbx]
sub r8, rcx
mov edx, 1
call fcn.140062110
mov rax, qword [rbx + 8]
mov qword [rbx + 0x18], rax
mov byte [rax], dil
jmp 0x1400054a7
cmp r8, qword [rbx + 0x10]
jb 0x1400054a4
mov rcx, qword [rbx + 8]
cmp r8, rcx
je 0x1400054a4
mov r9, qword [rbx]
sub r8, rcx
mov edx, 1
call fcn.140062110
mov rax, qword [rbx + 8]
mov qword [rbx + 0x18], rax
mov byte [rax], bpl
inc qword [rbx + 0x18]
lea rax, [0x140000000]
cmp r15, r13
jb 0x1400052c0
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsi]
mov r13, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x60]
mov r8, qword [rbx + 0x18]
mov rax, r8
mov rsi, qword [rsp + 0x58]
cmp r8, qword [rbx + 0x10]
jb 0x14000550f
mov rcx, qword [rbx + 8]
cmp r8, rcx
je 0x14000550f
mov r9, qword [rbx]
sub r8, rcx
mov edx, 1
call fcn.140062110
mov rax, qword [rbx + 8]
mov qword [rbx + 0x18], rax
mov byte [rax], 0x22
mov al, 1
inc qword [rbx + 0x18]
add rsp, 0x40
pop rbx
ret