Function at 0x18001f0c4
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x190
mov qword [rsp + 0xb0], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1800824d0]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov r13, rdx
mov rbx, rcx
xor r14d, r14d
mov dword [rsp + 0x40], r14d
mov eax, dword [0x180087c28]
lea rdi, [0x180087bc0]
test al, 1
jne 0x18001f187
or eax, 1
mov dword [0x180087c28], eax
lea ecx, [r14 + 8]
call fcn.18004316c
cmp rax, r14
je 0x18001f136
mov qword [rax], rdi
jmp 0x18001f139
mov rax, r14
mov qword [0x180087bc0], rax
mov rcx, rdi
call fcn.180023c1c
mov qword [0x180087bf0], rax
mov byte [rax + 0x71], 1
mov rax, qword [0x180087bf0]
mov qword [rax + 8], rax
mov rax, qword [0x180087bf0]
mov qword [rax], rax
mov rax, qword [0x180087bf0]
mov qword [rax + 0x10], rax
mov qword [0x180087bf8], r14
lea rcx, [0x180063910]
call fcn.180043354
nop
lea rsi, [0x180087c00]
cmp byte [0x1800846c6], r14b
je 0x18001f1a7
mov byte [0x1800846c6], r14b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [rsp + 0x70], r14d
xor edx, edx
lea r8d, [rdx + 0x20]
lea rcx, [rsp + 0x74]
call fcn.180045560
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
cmp dword [rsp + 0x70], 0xffffffff
je 0x18001f6e1
test byte [rsp + 0x70], 0x10
jne 0x18001f6e1
cmp dword [rsp + 0x8c], r14d
ja 0x18001f6b9
cmp dword [rsp + 0x90], 0xa00000
ja 0x18001f6b9
mov qword [rsp + 0x148], 7
mov qword [rsp + 0x140], r14
mov word [rsp + 0x130], r14w
xor eax, eax
or r15, 0xffffffffffffffff
mov rcx, r15
mov rdi, r13
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, r13
lea rcx, [rsp + 0x128]
call fcn.18000297c
nop
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x128]
call fcn.1800220f0
movdqu xmm0, xmmword [rax]
movdqu xmmword [rsp + 0x50], xmm0
lea rdx, [rsp + 0xb8]
lea rcx, [rsp + 0x128]
call fcn.18002216c
movdqu xmm0, xmmword [rax]
movdqu xmmword [rsp + 0x60], xmm0
lea rdx, [rsp + 0xd8]
lea rcx, [rsp + 0x128]
call fcn.1800220f0
movdqu xmm0, xmmword [rax]
movdqu xmmword [rsp + 0xa0], xmm0
lea rax, [fcn.1800435a4]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0xe8]
call fcn.1800243a0
mov qword [rsp + 0xa0], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rbp, qword [0x180087bf0]
mov rdi, qword [rbp + 8]
mov rsi, rbp
cmp byte [rdi + 0x71], r14b
jne 0x18001f325
lea rcx, [rdi + 0x18]
lea rdx, [rsp + 0x128]
call fcn.180009840
cmp al, r14b
je 0x18001f312
mov rdi, qword [rdi + 0x10]
jmp 0x18001f318
mov rsi, rdi
mov rdi, qword [rdi]
cmp byte [rdi + 0x71], r14b
je 0x18001f2f6
mov rbp, qword [0x180087bf0]
mov qword [rsp + 0x68], rsi
mov rax, qword [0x180087bc0]
mov qword [rsp + 0x60], rax
mov rdi, rbp
cmp rax, r14
jne 0x18001f351
call fcn.180043018
mov rbp, qword [0x180087bf0]
mov rax, qword [0x180087bc0]
cmp rsi, rdi
je 0x18001f38f
lea rdx, [rsi + 0x18]
lea rcx, [rsp + 0x128]
call fcn.180009840
cmp al, r14b
jne 0x18001f381
lea rcx, [rsp + 0x60]
mov rbp, qword [0x180087bf0]
mov rax, qword [0x180087bc0]
jmp 0x18001f39e
mov rbp, qword [0x180087bf0]
mov rax, qword [0x180087bc0]
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x50]
movdqu xmm0, xmmword [rcx]
movdqu xmmword [rsp + 0x50], xmm0
mov rdi, qword [rsp + 0x50]
cmp rdi, r14
je 0x18001f3b7
cmp rdi, rax
je 0x18001f3bc
call fcn.180043018
mov esi, 0xf
mov r12, qword [rsp + 0x58]
cmp r12, rbp
je 0x18001f4d9
cmp rdi, r14
jne 0x18001f3de
call fcn.180043018
mov rdx, r14
jmp 0x18001f3e1
mov rdx, qword [rdi]
cmp r12, qword [rdx + 0x30]
jne 0x18001f3ec
call fcn.180043018
mov rax, qword [r12 + 0x40]
mov qword [rsp + 0xf8], rax
mov qword [rsp + 0x120], rsi
mov qword [rsp + 0x118], r14
mov byte [rsp + 0x108], r14b
lea rdx, [r12 + 0x48]
mov r9, r15
xor r8d, r8d
lea rcx, [rsp + 0x100]
call fcn.180002398
nop
mov rax, qword [rsp + 0xf8]
cmp rax, qword [rsp + 0x84]
jne 0x18001f4c1
mov qword [rbx + 0x20], rsi
mov qword [rbx + 0x18], r14
mov byte [rbx + 8], r14b
mov r9, r15
xor r8d, r8d
lea rdx, [rsp + 0x100]
mov rcx, rbx
call fcn.180002398
nop
cmp qword [rsp + 0x120], 0x10
jb 0x18001f47b
mov rcx, qword [rsp + 0x108]
call fcn.180043070
mov qword [rsp + 0x120], rsi
mov qword [rsp + 0x118], r14
mov byte [rsp + 0x108], r14b
lea rcx, [0x180087c00]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
cmp qword [rsp + 0x148], 8
jb 0x18001f4b9
mov rcx, qword [rsp + 0x130]
call fcn.180043070
mov rax, rbx
jmp 0x18001f707
cmp qword [rsp + 0x120], 0x10
jb 0x18001f4d9
mov rcx, qword [rsp + 0x108]
call fcn.180043070
mov qword [rsp + 0x178], rsi
mov qword [rsp + 0x170], r14
mov byte [rsp + 0x160], r14b
mov rax, qword [rsp + 0x84]
mov qword [rsp + 0x150], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 7]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
mov qword [rsp + 0x60], rax
cmp rax, r14
je 0x18001f627
cmp rax, r15
je 0x18001f627
mov ecx, dword [rsp + 0x90]
call fcn.1800443a4
mov rbp, rax
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x90]
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, r14d
je 0x18001f61f
mov eax, dword [rsp + 0x90]
cmp dword [rsp + 0x40], eax
jne 0x18001f61f
mov r8, rax
mov qword [rsp + 0x118], rsi
mov qword [rsp + 0x110], r14
mov byte [rsp + 0x100], r14b
mov rdx, rbp
lea rcx, [rsp + 0xf8]
call fcn.1800026f8
nop
mov r9, r15
xor r8d, r8d
lea rdx, [rsp + 0xf8]
lea rcx, [rsp + 0x158]
call fcn.180002398
nop
cmp qword [rsp + 0x118], 0x10
jb 0x18001f5e9
mov rcx, qword [rsp + 0x100]
call fcn.180043070
lea rdx, [rsp + 0x128]
lea rcx, [0x180087bc0]
call fcn.180022220
mov rcx, qword [rsp + 0x150]
mov qword [rax], rcx
lea rcx, [rax + 8]
mov r9, r15
xor r8d, r8d
lea rdx, [rsp + 0x158]
call fcn.180002398
mov rcx, rbp
call fcn.180044364
mov qword [rbx + 0x20], rsi
mov qword [rbx + 0x18], r14
mov byte [rbx + 8], r14b
mov r9, r15
xor r8d, r8d
lea rdx, [rsp + 0x158]
mov rcx, rbx
call fcn.180002398
nop
cmp rdi, r15
je 0x18001f65e
cmp rdi, r14
je 0x18001f65e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rsp + 0x178], 0x10
jb 0x18001f676
mov rcx, qword [rsp + 0x160]
call fcn.180043070
mov qword [rsp + 0x178], rsi
mov qword [rsp + 0x170], r14
mov byte [rsp + 0x160], r14b
lea rcx, [0x180087c00]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
cmp qword [rsp + 0x148], 8
jb 0x18001f6b4
mov rcx, qword [rsp + 0x130]
call fcn.180043070
mov rax, rbx
jmp 0x18001f707
mov esi, 0xf
mov qword [rbx + 0x20], rsi
mov qword [rbx + 0x18], r14
mov byte [rbx + 8], r14b
xor r8d, r8d
lea rdx, [0x1800677fc]
mov rcx, rbx
call fcn.1800026f8
mov rax, rbx
jmp 0x18001f707
mov esi, 0xf
mov qword [rbx + 0x20], rsi
mov qword [rbx + 0x18], r14
mov byte [rbx + 8], r14b
xor r8d, r8d
lea rdx, [0x1800677fc]
mov rcx, rbx
call fcn.1800026f8
mov rax, rbx
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.180042bb0
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x190
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret