Function at 0x18000da14
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.180069af0
sub rsp, rax
mov qword [rsp + 0xd0], 0xfffffffffffffffe
mov qword [rsp + 0x11c0], rbx
mov rax, qword [0x18009a658]
xor rax, rsp
mov qword [rsp + 0x1160], rax
mov rsi, rdx
mov rbx, rcx
xor r13d, r13d
mov dword [rsp + 0x50], r13d
lea r15, [0x18009fdc0]
cmp dword [0x18009cda4], r13d
je 0x18000da81
mov dword [0x18009cda4], r13d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
cmp rsi, r13
jne 0x18000dab2
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.180006ec0
mov rax, rbx
jmp 0x18000e0a5
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.180007250
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.1800086e4
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.1800086e4
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.1800086e4
movaps xmm5, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm5
lea rax, [fcn.180055b90]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0xd8]
call fcn.18000bb64
mov edx, dword [0x1800a0fdc]
lea rdi, [0x1800a0ed0]
test dl, 1
jne 0x18000dc4c
or edx, 1
mov dword [0x1800a0fdc], edx
mov rcx, r14
call fcn.180054d48
cmp rax, r13
je 0x18000dbfb
mov qword [rax], rdi
jmp 0x18000dbfe
mov rax, r13
mov qword [0x1800a0ed0], rax
mov rcx, rdi
call fcn.18002878c
mov qword [0x1800a0f00], rax
mov byte [rax + 0x69], 1
mov rax, qword [0x1800a0f00]
mov qword [rax + 8], rax
mov rax, qword [0x1800a0f00]
mov qword [rax], rax
mov rax, qword [0x1800a0f00]
mov qword [rax + 0x10], rax
mov qword [0x1800a0f08], r13
lea rcx, [0x180073ba8]
call fcn.180055e0c
nop
mov dword [rsp + 0xa8], r13d
xor edx, edx
lea r8d, [rdx + 0x20]
lea rcx, [rsp + 0xac]
call fcn.180055bd0
lea r8, [rsp + 0xa8]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
cmp eax, r13d
jne 0x18000dcc2
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.180006ec0
nop
cmp qword [rsp + 0x108], r14
jb 0x18000dcba
mov rcx, qword [rsp + 0xf0]
call fcn.180054958
mov rax, rbx
jmp 0x18000e0a5
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.18000e808
mov rdi, qword [0x1800a0f00]
mov rax, qword [rsp + 0x60]
cmp rax, r13
je 0x18000dd00
cmp rax, qword [0x1800a0ed0]
je 0x18000dd05
call fcn.180054d28
mov rax, qword [rsp + 0x68]
cmp rax, rdi
je 0x18000dd4b
mov rcx, qword [rax + 0x30]
cmp qword [rax + 0x38], r14
jb 0x18000dd1f
mov r9, qword [rax + 0x20]
jmp 0x18000dd23
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rcx
mov r8, qword [rsp + 0x100]
xor edx, edx
lea rcx, [rsp + 0xe8]
call fcn.18000c7bc
cmp eax, r13d
jl 0x18000dd4b
lea rax, [rsp + 0x60]
jmp 0x18000dd68
mov rax, qword [0x1800a0f00]
mov qword [rsp + 0x48], rax
mov rax, qword [0x1800a0ed0]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x40]
movdqu xmm0, xmmword [rax]
movdqu xmmword [rsp + 0x40], xmm0
mov r12, qword [0x1800a0f00]
mov rdi, qword [rsp + 0x40]
cmp rdi, r13
je 0x18000dd8c
cmp rdi, qword [0x1800a0ed0]
je 0x18000dd91
call fcn.180054d28
mov rsi, qword [rsp + 0x48]
cmp rsi, r12
je 0x18000de40
cmp rdi, r13
jne 0x18000ddae
call fcn.180054d28
mov r11, r13
jmp 0x18000ddb1
mov r11, qword [rdi]
cmp rsi, qword [r11 + 0x30]
jne 0x18000ddbc
call fcn.180054d28
mov rax, qword [rsi + 0x40]
cmp rax, qword [rsp + 0xbc]
jne 0x18000de40
cmp rdi, r13
jne 0x18000ddd9
call fcn.180054d28
mov rdx, r13
jmp 0x18000dddc
mov rdx, qword [rdi]
cmp rsi, qword [rdx + 0x30]
jne 0x18000dde7
call fcn.180054d28
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.180006ec0
nop
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
cmp qword [rsp + 0x108], r14
jb 0x18000de38
mov rcx, qword [rsp + 0xf0]
call fcn.180054958
mov rax, rbx
jmp 0x18000e0a5
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 0x18000e052
cmp rax, 0xffffffffffffffff
je 0x18000e052
mov byte [rsp + 0x160], r13b
xor edx, edx
mov r8d, 0xfff
lea rcx, [rsp + 0x161]
call fcn.180055bd0
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.180037974
nop
mov r9d, 0xc
mov r8, r14
lea rdx, [rsp + 0x110]
mov rcx, rax
call fcn.18000e1a0
nop
cmp qword [rsp + 0xa0], 0x10
jb 0x18000df2b
mov rcx, qword [rsp + 0x88]
call fcn.180054958
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.180055bd0
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, [0x1800a0ed0]
call fcn.18000e1d4
mov rcx, rax
lea rdx, [rsp + 0x138]
lea r8d, [rsi + 0x19]
call fcn.180055640
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.180006db0
nop
cmp qword [rsp + 0x130], 0x10
jb 0x18000e014
mov rcx, qword [rsp + 0x118]
call fcn.180054958
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 0x18000e04d
mov rcx, qword [rsp + 0xf0]
call fcn.180054958
mov rax, rbx
jmp 0x18000e0a5
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.180006ec0
nop
cmp rdi, 0xffffffffffffffff
je 0x18000e08b
cmp rdi, r13
je 0x18000e08b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rsp + 0x108], r14
jb 0x18000e0a2
mov rcx, qword [rsp + 0xf0]
call fcn.180054958
mov rax, rbx
mov rcx, qword [rsp + 0x1160]
xor rcx, rsp
call fcn.180055580
mov rbx, qword [rsp + 0x11c0]
add rsp, 0x1170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret