Function at 0x18006b850
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x4a8
mov rax, qword [0x1801eef68]
xor rax, rsp
mov qword [rsp + 0x490], rax
mov r13, rdx
mov qword [rsp + 0x70], r9
mov edx, dword [rsp + 0x510]
mov r15, r8
mov qword [rsp + 0x88], rcx
lea eax, [rdx + 0x268]
mov dword [rsp + 0x68], eax
cmp edx, eax
mov eax, dword [rsp + 0x60]
jae 0x18006bbdd
mov ecx, dword [rsp + 0x60]
xor ebp, ebp
mov r12, qword [rsp + 0x88]
mov r14d, dword [rsp + 0x60]
mov esi, dword [rsp + 0x60]
mov ebx, dword [rsp + 0x60]
mov r8d, dword [rsp + 0x68]
nop word [rax + rax]
cmp edx, 0xb4
ja 0x18006bb59
je 0x18006bb24
sub edx, 0x4b
je 0x18006b8fe
sub edx, 0x36
je 0x18006bb71
cmp edx, 0x22
je 0x18006bbdd
jmp 0x18006bb05
test byte [r9], 1
je 0x18006b973
mov edi, 0xb
nop dword [rax]
mov eax, edi
sub eax, 0xa
je 0x18006b957
cmp eax, 1
jne 0x18006b96a
mov rax, qword [r15]
cmp qword [rax + 0x48], rbp
jne 0x18006b948
xor r9d, r9d
mov qword [rsp + 0x60], rax
lea r8, [rsp + 0x60]
xor ecx, ecx
lea edx, [r9 + 0x77]
call fcn.180069250
mov rcx, rax
test eax, eax
jne 0x18006bbdd
mov rax, qword [r15]
mov r14d, 1
mov r12, qword [rax + 0x48]
jmp 0x18006b96a
mov rdx, qword [r15]
mov rax, qword [rdx + 0x20]
mov esi, dword [rdx + 0x30]
mov ebx, dword [rax + 0x28]
imul esi, ebx
shr ebx, 3
dec edi
cmp edi, 9
ja 0x18006b910
jmp 0x18006b9de
mov edi, 0x1d
mov eax, edi
sub eax, 0x1b
je 0x18006b9ca
sub eax, 1
je 0x18006b9b2
cmp eax, 1
jne 0x18006b9d7
mov rax, qword [r15]
cmp qword [rax + 0x50], rbp
jne 0x18006b9d7
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x60], rax
mov ecx, 3
call fcn.180045370
mov ecx, eax
test eax, eax
jne 0x18006bbdd
jmp 0x18006b9d7
mov rdx, qword [r15]
mov rax, qword [rdx + 0x20]
mov r12, qword [rdx + 0x50]
mov esi, dword [rax + 0x20]
imul esi, dword [rdx + 0x30]
mov r14d, dword [rax + 0x14]
jmp 0x18006b9d7
mov rax, qword [r15]
mov rdx, qword [rax + 0x20]
mov ebx, dword [rdx + 0x20]
shr ebx, 3
dec edi
cmp edi, 0x1a
ja 0x18006b978
test esi, esi
je 0x18006baf9
nop word [rax + rax]
mov edi, 0xbb
nop word [rax + rax]
mov eax, edi
sub eax, 0xbb
je 0x18006bad4
sub eax, 1
je 0x18006ba35
cmp eax, 1
jne 0x18006bae3
test ecx, ecx
jne 0x18006bbb5
lea eax, [rbx*8]
sub esi, eax
lea r14d, [r14 + rbx*8]
jmp 0x18006bae3
mov ecx, dword [r13]
lea rdx, [rsp + 0x90]
mov r8d, ebx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
je 0x18006bbc0
movsxd rax, ebx
cmp rcx, rax
jne 0x18006bbb9
mov dword [rsp + 0x58], 0xcd
lea eax, [rbx*8]
mov dword [rsp + 0x60], eax
lea rdx, [rsp + 0x80]
mov eax, r14d
xor r9d, r9d
mov qword [rsp + 0x78], rax
xor r8d, r8d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x80], r12
mov qword [rsp + 0x50], rax
xor ecx, ecx
mov qword [rsp + 0x48], rbp
lea rax, [rsp + 0x90]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rax
call fcn.180054a30
mov ecx, eax
jmp 0x18006bae3
mov ebx, 0x400
mov eax, esi
shr eax, 3
cmp eax, ebx
cmovb ebx, eax
inc edi
cmp edi, 0xbe
jb 0x18006ba00
test esi, esi
jne 0x18006b9f0
mov eax, ebp
mov r9, qword [rsp + 0x70]
mov r8d, dword [rsp + 0x68]
mov edx, dword [rsp + 0x510]
add edx, 0x58
mov dword [rsp + 0x510], edx
cmp edx, r8d
jb 0x18006b8d0
jmp 0x18006bbdd
mov rdx, qword [r15]
mov r9d, ebp
mov r8, qword [rdx + 0x358]
cmp dword [rdx + 0x314], ebp
jle 0x18006bafb
nop dword [rax]
shr byte [r8], 4
lea r8, [r8 + 1]
mov rdx, qword [r15]
inc r9d
cmp r9d, dword [rdx + 0x314]
jl 0x18006bb40
jmp 0x18006bafb
sub edx, 0x107
je 0x18006bbca
sub edx, 5
je 0x18006bb6d
cmp edx, 0x58
je 0x18006bbdd
jmp 0x18006bb05
mov eax, ebp
jmp 0x18006bb05
mov eax, dword [r9]
lea rdx, [rsp + 0x78]
mov r8, qword [rsp + 0x88]
lea r9, [rsp + 0x80]
mov dword [rsp + 0x60], eax
lea rcx, [rsp + 0x60]
mov eax, dword [r13]
mov qword [rsp + 0x78], rax
mov rax, qword [r15]
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x20], 0x30
call fcn.18004ca50
jmp 0x18006bbdd
mov eax, ecx
jmp 0x18006bbdd
mov eax, 0x7f2bb724
jmp 0x18006bbdd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov eax, dword [rax]
jmp 0x18006bbdd
test r15, r15
je 0x18006bbdb
nop
mov r15, qword [r15 + 0x10]
inc ebp
test r15, r15
jne 0x18006bbd0
mov eax, ebp
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.1800d7250
add rsp, 0x4a8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret