Function at 0x1400036d0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov esi, r9d
mov r15, r8
test r8, r8
je 0x140003711
nop dword [rax + rax]
mov qword [r15], 0
cmp dword [0x1406ded68], 0xa
jl 0x140003711
mov eax, dword [0x1406ded6c]
lea ebp, [rax - 1]
imul ebp, eax
and ebp, 1
jne 0x1400036f0
call fcn.1400032e0
test rax, rax
je 0x140003961
mov rdi, rax
mov rcx, rax
call fcn.140003550
mov ecx, dword [0x1406ded6c]
lea edx, [rcx - 1]
imul edx, ecx
test dl, 1
sete cl
cmp dword [0x1406ded68], 0xa
setl dl
or dl, cl
cmp rax, 0xffffffffffffffff
je 0x140003968
mov r13, rax
mov ecx, dword [0x1406ded18]
mov eax, dword [0x1406ded1c]
mov dword [rsp + 0x24], esi
movsxd r12, esi
test dl, dl
je 0x14000396e
lea rbp, [r12 + r13]
lea edx, [rcx - 1]
imul edx, ecx
test dl, 1
sete cl
cmp eax, 0xa
setl al
or al, cl
nop dword [rax + rax]
test al, al
je 0x140003790
mov rax, qword [0x1406deb70]
test rax, rax
je 0x1400037a7
add dword [rax + 0xec], 1
mov r14, qword [section..data]
mov rbx, qword [0x1406deb80]
nop word cs:[rax + rax]
nop
mov rcx, rbp
mov rdx, rbx
call r14
mov rsi, rax
mov ecx, dword [0x1406ded18]
mov eax, dword [0x1406ded1c]
cmp eax, 0xa
jl 0x1400037f3
lea edx, [rcx - 1]
imul edx, ecx
and edx, 1
je 0x1400037f3
mov rcx, rbp
mov rdx, rbx
call r14
jmp 0x1400037c0
cmp dword [0x1406ded68], 0xa
jl 0x140003896
mov edx, dword [0x1406ded6c]
lea ebx, [rdx - 1]
imul ebx, edx
and ebx, 1
je 0x140003896
lea edx, [rcx - 1]
imul edx, ecx
test dl, 1
sete cl
cmp eax, 0xa
setl al
or al, cl
nop dword [rax]
test al, al
je 0x140003830
mov rax, qword [0x1406deb70]
test rax, rax
je 0x140003847
add dword [rax + 0xec], 1
mov rbx, qword [section..data]
mov rsi, qword [0x1406deb80]
nop word cs:[rax + rax]
nop
mov rcx, rbp
mov rdx, rsi
call rbx
mov ecx, dword [0x1406ded18]
mov eax, dword [0x1406ded1c]
cmp eax, 0xa
jl 0x140003770
lea edx, [rcx - 1]
imul edx, ecx
and edx, 1
je 0x140003770
mov rcx, rbp
mov rdx, rsi
call rbx
jmp 0x140003860
test rsi, rsi
je 0x140003977
mov edx, 1
mov rcx, rsi
mov r8, r13
mov r9, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, dword [0x1406ded6c]
mov edx, dword [0x1406ded68]
cmp edx, 0xa
jl 0x14000391c
lea ebp, [rcx - 1]
imul ebp, ecx
and ebp, 1
je 0x14000391c
mov rbx, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
nop word cs:[rax + rax]
mov edx, 1
mov rcx, rsi
mov r8, r13
mov r9, rdi
call rbx
mov edx, 1
mov rcx, rsi
mov r8, r13
mov r9, rdi
call rbx
mov ecx, dword [0x1406ded6c]
mov edx, dword [0x1406ded68]
cmp edx, 0xa
jl 0x14000391c
lea ebp, [rcx - 1]
imul ebp, ecx
and ebp, 1
jne 0x1400038e0
cmp rax, r13
jne 0x140003987
cmp dword [rsp + 0x24], 0
jle 0x140003944
mov rcx, r13
add rcx, rsi
xor edx, edx
mov r8, r12
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [0x1406ded6c]
mov edx, dword [0x1406ded68]
cmp edx, 0xa
jl 0x1400039e7
lea eax, [rcx - 1]
imul eax, ecx
and eax, 1
jne 0x140003a0a
jmp 0x1400039e7
xor esi, esi
jmp 0x140003a1d
test dl, dl
jne 0x1400039b7
jmp 0x1400039dc
lea rbp, [r12 + r13]
jmp 0x140003815
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor esi, esi
jmp 0x140003a1d
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1406deb70]
test rax, rax
je 0x1400039a3
add dword [rax + 0xec], 0xffffffff
mov rdx, qword [0x1406deb80]
mov rcx, rsi
call qword [0x1402ad008]
xor esi, esi
jmp 0x140003a1d
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor esi, esi
cmp dword [0x1406ded68], 0xa
jl 0x140003a1d
mov eax, dword [0x1406ded6c]
lea ecx, [rax - 1]
imul ecx, eax
and ecx, 1
je 0x140003a1d
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x1400039b7
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
cmp dword [0x1406ded68], 0xa
jl 0x140003a15
mov eax, dword [0x1406ded6c]
lea ecx, [rax - 1]
imul ecx, eax
and ecx, 1
je 0x140003a15
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x1400039e7
test r15, r15
je 0x140003a1d
mov qword [r15], r13
mov rax, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret