Function at 0x180020a2c
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 [0x1800754d0]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov r12, rdx
mov rbx, rcx
xor r14d, r14d
mov dword [rsp + 0x40], r14d
mov eax, dword [0x18007a178]
lea rbp, [0x18007a110]
test al, 1
jne 0x180020aef
or eax, 1
mov dword [0x18007a178], eax
lea ecx, [r14 + 8]
call fcn.18003c28c
cmp rax, r14
je 0x180020a9e
mov qword [rax], rbp
jmp 0x180020aa1
mov rax, r14
mov qword [0x18007a110], rax
mov rcx, rbp
call fcn.18002481c
mov qword [0x18007a140], rax
mov byte [rax + 0x71], 1
mov rax, qword [0x18007a140]
mov qword [rax + 8], rax
mov rax, qword [0x18007a140]
mov qword [rax], rax
mov rax, qword [0x18007a140]
mov qword [rax + 0x10], rax
mov qword [0x18007a148], r14
lea rcx, [0x18005917c]
call fcn.18003cf08
nop
lea rsi, [0x18007a150]
cmp byte [0x1800777ed], r14b
je 0x180020b0f
mov byte [0x1800777ed], r14b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [rsp + 0x60], r14d
xor edx, edx
lea r8d, [rdx + 0x20]
lea rcx, [rsp + 0x64]
call fcn.180041420
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
cmp dword [rsp + 0x60], 0xffffffff
je 0x180020f9f
test byte [rsp + 0x60], 0x10
jne 0x180020f9f
cmp dword [rsp + 0x7c], r14d
ja 0x180020f77
cmp dword [rsp + 0x80], 0xa00000
ja 0x180020f77
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, r12
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, r12
lea rcx, [rsp + 0x128]
call fcn.180002a18
nop
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x128]
call fcn.180010928
movdqu xmm0, xmmword [rax]
movdqu xmmword [rsp + 0x50], xmm0
lea rdx, [rsp + 0xb8]
lea rcx, [rsp + 0x128]
call fcn.1800109a4
movdqu xmm0, xmmword [rax]
movdqu xmmword [rsp + 0x90], xmm0
lea rdx, [rsp + 0xd8]
lea rcx, [rsp + 0x128]
call fcn.180010928
movdqu xmm0, xmmword [rax]
movdqu xmmword [rsp + 0xa0], xmm0
lea rax, [fcn.18003c7d4]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x90]
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0xe8]
call fcn.180011b8c
mov qword [rsp + 0x90], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
lea r8, [rsp + 0x128]
lea rdx, [rsp + 0x50]
mov rcx, rbp
call fcn.1800231f4
mov r13, qword [0x18007a140]
mov rbp, qword [rsp + 0x50]
cmp rbp, r14
je 0x180020c7c
cmp rbp, qword [0x18007a110]
je 0x180020c81
call fcn.18003c9b4
mov esi, 0xf
mov rdi, qword [rsp + 0x58]
cmp rdi, r13
je 0x180020d9a
cmp rbp, r14
jne 0x180020ca3
call fcn.18003c9b4
mov r11, r14
jmp 0x180020ca7
mov r11, qword [rbp]
cmp rdi, qword [r11 + 0x30]
jne 0x180020cb2
call fcn.18003c9b4
mov rax, qword [rdi + 0x40]
mov qword [rsp + 0xf8], rax
mov qword [rsp + 0x120], rsi
mov qword [rsp + 0x118], r14
mov byte [rsp + 0x108], r14b
lea rdx, [rdi + 0x48]
mov r9, r15
xor r8d, r8d
lea rcx, [rsp + 0x100]
call fcn.1800021c4
nop
mov rax, qword [rsp + 0xf8]
cmp rax, qword [rsp + 0x74]
jne 0x180020d82
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.1800021c4
nop
cmp qword [rsp + 0x120], 0x10
jb 0x180020d3c
mov rcx, qword [rsp + 0x108]
call fcn.18003c228
mov qword [rsp + 0x120], rsi
mov qword [rsp + 0x118], r14
mov byte [rsp + 0x108], r14b
lea rcx, [0x18007a150]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
cmp qword [rsp + 0x148], 8
jb 0x180020d7a
mov rcx, qword [rsp + 0x130]
call fcn.18003c228
mov rax, rbx
jmp 0x180020fc5
cmp qword [rsp + 0x120], 0x10
jb 0x180020d9a
mov rcx, qword [rsp + 0x108]
call fcn.18003c228
mov qword [rsp + 0x178], rsi
mov qword [rsp + 0x170], r14
mov byte [rsp + 0x160], r14b
mov rax, qword [rsp + 0x74]
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, r12
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
mov qword [rsp + 0x50], rax
cmp rax, r14
je 0x180020ee5
cmp rax, r15
je 0x180020ee5
mov ecx, dword [rsp + 0x80]
call fcn.18003cf60
mov rbp, rax
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x80]
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, r14d
je 0x180020edd
mov eax, dword [rsp + 0x80]
cmp dword [rsp + 0x40], eax
jne 0x180020edd
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.180002794
nop
mov r9, r15
xor r8d, r8d
lea rdx, [rsp + 0xf8]
lea rcx, [rsp + 0x158]
call fcn.1800021c4
nop
cmp qword [rsp + 0x118], 0x10
jb 0x180020ea7
mov rcx, qword [rsp + 0x100]
call fcn.18003c228
lea rdx, [rsp + 0x128]
lea rcx, [0x18007a110]
call fcn.180022e18
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.1800021c4
mov rcx, rbp
call fcn.18003cf20
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.1800021c4
nop
cmp rdi, r15
je 0x180020f1c
cmp rdi, r14
je 0x180020f1c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rsp + 0x178], 0x10
jb 0x180020f34
mov rcx, qword [rsp + 0x160]
call fcn.18003c228
mov qword [rsp + 0x178], rsi
mov qword [rsp + 0x170], r14
mov byte [rsp + 0x160], r14b
lea rcx, [0x18007a150]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
cmp qword [rsp + 0x148], 8
jb 0x180020f72
mov rcx, qword [rsp + 0x130]
call fcn.18003c228
mov rax, rbx
jmp 0x180020fc5
mov esi, 0xf
mov qword [rbx + 0x20], rsi
mov qword [rbx + 0x18], r14
mov byte [rbx + 8], r14b
xor r8d, r8d
lea rdx, [0x18005d383]
mov rcx, rbx
call fcn.180002794
mov rax, rbx
jmp 0x180020fc5
mov esi, 0xf
mov qword [rbx + 0x20], rsi
mov qword [rbx + 0x18], r14
mov byte [rbx + 8], r14b
xor r8d, r8d
lea rdx, [0x18005d383]
mov rcx, rbx
call fcn.180002794
mov rax, rbx
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.18003c1d0
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x190
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret