Function at 0x18000e954
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.18006e000
sub rsp, rax
mov qword [rsp + 0xd0], 0xfffffffffffffffe
mov qword [rsp + 0x11c0], rbx
mov rax, qword [0x1800a1658]
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 [0x1800a3eb4], r13d
je 0x18000e9c1
mov dword [0x1800a3eb4], r13d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
cmp rsi, r13
jne 0x18000e9f2
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.180007288
mov rax, rbx
jmp 0x18000efe5
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.180007618
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.180008f4c
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.180008f4c
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.180008f4c
movaps xmm5, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm5
lea rax, [fcn.18005a110]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0xd8]
call fcn.18000cad8
mov edx, dword [0x1800a838c]
lea rdi, [0x1800a8280]
test dl, 1
jne 0x18000eb8c
or edx, 1
mov dword [0x1800a838c], edx
mov rcx, r14
call fcn.1800592c8
cmp rax, r13
je 0x18000eb3b
mov qword [rax], rdi
jmp 0x18000eb3e
mov rax, r13
mov qword [0x1800a8280], rax
mov rcx, rdi
call fcn.180029ee4
mov qword [0x1800a82b0], rax
mov byte [rax + 0x69], 1
mov rax, qword [0x1800a82b0]
mov qword [rax + 8], rax
mov rax, qword [0x1800a82b0]
mov qword [rax], rax
mov rax, qword [0x1800a82b0]
mov qword [rax + 0x10], rax
mov qword [0x1800a82b8], r13
lea rcx, [0x1800787e0]
call fcn.18005a38c
nop
mov dword [rsp + 0xa8], r13d
xor edx, edx
lea r8d, [rdx + 0x20]
lea rcx, [rsp + 0xac]
call fcn.18005a150
lea r8, [rsp + 0xa8]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
cmp eax, r13d
jne 0x18000ec02
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.180007288
nop
cmp qword [rsp + 0x108], r14
jb 0x18000ebfa
mov rcx, qword [rsp + 0xf0]
call fcn.180058ed8
mov rax, rbx
jmp 0x18000efe5
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.18000f748
mov rdi, qword [0x1800a82b0]
mov rax, qword [rsp + 0x60]
cmp rax, r13
je 0x18000ec40
cmp rax, qword [0x1800a8280]
je 0x18000ec45
call fcn.1800592a8
mov rax, qword [rsp + 0x68]
cmp rax, rdi
je 0x18000ec8b
mov rcx, qword [rax + 0x30]
cmp qword [rax + 0x38], r14
jb 0x18000ec5f
mov r9, qword [rax + 0x20]
jmp 0x18000ec63
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rcx
mov r8, qword [rsp + 0x100]
xor edx, edx
lea rcx, [rsp + 0xe8]
call fcn.18000d6fc
cmp eax, r13d
jl 0x18000ec8b
lea rax, [rsp + 0x60]
jmp 0x18000eca8
mov rax, qword [0x1800a82b0]
mov qword [rsp + 0x48], rax
mov rax, qword [0x1800a8280]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x40]
movdqu xmm0, xmmword [rax]
movdqu xmmword [rsp + 0x40], xmm0
mov r12, qword [0x1800a82b0]
mov rdi, qword [rsp + 0x40]
cmp rdi, r13
je 0x18000eccc
cmp rdi, qword [0x1800a8280]
je 0x18000ecd1
call fcn.1800592a8
mov rsi, qword [rsp + 0x48]
cmp rsi, r12
je 0x18000ed80
cmp rdi, r13
jne 0x18000ecee
call fcn.1800592a8
mov r11, r13
jmp 0x18000ecf1
mov r11, qword [rdi]
cmp rsi, qword [r11 + 0x30]
jne 0x18000ecfc
call fcn.1800592a8
mov rax, qword [rsi + 0x40]
cmp rax, qword [rsp + 0xbc]
jne 0x18000ed80
cmp rdi, r13
jne 0x18000ed19
call fcn.1800592a8
mov rdx, r13
jmp 0x18000ed1c
mov rdx, qword [rdi]
cmp rsi, qword [rdx + 0x30]
jne 0x18000ed27
call fcn.1800592a8
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.180007288
nop
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
cmp qword [rsp + 0x108], r14
jb 0x18000ed78
mov rcx, qword [rsp + 0xf0]
call fcn.180058ed8
mov rax, rbx
jmp 0x18000efe5
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 0x18000ef92
cmp rax, 0xffffffffffffffff
je 0x18000ef92
mov byte [rsp + 0x160], r13b
xor edx, edx
mov r8d, 0xfff
lea rcx, [rsp + 0x161]
call fcn.18005a150
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.18003a214
nop
mov r9d, 0xc
mov r8, r14
lea rdx, [rsp + 0x110]
mov rcx, rax
call fcn.18000f0e0
nop
cmp qword [rsp + 0xa0], 0x10
jb 0x18000ee6b
mov rcx, qword [rsp + 0x88]
call fcn.180058ed8
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.18005a150
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, [0x1800a8280]
call fcn.18000f114
mov rcx, rax
lea rdx, [rsp + 0x138]
lea r8d, [rsi + 0x19]
call fcn.180059bc0
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.180007178
nop
cmp qword [rsp + 0x130], 0x10
jb 0x18000ef54
mov rcx, qword [rsp + 0x118]
call fcn.180058ed8
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 0x18000ef8d
mov rcx, qword [rsp + 0xf0]
call fcn.180058ed8
mov rax, rbx
jmp 0x18000efe5
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.180007288
nop
cmp rdi, 0xffffffffffffffff
je 0x18000efcb
cmp rdi, r13
je 0x18000efcb
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rsp + 0x108], r14
jb 0x18000efe2
mov rcx, qword [rsp + 0xf0]
call fcn.180058ed8
mov rax, rbx
mov rcx, qword [rsp + 0x1160]
xor rcx, rsp
call fcn.180059b00
mov rbx, qword [rsp + 0x11c0]
add rsp, 0x1170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret