Function at 0x14005fd60
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x38
xor r13d, r13d
mov r14d, 1
mov rbx, rcx
mov edi, r14d
cmp byte [rcx], r13b
je 0x14005fdb1
mov rcx, qword [rcx + 8]
lea r9, [rax + 0x18]
mov r8d, r14d
mov qword [rax - 0x48], r13
lea rdx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14005fda8
mov byte [rbx + 0x10], dil
mov ebp, dword [rsp + 0x80]
jmp 0x14005fdde
mov esi, dword [rcx + 0x2c]
mov ecx, dword [rcx + 0x28]
lea eax, [rsi + 1]
cmp eax, ecx
jbe 0x14005fdc2
mov edi, ecx
sub edi, esi
mov rdx, rsi
mov r8d, edi
add rdx, qword [rbx + 0x20]
lea rcx, [rsp + 0x70]
mov ebp, edi
call fcn.140121290
lea eax, [rsi + rdi]
mov dword [rbx + 0x2c], eax
movzx eax, byte [rbx]
mov qword [rsp + 0x88], r12
mov qword [rsp + 0x30], r15
cmp ebp, r14d
jne 0x14005fdfa
movzx edi, byte [rsp + 0x70]
jmp 0x14005fe0c
test al, al
je 0x14005fe08
cmp byte [rbx + 0x10], r13b
jne 0x14005ffe0
mov edi, dword [rsp + 0x70]
mov r15d, edi
mov esi, r14d
test al, al
je 0x14005fe47
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x80]
mov r8d, r14d
mov qword [rsp + 0x20], r13
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14005fe3d
mov byte [rbx + 0x10], sil
mov r12d, dword [rsp + 0x80]
jmp 0x14005fe75
mov ebp, dword [rbx + 0x2c]
mov ecx, dword [rbx + 0x28]
lea eax, [rbp + 1]
cmp eax, ecx
jbe 0x14005fe58
mov esi, ecx
sub esi, ebp
mov rdx, rbp
mov r8d, esi
add rdx, qword [rbx + 0x20]
lea rcx, [rsp + 0x70]
mov r12d, esi
call fcn.140121290
lea eax, [rsi + rbp]
mov dword [rbx + 0x2c], eax
cmp r12d, r14d
jne 0x14005fe81
movzx edi, byte [rsp + 0x70]
jmp 0x14005fe90
cmp byte [rbx], r13b
je 0x14005fe90
cmp byte [rbx + 0x10], r13b
jne 0x14005ffe0
mov ebp, edi
mov esi, edi
shl ebp, 8
add ebp, r15d
mov r15d, r14d
cmp byte [rbx], r13b
je 0x14005fed3
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x80]
mov r8d, r14d
mov qword [rsp + 0x20], r13
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14005fec9
mov byte [rbx + 0x10], r14b
mov r13d, dword [rsp + 0x80]
jmp 0x14005ff07
mov r12d, dword [rbx + 0x2c]
mov ecx, dword [rbx + 0x28]
lea eax, [r12 + 1]
cmp eax, ecx
jbe 0x14005fee9
mov r15d, ecx
sub r15d, r12d
mov rdx, r12
mov r8d, r15d
add rdx, qword [rbx + 0x20]
lea rcx, [rsp + 0x70]
mov r13d, r15d
call fcn.140121290
lea eax, [r12 + r15]
mov dword [rbx + 0x2c], eax
cmp r13d, r14d
jne 0x14005ff50
movzx edi, byte [rsp + 0x70]
mov esi, edi
shl esi, 0x10
add esi, ebp
cmp byte [rbx], 0
je 0x14005ff6c
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x80]
xor r13d, r13d
lea rdx, [rsp + 0x70]
mov r8d, r14d
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14005ff47
mov byte [rbx + 0x10], r14b
mov ebp, dword [rsp + 0x80]
jmp 0x14005ffa2
cmp byte [rbx], 0
je 0x14005ff13
cmp byte [rbx + 0x10], 0
je 0x14005ff13
mov rcx, qword [rsp + 0x78]
xor r13d, r13d
lea eax, [r13 - 1]
mov dword [rcx], r13d
jmp 0x14005ffbb
mov r15d, dword [rbx + 0x2c]
mov ecx, dword [rbx + 0x28]
lea eax, [r15 + 1]
cmp eax, ecx
jbe 0x14005ff81
mov r14d, ecx
sub r14d, r15d
mov rdx, r15
mov r8d, r14d
add rdx, qword [rbx + 0x20]
lea rcx, [rsp + 0x70]
mov ebp, r14d
call fcn.140121290
lea eax, [r15 + r14]
xor r13d, r13d
mov dword [rbx + 0x2c], eax
cmp ebp, 1
jne 0x14005ffd5
movzx edi, byte [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
mov eax, r13d
shl edi, 0x18
add edi, esi
mov dword [rcx], edi
mov r15, qword [rsp + 0x30]
mov r12, qword [rsp + 0x88]
add rsp, 0x38
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
cmp byte [rbx], 0
je 0x14005ffac
cmp byte [rbx + 0x10], 0
je 0x14005ffac
mov rcx, qword [rsp + 0x78]
mov eax, 0xffffffff
mov dword [rcx], r13d
jmp 0x14005ffbb