Function at 0x14001eb10
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [rcx + 0x34]
mov rsi, rcx
add rax, qword [rcx + 0x40]
mov ecx, dword [rcx]
test cl, 1
jne 0x14001eb5f
mov edx, dword [rsi + 0x14]
lea r8, [rbp + 0x40]
mov rcx, qword [rsi + 8]
add rdx, rax
xor r9d, r9d
mov qword [rbp + 0x40], rdx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001ec5a
mov ecx, dword [rsi]
jmp 0x14001eb63
mov qword [rsi + 0x20], rax
test cl, 4
je 0x14001ef7a
xor eax, eax
xorps xmm0, xmm0
movups xmmword [rsi + 0x60], xmm0
movups xmmword [rsi + 0x70], xmm0
mov qword [rsi + 0x80], rax
mov word [rsi + 0x88], ax
mov eax, dword [rsi]
test al, 8
je 0x14001eba7
mov eax, 8
mov word [rsi + 0x66], ax
mov eax, dword [rsi + 0x40]
add eax, dword [rsi + 0x34]
mov dword [rsi + 0x86], eax
jmp 0x14001ec61
xor ebx, ebx
mov r14d, 1
test r14b, al
jne 0x14001ebe4
mov rcx, qword [rsi + 8]
lea r9, [rbp + 0x50]
mov r8d, r14d
mov qword [rsp + 0x20], rbx
lea rdx, [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14001ebde
mov dword [rsi + 0x10], 7
mov r14d, ebx
jmp 0x14001ec1a
mov r14d, dword [rbp + 0x50]
jmp 0x14001ec1a
mov r12, qword [rsi + 0x20]
mov rcx, qword [rsi + 0x18]
lea rax, [r12 + 1]
cmp rax, rcx
jbe 0x14001ebfc
mov r14d, ecx
sub r14d, r12d
mov rdx, qword [rsi + 8]
lea rcx, [rbp + 0x48]
add rdx, r12
mov r8d, r14d
mov edi, r14d
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rdi + r12]
mov qword [rsi + 0x20], rax
cmp r14d, 1
jne 0x14001ec5a
lea rdx, [rsi + 0x68]
mov rcx, rsi
lea r8d, [r14 + 3]
call fcn.14001e6f0
cmp eax, 4
jne 0x14001ec5a
test byte [rsi], r14b
jne 0x14001ec79
mov rcx, qword [rsi + 8]
lea r8, [rbp + 0x50]
mov r9d, r14d
mov qword [rbp + 0x50], 2
lea edx, [rax - 2]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x14001ec7e
mov dword [rsi + 0x10], 6
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
add qword [rsi + 0x20], 2
test byte [rbp + 0x48], 4
je 0x14001ecc8
mov r8d, 2
lea rdx, [rsi + 0x7e]
mov rcx, rsi
call fcn.14001e6f0
cmp eax, 2
jne 0x14001ec5a
test byte [rsi], 1
movzx eax, word [rsi + 0x7e]
jne 0x14001ecc4
mov rcx, qword [rsi + 8]
lea r8, [rbp + 0x50]
mov r9d, 1
mov qword [rbp + 0x50], rax
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001ec5a
jmp 0x14001ecc8
add qword [rsi + 0x20], rax
test byte [rsi], 1
jne 0x14001ecee
mov rcx, qword [rsi + 8]
lea r8, [rbp + 0x50]
mov r9d, 1
mov qword [rbp + 0x50], rbx
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov r13, qword [rbp + 0x50]
jmp 0x14001ecf2
mov r13, qword [rsi + 0x20]
test byte [rbp + 0x48], 8
je 0x14001ed8c
nop dword [rax]
mov r14d, 1
test byte [rsi], r14b
jne 0x14001ed3e
mov rcx, qword [rsi + 8]
lea r9, [rbp + 0x50]
mov r8d, r14d
mov qword [rsp + 0x20], rbx
lea rdx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14001ed38
mov dword [rsi + 0x10], 7
mov r14d, ebx
mov dword [rbp + 0x50], ebx
jmp 0x14001ed74
mov r14d, dword [rbp + 0x50]
jmp 0x14001ed74
mov r12, qword [rsi + 0x20]
mov rcx, qword [rsi + 0x18]
lea rax, [r12 + 1]
cmp rax, rcx
jbe 0x14001ed56
mov r14d, ecx
sub r14d, r12d
mov rdx, qword [rsi + 8]
lea rcx, [rbp + 0x40]
add rdx, r12
mov r8d, r14d
mov edi, r14d
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rdi + r12]
mov qword [rsi + 0x20], rax
cmp r14d, 1
jne 0x14001ec5a
cmp byte [rbp + 0x40], bl
je 0x14001ed8c
inc word [rsi + 0x78]
jmp 0x14001ed00
test byte [rbp + 0x48], 0x10
je 0x14001ee27
nop word [rax + rax]
mov r14d, 1
test byte [rsi], r14b
jne 0x14001edde
mov rcx, qword [rsi + 8]
lea r9, [rbp + 0x50]
mov r8d, r14d
mov qword [rsp + 0x20], rbx
lea rdx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14001edd8
mov dword [rsi + 0x10], 7
mov r14d, ebx
mov dword [rbp + 0x50], ebx
jmp 0x14001ee14
mov r14d, dword [rbp + 0x50]
jmp 0x14001ee14
mov r12, qword [rsi + 0x20]
mov rcx, qword [rsi + 0x18]
lea rax, [r12 + 1]
cmp rax, rcx
jbe 0x14001edf6
mov r14d, ecx
sub r14d, r12d
mov rdx, qword [rsi + 8]
lea rcx, [rbp + 0x40]
add rdx, r12
mov r8d, r14d
mov edi, r14d
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rdi + r12]
mov qword [rsi + 0x20], rax
cmp r14d, 1
jne 0x14001ec5a
cmp byte [rbp + 0x40], bl
jne 0x14001eda0
test byte [rbp + 0x48], 2
je 0x14001ee60
test byte [rsi], 1
jne 0x14001ee5b
mov rcx, qword [rsi + 8]
lea r8, [rbp + 0x50]
mov r9d, 1
mov qword [rbp + 0x50], 2
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x14001ee60
jmp 0x14001ec5a
add qword [rsi + 0x20], 2
mov r10d, dword [rsi]
mov eax, 8
mov r11, qword [rsi + 8]
mov word [rsi + 0x66], ax
test r10b, 1
jne 0x14001eec9
lea r9d, [rax - 7]
xor r8d, r8d
xor edx, edx
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rsi + 8]
mov r9d, 2
xor r8d, r8d
mov dword [rsi + 0x86], eax
lea edx, [r9 - 0xa]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
sub eax, dword [rsi + 0x86]
mov rcx, rsi
mov dword [rsi + 0x70], eax
call fcn.14001e870
mov rcx, rsi
mov dword [rsi + 0x6c], eax
call fcn.14001e870
mov r10d, dword [rsi]
mov r8d, eax
jmp 0x14001ef47
mov eax, dword [rsi + 0x20]
mov r9, qword [rsi + 0x18]
mov ecx, dword [rsi + 0x18]
sub ecx, eax
mov dword [rsi + 0x86], eax
sub ecx, 8
mov dword [rsi + 0x70], ecx
mov edx, dword [r9 + r11 - 8]
mov eax, edx
shr eax, 0x10
movzx r8d, al
mov eax, edx
shr eax, 8
movzx ecx, al
mov eax, edx
shl r8d, 8
and eax, 0xff000000
or r8d, ecx
shl r8d, 8
or r8d, eax
movzx eax, dl
or r8d, eax
mov dword [rsi + 0x6c], r8d
mov edx, dword [r9 + r11 - 4]
mov eax, edx
shr eax, 0x10
movzx r8d, al
mov eax, edx
shr eax, 8
movzx ecx, al
mov eax, edx
shl r8d, 8
and eax, 0xff000000
or r8d, ecx
shl r8d, 8
or r8d, eax
movzx eax, dl
or r8d, eax
mov dword [rsi + 0x74], r8d
test r10b, 1
jne 0x14001ef71
mov edx, dword [rsi + 0x14]
lea r8, [rbp + 0x50]
mov rcx, qword [rsi + 8]
add rdx, r13
xor r9d, r9d
mov qword [rbp + 0x50], rdx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
jmp 0x14001ec61
mov qword [rsi + 0x20], r13
jmp 0x14001ec61
mov rcx, rsi
call fcn.14001e870
cmp eax, 0x2014b50
jne 0x14001ec5a
lea rbx, [rsi + 0x60]
mov r8d, 0x2a
mov rdx, rbx
mov rcx, rsi
call fcn.14001e6f0
cmp eax, 0x2a
jne 0x14001ec5a
mov edx, 0x60f0
lea r11d, [rax - 0x27]
nop dword [rax]
nop dword [rax + rax]
movzx r8d, byte [rbx]
movzx r9d, byte [rbx + 1]
test dl, 1
je 0x14001efef
movzx ecx, byte [rbx + 3]
movzx eax, byte [rbx + 2]
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, r9d
shl ecx, 8
or ecx, r8d
mov dword [rbx], ecx
add rbx, 4
jmp 0x14001f002
movzx ecx, r9w
shl cx, 8
or cx, r8w
mov word [rbx], cx
add rbx, 2
shr edx, 1
test dl, 1
je 0x14001f02f
movzx eax, byte [rbx + 2]
movzx ecx, byte [rbx + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx]
shl ecx, 8
or ecx, eax
mov dword [rbx], ecx
add rbx, 4
jmp 0x14001f044
movzx ecx, byte [rbx + 1]
movzx eax, byte [rbx]
shl cx, 8
or cx, ax
mov word [rbx], cx
add rbx, 2
shr edx, 1
test dl, 1
je 0x14001f071
movzx eax, byte [rbx + 2]
movzx ecx, byte [rbx + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx]
shl ecx, 8
or ecx, eax
mov dword [rbx], ecx
add rbx, 4
jmp 0x14001f086
movzx ecx, byte [rbx + 1]
movzx eax, byte [rbx]
shl cx, 8
or cx, ax
mov word [rbx], cx
add rbx, 2
shr edx, 1
test dl, 1
je 0x14001f0b3
movzx eax, byte [rbx + 2]
movzx ecx, byte [rbx + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx]
shl ecx, 8
or ecx, eax
mov dword [rbx], ecx
add rbx, 4
jmp 0x14001f0c8
movzx ecx, byte [rbx + 1]
movzx eax, byte [rbx]
shl cx, 8
or cx, ax
mov word [rbx], cx
add rbx, 2
shr edx, 1
test dl, 1
je 0x14001f0f5
movzx eax, byte [rbx + 2]
movzx ecx, byte [rbx + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx]
shl ecx, 8
or ecx, eax
mov dword [rbx], ecx
add rbx, 4
jmp 0x14001f10a
movzx ecx, byte [rbx + 1]
movzx eax, byte [rbx]
shl cx, 8
or cx, ax
mov word [rbx], cx
add rbx, 2
shr edx, 1
sub r11, 1
jne 0x14001efc0
jmp 0x14001ec61