Function at 0x18000ea10
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.18006dc60
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 0x18000ea7d
mov dword [0x1800a3e84], r13d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
cmp rsi, r13
jne 0x18000eaae
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.180007360
mov rax, rbx
jmp 0x18000f0a1
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.1800076f0
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.180009024
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.180009024
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.180009024
movaps xmm5, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm5
lea rax, [fcn.180059d70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0xd8]
call fcn.18000cb60
mov edx, dword [0x1800a839c]
lea rdi, [0x1800a8290]
test dl, 1
jne 0x18000ec48
or edx, 1
mov dword [0x1800a839c], edx
mov rcx, r14
call fcn.180058f28
cmp rax, r13
je 0x18000ebf7
mov qword [rax], rdi
jmp 0x18000ebfa
mov rax, r13
mov qword [0x1800a8290], rax
mov rcx, rdi
call fcn.180029934
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, [0x1800784d4]
call fcn.180059fec
nop
mov dword [rsp + 0xa8], r13d
xor edx, edx
lea r8d, [rdx + 0x20]
lea rcx, [rsp + 0xac]
call fcn.180059db0
lea r8, [rsp + 0xa8]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
cmp eax, r13d
jne 0x18000ecbe
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.180007360
nop
cmp qword [rsp + 0x108], r14
jb 0x18000ecb6
mov rcx, qword [rsp + 0xf0]
call fcn.180058b34
mov rax, rbx
jmp 0x18000f0a1
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.18000f7d0
mov rdi, qword [0x1800a82c0]
mov rax, qword [rsp + 0x60]
cmp rax, r13
je 0x18000ecfc
cmp rax, qword [0x1800a8290]
je 0x18000ed01
call fcn.180058f08
mov rax, qword [rsp + 0x68]
cmp rax, rdi
je 0x18000ed47
mov rcx, qword [rax + 0x30]
cmp qword [rax + 0x38], r14
jb 0x18000ed1b
mov r9, qword [rax + 0x20]
jmp 0x18000ed1f
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rcx
mov r8, qword [rsp + 0x100]
xor edx, edx
lea rcx, [rsp + 0xe8]
call fcn.18000d7b8
cmp eax, r13d
jl 0x18000ed47
lea rax, [rsp + 0x60]
jmp 0x18000ed64
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 0x18000ed88
cmp rdi, qword [0x1800a8290]
je 0x18000ed8d
call fcn.180058f08
mov rsi, qword [rsp + 0x48]
cmp rsi, r12
je 0x18000ee3c
cmp rdi, r13
jne 0x18000edaa
call fcn.180058f08
mov r11, r13
jmp 0x18000edad
mov r11, qword [rdi]
cmp rsi, qword [r11 + 0x30]
jne 0x18000edb8
call fcn.180058f08
mov rax, qword [rsi + 0x40]
cmp rax, qword [rsp + 0xbc]
jne 0x18000ee3c
cmp rdi, r13
jne 0x18000edd5
call fcn.180058f08
mov rdx, r13
jmp 0x18000edd8
mov rdx, qword [rdi]
cmp rsi, qword [rdx + 0x30]
jne 0x18000ede3
call fcn.180058f08
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.180007360
nop
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
cmp qword [rsp + 0x108], r14
jb 0x18000ee34
mov rcx, qword [rsp + 0xf0]
call fcn.180058b34
mov rax, rbx
jmp 0x18000f0a1
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 0x18000f04e
cmp rax, 0xffffffffffffffff
je 0x18000f04e
mov byte [rsp + 0x160], r13b
xor edx, edx
mov r8d, 0xfff
lea rcx, [rsp + 0x161]
call fcn.180059db0
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.180039e40
nop
mov r9d, 0xc
mov r8, r14
lea rdx, [rsp + 0x110]
mov rcx, rax
call fcn.18000f19c
nop
cmp qword [rsp + 0xa0], 0x10
jb 0x18000ef27
mov rcx, qword [rsp + 0x88]
call fcn.180058b34
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.180059db0
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.18000f1d0
mov rcx, rax
lea rdx, [rsp + 0x138]
lea r8d, [rsi + 0x19]
call fcn.180059820
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.180007250
nop
cmp qword [rsp + 0x130], 0x10
jb 0x18000f010
mov rcx, qword [rsp + 0x118]
call fcn.180058b34
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 0x18000f049
mov rcx, qword [rsp + 0xf0]
call fcn.180058b34
mov rax, rbx
jmp 0x18000f0a1
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.180007360
nop
cmp rdi, 0xffffffffffffffff
je 0x18000f087
cmp rdi, r13
je 0x18000f087
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rsp + 0x108], r14
jb 0x18000f09e
mov rcx, qword [rsp + 0xf0]
call fcn.180058b34
mov rax, rbx
mov rcx, qword [rsp + 0x1160]
xor rcx, rsp
call fcn.180059760
mov rbx, qword [rsp + 0x11c0]
add rsp, 0x1170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret