Function at 0x140088960
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rdi, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
lea r12, [0x1401b66b8]
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], 0xffffffffffffffff
lea rax, [rbp - 0x58]
mov qword [rbp - 0x68], rax
xor r15d, r15d
mov dword [rbp - 0x60], r15d
mov dword [rbp - 0x5c], 0x104
mov word [rbp - 0x58], r15w
lea rax, [0x1401b6698]
mov qword [rbp - 0x70], rax
mov r8d, 0x104
lea rdx, [rbp - 0x58]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rbx, qword [rbp - 0x68]
test rbx, rbx
je 0x1400889fe
mov edx, dword [rbp - 0x5c]
mov rcx, rbx
call fcn.14003c464
mov dword [rbp - 0x60], eax
mov rbx, qword [rbp - 0x68]
jmp 0x140088a02
mov dword [rbp - 0x60], r15d
mov rcx, qword [rsp + 0x48]
cmp rcx, 0xffffffffffffffff
je 0x140088a1f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, 0xffffffffffffffff
mov qword [rsp + 0x48], rcx
test rbx, rbx
je 0x140088a56
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 3]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, rax
mov qword [rsp + 0x48], rax
cmp rcx, 0xffffffffffffffff
je 0x140088c00
mov ebx, r15d
nop dword [rax]
nop word [rax + rax]
mov dword [rbp + 0x1e8], r15d
mov r8d, 0x40
sub r8d, ebx
mov eax, ebx
lea rdx, [rsp + 0x50]
add rdx, rax
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x1e8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140088ab8
mov eax, dword [rbp + 0x1e8]
test eax, eax
je 0x140088ab8
add ebx, eax
cmp ebx, 0x40
jae 0x140088ab8
mov rcx, qword [rsp + 0x48]
jmp 0x140088a70
mov eax, ebx
lock add qword [0x1401f3d70], rax
cmp ebx, 0x40
jne 0x140088bfb
movzx eax, word [rsp + 0x74]
mov word [rbp + 0x1e8], ax
movzx eax, word [rsp + 0x76]
mov word [rbp + 0x1ea], ax
mov edx, dword [rbp + 0x1e8]
mov rcx, qword [rsp + 0x48]
cmp rcx, 0xffffffffffffffff
je 0x140088c00
mov qword [rbp + 0x1f0], rdx
xor r9d, r9d
lea r8, [rbp + 0x1f4]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rbp + 0x1f0], eax
cmp eax, 0xffffffff
jne 0x140088b28
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140088bfb
cmp qword [rbp + 0x1f0], 0xffffffffffffffff
je 0x140088bfb
lea rbx, [rdi + 0x88d0]
nop dword [rax]
lea rdx, [rsp + 0x40]
lea rcx, [rdi + 0x88b8]
call fcn.14001f860
test al, al
je 0x140088b61
lea rbx, [rdi + 0x88d0]
cmp dword [rbx], 2
jne 0x140088b40
cmp dword [rbx], 2
je 0x140088b72
lea rcx, [rdi + 0x88b8]
call fcn.14001f040
mov edx, dword [rbp + 0x1e8]
mov rcx, qword [rsp + 0x48]
cmp rcx, 0xffffffffffffffff
je 0x140088c00
mov qword [rbp + 0x1e8], rdx
xor r9d, r9d
lea r8, [rbp + 0x1ec]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rbp + 0x1e8], eax
cmp eax, 0xffffffff
jne 0x140088baf
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140088bfb
cmp qword [rbp + 0x1e8], 0xffffffffffffffff
je 0x140088bfb
lea rbx, [rdi + 0x8948]
lea rdx, [rsp + 0x40]
lea rcx, [rdi + 0x8930]
call fcn.14001f860
test al, al
je 0x140088be1
lea rbx, [rdi + 0x8948]
cmp dword [rbx], 3
jne 0x140088bc0
cmp dword [rbx], 3
je 0x140088bf2
lea rcx, [rdi + 0x8930]
call fcn.14001f040
mov bl, 1
mov rcx, qword [rsp + 0x48]
jmp 0x140088c02
mov rcx, qword [rsp + 0x48]
xor bl, bl
lea rax, [0x1401b6738]
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], r15
mov dword [rbp - 0x60], r15d
mov qword [rsp + 0x40], r12
cmp rcx, 0xffffffffffffffff
je 0x140088c26
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bl
mov rbx, qword [rsp + 0x2e0]
add rsp, 0x2b0
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret