Function at 0x140002e60
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r14, rcx
xor r13d, r13d
mov ecx, 0x100000
mov qword [rsp + 0x30], r13
mov r15, rdx
call fcn.140026dd0
mov rbx, rax
test rax, rax
jne 0x140002eb8
call fcn.1400269ec
lea rdx, str.memory_allocation_failure_n
lea rcx, [rax + 0x60]
call fcn.140026c00
jmp 0x1400032b9
lea r8, [0x14004910c]
lea rcx, [rsp + 0x30]
mov rdx, r15
call fcn.140027544
test eax, eax
jne 0x1400032a9
mov r9, qword [rsp + 0x30]
test r9, r9
je 0x1400032a9
lea edx, [rax + 1]
lea r8d, [rax + 0x63]
mov rcx, rbx
call fcn.140027878
cmp rax, 0x63
jb 0x1400032a9
mov rdx, qword [rbx]
lea rcx, [0x140000000]
cmp rdx, qword [rcx + 0x49110]
lea rcx, [rcx + 0x49110]
jne 0x140002f2d
movzx edx, word [rbx + 8]
cmp dx, word [rcx + 8]
jne 0x140002f2d
movzx edx, byte [rbx + 0xa]
cmp dl, byte [rcx + 0xa]
jne 0x140002f2d
mov eax, r13d
jmp 0x140002f32
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x140002f53
call fcn.1400269ec
lea rdx, str._s:_unknown_file_format__expeced__masscan_1.1___n
mov r8, r15
lea rcx, [rax + 0x60]
call fcn.140026c00
jmp 0x1400032b1
cmp byte [rbx + 0xb], 0x2e
jne 0x140002fb6
lea rcx, [rbx + 0xc]
xor r8d, r8d
xor edx, edx
call fcn.140027bd8
cmp eax, 2
jb 0x140002fb6
mov ecx, r13d
mov rax, rbx
movzx edx, byte [rax]
test dl, dl
je 0x140002f88
cmp dl, 0xa
je 0x140002f88
inc ecx
inc rax
cmp ecx, 0x61
jb 0x140002f72
inc ecx
cmp byte [rcx + rbx], 0x73
jne 0x140002f92
inc ecx
cmp byte [rcx + rbx], 0x3a
jne 0x140002f9a
inc ecx
cmp ecx, 0x61
jae 0x140002fb6
add rcx, rbx
xor r8d, r8d
xor edx, edx
call fcn.140027bd8
mov r11d, eax
mov qword [r14 + 0xe8], r11
mov r9, qword [rsp + 0x30]
mov edx, 1
mov rcx, rbx
mov r8d, edx
call fcn.140027878
cmp rax, 1
jne 0x1400032b1
mov r12, qword [rsp + 0xa0]
nop dword [rax]
movzx eax, byte [rbx]
mov esi, eax
and esi, 0x7f
test al, al
jns 0x140003020
nop dword [rax]
mov r9, qword [rsp + 0x30]
mov edx, 1
mov rcx, rbx
mov r8d, edx
call fcn.140027878
cmp rax, 1
jne 0x140003020
movzx edx, byte [rbx]
mov eax, esi
shl eax, 7
mov ecx, edx
and ecx, 0x7f
mov esi, ecx
or esi, eax
test dl, dl
js 0x140002ff0
mov r9, qword [rsp + 0x30]
mov edx, 1
mov rcx, rbx
mov r8d, edx
call fcn.140027878
cmp rax, 1
jne 0x1400032b1
movzx eax, byte [rbx]
mov edi, eax
and edi, 0x7f
test al, al
jns 0x140003080
nop dword [rax + rax]
mov r9, qword [rsp + 0x30]
mov edx, 1
mov rcx, rbx
mov r8d, edx
call fcn.140027878
cmp rax, 1
jne 0x140003080
movzx edx, byte [rbx]
mov eax, edi
shl eax, 7
mov ecx, edx
and ecx, 0x7f
mov edi, ecx
or edi, eax
test dl, dl
js 0x140003050
cmp edi, 0x100000
ja 0x140003292
mov r9, qword [rsp + 0x30]
mov r8d, edi
mov edx, 1
mov rcx, rbx
call fcn.140027878
mov rbp, rax
movsxd rax, edi
cmp rbp, rax
jb 0x1400032b1
lea ecx, [rsi - 1]
cmp ecx, 0x6c
ja case.0x1400030d5.8
lea rdi, [0x140000000]
movzx eax, byte [rdi + rcx + 0x330c]
mov ecx, dword [rdi + rax*4 + 0x32e4]
add rcx, rdi
jmp rcx
cmp dword [r12 + 8], 0
jne case.0x1400030d5.109
mov r9, rbp
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140002820
jmp case.0x1400030d5.109
cmp dword [r12 + 8], 0
jne case.0x1400030d5.109
mov r9, rbp
mov r8, rbx
mov edx, 2
mov rcx, r14
call fcn.140002820
jmp case.0x1400030d5.109
mov r8, rbp
mov rdx, rbx
mov rcx, r14
call fcn.140002b60
jmp case.0x1400030d5.109
mov r9, qword [rsp + 0x30]
mov edx, 1
lea rcx, [rbx + rbp]
mov r8d, edx
call fcn.140027878
cmp rax, 1
jne 0x140003258
lea r8, [rbp + 1]
mov rdx, rbx
mov rcx, r14
call fcn.140002c30
jmp case.0x1400030d5.109
mov r8, rbp
mov rdx, rbx
mov rcx, r14
call fcn.140002c30
jmp case.0x1400030d5.109
cmp dword [r12 + 8], 0
jne case.0x1400030d5.109
mov rax, qword [rsp + 0x98]
mov r9, rbp
mov r8, rbx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x90]
mov edx, 1
mov rcx, r14
mov qword [rsp + 0x20], rax
call fcn.1400029a0
jmp case.0x1400030d5.109
cmp dword [r12 + 8], 0
jne case.0x1400030d5.109
mov rax, qword [rsp + 0x98]
mov r9, rbp
mov r8, rbx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x90]
mov edx, 2
mov rcx, r14
mov qword [rsp + 0x20], rax
call fcn.1400029a0
jmp case.0x1400030d5.109
mov rax, qword [rsp + 0x98]
mov r9, qword [rsp + 0x90]
mov r8, rbp
mov rdx, rbx
mov rcx, r14
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rax
call fcn.140002d20
inc r13
test r13w, r13w
jne 0x140003237
call fcn.1400269ec
lea rdx, str._s:__8llu_r
mov r9, r13
lea rcx, [rax + 0x60]
mov r8, r15
call fcn.140026c00
mov r9, qword [rsp + 0x30]
mov edx, 1
mov rcx, rbx
mov r8d, edx
call fcn.140027878
cmp rax, 1
je 0x140002fe0
jmp 0x1400032b1
call fcn.1400269ec
lea rdx, str.read___error_n
lea rcx, [rax + 0x60]
call fcn.140026c00
mov ecx, 1
call fcn.1400272ac
int3
call fcn.1400269ec
lea rdx, str.file_corrupt:_unknown_type__u_n
mov r8d, esi
lea rcx, [rax + 0x60]
call fcn.140026c00
jmp 0x1400032b1
call fcn.1400269ec
lea rdx, str.file_corrupt_n
lea rcx, [rax + 0x60]
call fcn.140026c00
jmp 0x1400032b1
mov rcx, r15
call fcn.1400273b0
mov rcx, rbx
call fcn.140026d90
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400032c8
call fcn.140027c88
mov rax, r13
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret