Function at 0x4bd550
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
mov r13d, dword [rcx + 0x150]
mov r12, rcx
cmp r13d, 0xffffffff
je 0x4bd720
mov rdi, qword [rcx + 0x180]
movzx ebx, r13b
lea rcx, [0x00a09e00]
call sub.KERNEL32.dll_EnterCriticalSection
mov eax, ebx
lea r9, [0x00780e00]
mov rdx, rax
shl rdx, 4
add rdx, r9
mov r8, qword [rdx]
mov rcx, r8
and ecx, 0xf
test r8, r8
je 0x4bd740
test rcx, rcx
jne 0x4bd740
mov r8, qword [rdx + 8]
mov ecx, 0x10
mov rdx, r8
xor eax, eax
jmp 0x4bd5e1
add rax, 1
add rdx, 0x28
cmp rax, rcx
jae 0x4bd758
cmp r13d, dword [rdx]
jne 0x4bd5d0
lea rax, [rax + rax*4]
lea rax, [r8 + rax*8]
test rax, rax
jne 0x4bd6e0
lea rcx, [0x00a09e00]
call fcn.004d4240
mov ecx, r13d
call qword [sym.imp.msvcrt.dll__get_osfhandle]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x4bd850
cmp rdi, 0xffffffffffffffff
jne 0x4bd7a0
mov dword [rsp + 0x38], 0
xor ebp, ebp
xor ebx, ebx
xor r15d, r15d
lea r13, [rsp + 0x44]
jmp 0x4bd64e
cmp dword [r12 + 0x170], ebx
jbe 0x4bd800
cmp rdi, 0xffffffffffffffff
je 0x4bd65f
mov eax, r15d
add rax, rdi
mov qword [rsp + 0x60], rax
mov eax, ebx
mov r9, r13
mov rcx, r14
add ebx, 1
shl rax, 4
add rax, qword [r12 + 0x178]
mov rdx, qword [rax + 8]
mov qword [rsp + 0x20], rbp
mov r8d, dword [rax]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r10d, dword [rsp + 0x44]
mov esi, eax
add r10d, r15d
mov r15d, r10d
test eax, eax
jne 0x4bd640
mov edx, dword [rsp + 0x38]
test edx, edx
jne 0x4bd808
mov eax, dword [rsp + 0x38]
or eax, r10d
jne 0x4bd7f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
cmp eax, 0x26
jne 0x4bd830
mov qword [r12 + 0x88], 0
jmp 0x4bd70e
lea rax, [rax + rax*4]
lea rax, [rdx + rax*8]
movdqu xmm0, xmmword [rax + 8]
lea rcx, [0x00a09e00]
movaps xmmword [rsp + 0x50], xmm0
movdqu xmm1, xmmword [rax + 0x18]
movaps xmmword [rsp + 0x60], xmm1
call fcn.004d4240
lea rdx, [rsp + 0x50]
mov rcx, r12
call fcn.004bd160
nop
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rcx + 0x88], 0xfffffffffffff00d
mov dword [rcx + 0x14c], 6
jmp 0x4bd70e
shl rax, 4
mov r8, qword [r9 + rax + 8]
test rcx, rcx
jne 0x4bd5c2
nop word [rax + rax]
mov rdx, qword [r8 + 0x280]
test rdx, rdx
je 0x4bd5f7
nop dword [rax + rax]
mov rcx, rdx
xor eax, eax
nop dword [rax]
cmp r13d, dword [rcx]
je 0x4bd6d8
add eax, 1
add rcx, 0x28
cmp eax, 0x10
jne 0x4bd778
mov rdx, qword [rdx + 0x280]
test rdx, rdx
jne 0x4bd770
jmp 0x4bd5f7
xor edx, edx
mov r9d, 1
lea r8, [rsp + 0x48]
mov rcx, r14
mov qword [rsp + 0x50], 0
lea rbp, [rsp + 0x50]
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
setne al
movzx eax, al
mov dword [rsp + 0x38], eax
jmp 0x4bd62d
mov eax, r10d
mov qword [r12 + 0x88], rax
jmp 0x4bd70e
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x4bd7f0
mov dword [rsp + 0x3c], r10d
mov rdx, qword [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov dword [rsp + 0x38], esi
mov r10d, dword [rsp + 0x3c]
jmp 0x4bd6a5
mov dword [r12 + 0x14c], eax
call fcn.004bb150
cdqe
mov qword [r12 + 0x88], rax
jmp 0x4bd70e
mov dword [r12 + 0x14c], 6
mov ecx, 6
call fcn.004bb150
cdqe
mov qword [r12 + 0x88], rax
jmp 0x4bd70e