Function at 0x18000ea24
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1170
call fcn.18006de30
sub rsp, rax
mov qword [rsp + 0xd0], 0xfffffffffffffffe
mov qword [rsp + 0x11c0], rbx
mov rax, qword [0x1800a1628]
xor rax, rsp
mov qword [rsp + 0x1160], rax
mov rsi, rdx
mov rbx, rcx
xor r13d, r13d
mov dword [rsp + 0x50], r13d
lea r15, [0x1800a6eb0]
cmp dword [0x1800a3e84], r13d
je 0x18000ea91
mov dword [0x1800a3e84], r13d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
cmp rsi, r13
jne 0x18000eac2
mov esi, 0xf
mov qword [rbx + 0x20], rsi
mov qword [rbx + 0x18], r13
mov byte [rbx + 8], r13b
lea r8d, [rsi - 8]
lea rdx, str.default
mov rcx, rbx
call fcn.180007324
mov rax, rbx
jmp 0x18000f0b5
mov ebp, 7
mov qword [rsp + 0x108], rbp
mov qword [rsp + 0x100], r13
mov word [rsp + 0xf0], r13w
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rsi
lea rcx, [rsp + 0xe8]
call fcn.1800076b4
nop
lea rdx, [rsp + 0xf0]
lea r14d, [rbp + 1]
cmp qword [rsp + 0x108], r14
cmovae rdx, qword [rsp + 0xf0]
lea r8, [rsp + 0xe8]
lea rcx, [rsp + 0x40]
call fcn.180008fe8
movaps xmm5, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x60], xmm5
lea rcx, [rsp + 0xf0]
cmp qword [rsp + 0x108], r14
cmovae rcx, qword [rsp + 0xf0]
mov rax, qword [rsp + 0x100]
lea rdx, [rcx + rax*2]
lea r8, [rsp + 0xe8]
lea rcx, [rsp + 0x40]
call fcn.180008fe8
movaps xmm5, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x70], xmm5
lea rdx, [rsp + 0xf0]
cmp qword [rsp + 0x108], r14
cmovae rdx, qword [rsp + 0xf0]
lea r8, [rsp + 0xe8]
lea rcx, [rsp + 0x40]
call fcn.180008fe8
movaps xmm5, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm5
lea rax, [fcn.180059f40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0xd8]
call fcn.18000cb74
mov edx, dword [0x1800a839c]
lea rdi, [0x1800a8290]
test dl, 1
jne 0x18000ec5c
or edx, 1
mov dword [0x1800a839c], edx
mov rcx, r14
call fcn.1800590f8
cmp rax, r13
je 0x18000ec0b
mov qword [rax], rdi
jmp 0x18000ec0e
mov rax, r13
mov qword [0x1800a8290], rax
mov rcx, rdi
call fcn.1800104f0
mov qword [0x1800a82c0], rax
mov byte [rax + 0x69], 1
mov rax, qword [0x1800a82c0]
mov qword [rax + 8], rax
mov rax, qword [0x1800a82c0]
mov qword [rax], rax
mov rax, qword [0x1800a82c0]
mov qword [rax + 0x10], rax
mov qword [0x1800a82c8], r13
lea rcx, [0x180078664]
call fcn.18005a1bc
nop
mov dword [rsp + 0xa8], r13d
xor edx, edx
lea r8d, [rdx + 0x20]
lea rcx, [rsp + 0xac]
call fcn.180059f80
lea r8, [rsp + 0xa8]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
cmp eax, r13d
jne 0x18000ecd2
mov esi, 0xf
mov qword [rbx + 0x20], rsi
mov qword [rbx + 0x18], r13
mov byte [rbx + 8], r13b
mov r8, rbp
lea rdx, str.default
mov rcx, rbx
call fcn.180007324
nop
cmp qword [rsp + 0x108], r14
jb 0x18000ecca
mov rcx, qword [rsp + 0xf0]
call fcn.1800018ec
mov rax, rbx
jmp 0x18000f0b5
mov qword [rsp + 0x70], r15
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
lea r8, [rsp + 0xe8]
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.18000f818
mov rdi, qword [0x1800a82c0]
mov rax, qword [rsp + 0x60]
cmp rax, r13
je 0x18000ed10
cmp rax, qword [0x1800a8290]
je 0x18000ed15
call fcn.1800590d8
mov rax, qword [rsp + 0x68]
cmp rax, rdi
je 0x18000ed5b
mov rcx, qword [rax + 0x30]
cmp qword [rax + 0x38], r14
jb 0x18000ed2f
mov r9, qword [rax + 0x20]
jmp 0x18000ed33
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rcx
mov r8, qword [rsp + 0x100]
xor edx, edx
lea rcx, [rsp + 0xe8]
call fcn.18000d7cc
cmp eax, r13d
jl 0x18000ed5b
lea rax, [rsp + 0x60]
jmp 0x18000ed78
mov rax, qword [0x1800a82c0]
mov qword [rsp + 0x48], rax
mov rax, qword [0x1800a8290]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x40]
movdqu xmm0, xmmword [rax]
movdqu xmmword [rsp + 0x40], xmm0
mov r12, qword [0x1800a82c0]
mov rdi, qword [rsp + 0x40]
cmp rdi, r13
je 0x18000ed9c
cmp rdi, qword [0x1800a8290]
je 0x18000eda1
call fcn.1800590d8
mov rsi, qword [rsp + 0x48]
cmp rsi, r12
je 0x18000ee50
cmp rdi, r13
jne 0x18000edbe
call fcn.1800590d8
mov r11, r13
jmp 0x18000edc1
mov r11, qword [rdi]
cmp rsi, qword [r11 + 0x30]
jne 0x18000edcc
call fcn.1800590d8
mov rax, qword [rsi + 0x40]
cmp rax, qword [rsp + 0xbc]
jne 0x18000ee50
cmp rdi, r13
jne 0x18000ede9
call fcn.1800590d8
mov rdx, r13
jmp 0x18000edec
mov rdx, qword [rdi]
cmp rsi, qword [rdx + 0x30]
jne 0x18000edf7
call fcn.1800590d8
lea rdx, [rsi + 0x48]
mov esi, 0xf
mov qword [rbx + 0x20], rsi
mov qword [rbx + 0x18], r13
mov byte [rbx + 8], r13b
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, rbx
call fcn.180007324
nop
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
cmp qword [rsp + 0x108], r14
jb 0x18000ee48
mov rcx, qword [rsp + 0xf0]
call fcn.1800018ec
mov rax, rbx
jmp 0x18000f0b5
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [rsp + 0xf0]
cmp qword [rsp + 0x108], r14
cmovae rcx, qword [rsp + 0xf0]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov r8d, 3
mov dword [rsp + 0x20], r8d
xor r9d, r9d
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
mov qword [rsp + 0x70], rax
cmp rax, r13
je 0x18000f062
cmp rax, 0xffffffffffffffff
je 0x18000f062
mov byte [rsp + 0x160], r13b
xor edx, edx
mov r8d, 0xfff
lea rcx, [rsp + 0x161]
call fcn.180059f80
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x50]
mov esi, 0x1000
mov r8d, esi
lea rdx, [rsp + 0x160]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r8d, esi
lea rdx, [rsp + 0x160]
lea rcx, [rsp + 0x80]
call fcn.18003a0f0
nop
mov r9d, 0xc
mov r8, r14
lea rdx, [rsp + 0x110]
mov rcx, rax
call fcn.18000f1b0
nop
cmp qword [rsp + 0xa0], 0x10
jb 0x18000ef3b
mov rcx, qword [rsp + 0x88]
call fcn.1800018ec
mov esi, 0xf
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0x98], r13
mov byte [rsp + 0x88], r13b
mov qword [rsp + 0x60], r15
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
xor edx, edx
lea r8d, [rsi + 0x15]
lea rcx, [rsp + 0x13c]
call fcn.180059f80
mov r11, qword [rsp + 0xbc]
mov qword [rsp + 0x138], r11
lea rdx, [rsp + 0x118]
cmp qword [rsp + 0x130], 0x10
cmovae rdx, qword [rsp + 0x118]
lea r8d, [rsi + 0x11]
lea rcx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_lstrcpynA]
lea rdx, [rsp + 0xe8]
lea rcx, [0x1800a8290]
call fcn.18000f1e4
mov rcx, rax
lea rdx, [rsp + 0x138]
lea r8d, [rsi + 0x19]
call fcn.1800599f0
nop
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbx + 0x20], rsi
mov qword [rbx + 0x18], r13
mov byte [rbx + 8], r13b
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x110]
mov rcx, rbx
call fcn.180007214
nop
cmp qword [rsp + 0x130], 0x10
jb 0x18000f024
mov rcx, qword [rsp + 0x118]
call fcn.1800018ec
mov qword [rsp + 0x130], rsi
mov qword [rsp + 0x128], r13
mov byte [rsp + 0x118], r13b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rsp + 0x108], r14
jb 0x18000f05d
mov rcx, qword [rsp + 0xf0]
call fcn.1800018ec
mov rax, rbx
jmp 0x18000f0b5
mov esi, 0xf
mov qword [rbx + 0x20], rsi
mov qword [rbx + 0x18], r13
mov byte [rbx + 8], r13b
mov r8, rbp
lea rdx, str.default
mov rcx, rbx
call fcn.180007324
nop
cmp rdi, 0xffffffffffffffff
je 0x18000f09b
cmp rdi, r13
je 0x18000f09b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rsp + 0x108], r14
jb 0x18000f0b2
mov rcx, qword [rsp + 0xf0]
call fcn.1800018ec
mov rax, rbx
mov rcx, qword [rsp + 0x1160]
xor rcx, rsp
call fcn.180059930
mov rbx, qword [rsp + 0x11c0]
add rsp, 0x1170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret