Function at 0x1800104f0
Capabilities:
Read file on windows

Disassembly:
push rbp
push r15
sub rsp, 0x88
cmp byte [rcx + 0x12834], 0
mov rbp, rcx
jne 0x180010546
mov r9, qword [rcx + 8]
mov edx, 4
lea r15, [rcx + 0x18]
lea r8d, [rdx - 3]
mov rcx, r15
call fcn.18001bd74
cmp rax, 1
jae 0x180010598
lea rdx, [0x180039c98]
lea rcx, [rsp + 0xa0]
mov dword [rsp + 0xa0], 1
call fcn.18001ecac
int3
cmp dword [rcx + 0x12878], 4
jae 0x18001056f
lea rdx, [0x180039c98]
lea rcx, [rsp + 0xa0]
mov dword [rsp + 0xa0], 1
call fcn.18001ecac
int3
movsxd r8, dword [rcx + 0x1287c]
mov rax, qword [rcx + 0x12870]
lea r15, [rcx + 0x18]
mov edx, dword [r8 + rax]
lea eax, [r8 + 4]
mov dword [r15], edx
mov dword [rcx + 0x12868], edx
mov dword [rcx + 0x1287c], eax
cmp dword [r15], 0
je 0x18001097d
mov rcx, rbp
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x60], r14
call fcn.18000fc20
mov rcx, rbp
call fcn.18000f780
mov r14d, 0xfc4
lea rcx, [rbp + 0x24]
mov r8, r14
mov dl, 0x20
mov qword [rsp + 0xb0], r14
call fcn.18001ea20
xor esi, esi
mov dword [rsp + 0xa8], esi
cmp dword [r15], esi
jbe 0x180010970
mov qword [rsp + 0xb8], rbx
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x68], r13
mov rcx, rbp
call fcn.18000fcc0
cmp eax, 0x100
mov r12d, eax
jge 0x18001077c
cmp byte [rbp + 0x12834], 0
jne 0x180010633
mov rdx, qword [rbp + 0x10]
mov ecx, eax
call fcn.18001b15c
jmp 0x180010754
mov rcx, qword [rbp + 0x12850]
mov byte [rsp + 0xa0], al
test rcx, rcx
jne 0x18001064a
xor edx, edx
jmp 0x180010654
mov rdx, qword [rbp + 0x12860]
sub rdx, rcx
mov rdi, qword [rbp + 0x12858]
mov rax, rdi
sub rax, rcx
cmp rax, rdx
jae 0x180010679
lea rax, [rdi + 1]
mov byte [rdi], r12b
mov qword [rbp + 0x12858], rax
jmp 0x180010754
cmp rcx, rdi
jbe 0x180010683
call fcn.18001ab44
mov rcx, qword [rbp + 0x12858]
mov r13, qword [rbp + 0x12850]
mov rsi, qword [rbp + 0x12838]
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], rdi
cmp rcx, r13
jne 0x1800106ab
xor edi, edi
jmp 0x1800106cb
cmp r13, rcx
jbe 0x1800106b5
call fcn.18001ab44
test rsi, rsi
je 0x1800106c3
cmp rsi, qword [rbp + 0x12838]
je 0x1800106c8
call fcn.18001ab44
sub rdi, r13
movaps xmm0, xmmword [rsp + 0x20]
lea r9, [rsp + 0xa0]
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x12838]
mov r8d, 1
movdqa xmmword [rsp + 0x40], xmm0
call fcn.180010d30
mov rsi, qword [rbp + 0x12850]
cmp rsi, qword [rbp + 0x12858]
jbe 0x18001070a
call fcn.18001ab44
mov rbx, qword [rbp + 0x12838]
test rbx, rbx
jne 0x180010720
call fcn.18001ab44
xor r11d, r11d
jmp 0x180010723
mov r11, qword [rbx]
lea rcx, [rsi + rdi]
cmp rcx, qword [r11 + 0x20]
ja 0x18001073f
test rbx, rbx
je 0x180010737
mov rax, qword [rbx]
jmp 0x180010739
xor eax, eax
cmp rcx, qword [rax + 0x18]
jae 0x18001074d
call fcn.18001ab44
mov esi, dword [rsp + 0xa8]
jmp 0x180010754
mov esi, dword [rsp + 0xa8]
movsxd rax, r14d
inc r14d
and r14d, 0xfff
inc esi
mov byte [rax + rbp + 0x24], r12b
mov dword [rsp + 0xa8], esi
mov qword [rsp + 0xb0], r14
jmp 0x180010941
mov rcx, rbp
call fcn.18000fea0
mov ecx, r14d
sub ecx, eax
lea eax, [r12 - 0xfd]
dec ecx
and ecx, 0xfff
test eax, eax
jle 0x180010941
mov r12, qword [rsp + 0xb0]
add esi, eax
movsxd r14, ecx
mov dword [rsp + 0xa8], esi
mov r15d, eax
nop dword [rax + rax]
mov rax, r14
and eax, 0xfff
cmp byte [rbp + 0x12834], 0
movzx r13d, byte [rax + rbp + 0x24]
jne 0x1800107e8
mov rdx, qword [rbp + 0x10]
mov ecx, r13d
call fcn.18001b15c
jmp 0x18001090c
mov rdx, qword [rbp + 0x12850]
mov byte [rsp + 0xa0], r13b
test rdx, rdx
jne 0x180010800
xor ecx, ecx
jmp 0x18001080a
mov rcx, qword [rbp + 0x12860]
sub rcx, rdx
mov rdi, qword [rbp + 0x12858]
mov rax, rdi
sub rax, rdx
cmp rax, rcx
jae 0x18001082f
lea rax, [rdi + 1]
mov byte [rdi], r13b
mov qword [rbp + 0x12858], rax
jmp 0x18001090c
cmp rdx, rdi
jbe 0x180010839
call fcn.18001ab44
mov rcx, qword [rbp + 0x12858]
mov r12, qword [rbp + 0x12850]
mov rsi, qword [rbp + 0x12838]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rdi
cmp rcx, r12
jne 0x180010861
xor edi, edi
jmp 0x180010881
cmp r12, rcx
jbe 0x18001086b
call fcn.18001ab44
test rsi, rsi
je 0x180010879
cmp rsi, qword [rbp + 0x12838]
je 0x18001087e
call fcn.18001ab44
sub rdi, r12
movaps xmm0, xmmword [rsp + 0x30]
lea r9, [rsp + 0xa0]
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x12838]
mov r8d, 1
movdqa xmmword [rsp + 0x50], xmm0
call fcn.180010d30
mov rsi, qword [rbp + 0x12850]
cmp rsi, qword [rbp + 0x12858]
jbe 0x1800108c0
call fcn.18001ab44
mov rbx, qword [rbp + 0x12838]
test rbx, rbx
jne 0x1800108d6
call fcn.18001ab44
xor r11d, r11d
jmp 0x1800108d9
mov r11, qword [rbx]
lea rcx, [rsi + rdi]
cmp rcx, qword [r11 + 0x20]
ja 0x1800108f5
test rbx, rbx
je 0x1800108ed
mov rax, qword [rbx]
jmp 0x1800108ef
xor eax, eax
cmp rcx, qword [rax + 0x18]
jae 0x180010904
call fcn.18001ab44
mov r12, qword [rsp + 0xb0]
jmp 0x18001090c
mov r12, qword [rsp + 0xb0]
movsxd rax, r12d
inc r12d
inc r14
and r12d, 0xfff
sub r15, 1
mov byte [rax + rbp + 0x24], r13b
mov qword [rsp + 0xb0], r12
jne 0x1800107c0
mov esi, dword [rsp + 0xa8]
mov r14, r12
lea r15, [rbp + 0x18]
mov eax, dword [rbp + 0x20]
cmp esi, eax
jbe 0x180010950
add eax, 0x400
mov dword [rbp + 0x20], eax
cmp esi, dword [r15]
jb 0x180010604
mov r13, qword [rsp + 0x68]
mov r12, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0xb8]
mov rsi, qword [rsp + 0x80]
mov r14, qword [rsp + 0x60]
add rsp, 0x88
pop r15
pop rbp
ret