Function at 0x1800159e0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x1800eb008]
xor rax, rsp
mov qword [rbp + 0xa8], rax
mov r15, qword [rbp + 0x100]
mov rdi, r8
mov r14, rdx
mov rsi, rcx
test rdx, rdx
je 0x180015d5b
cmp rcx, 0xffffffffffffffff
je 0x180015d5b
mov qword [rsp + 0x1f8], rbx
xor ebx, ebx
test r8, r8
je 0x180015a82
xor eax, eax
lea r9d, [rbx + 2]
mov qword [r8], rax
lea rdx, [rbx - 0x16]
mov qword [r8 + 8], rax
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180015a82
lea r9, [rbp + 0xa0]
mov dword [rbp + 0xa0], ebx
lea r8d, [rbx + 0x10]
mov qword [rsp + 0x20], rbx
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180015cbc
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180015cbc
xor eax, eax
mov dword [rsp + 0x30], ebx
mov qword [r14], rax
lea r9, [rsp + 0x30]
mov rdx, r14
mov qword [r14 + 8], rax
mov rcx, rsi
mov qword [rsp + 0x20], rbx
lea r8d, [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180015cbc
movzx eax, word [r14]
cmp ax, word [0x1800d51f0]
je 0x180015b03
mov dword [r15], ebx
xor eax, eax
mov rbx, qword [rsp + 0x1f8]
mov rcx, qword [rbp + 0xa8]
xor rcx, rsp
call fcn.180072920
add rsp, 0x1b0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
xor eax, eax
lea rcx, [rbp - 0x60]
xor edx, edx
mov qword [rsp + 0x60], rax
mov r8d, 0xf8
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
call fcn.18008c000
xor eax, eax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rdx, rbx
mov qword [rsp + 0x40], rax
mov rcx, rsi
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180015cbc
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rbx
mov r8d, 0x40
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180015cbc
movsxd rdx, dword [rbp - 0x64]
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180015cbc
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rbx
mov r8d, 0xf8
lea rdx, [rbp - 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180015cbc
movzx eax, word [rbp - 0x5a]
mov r9d, 1
dec eax
xor r8d, r8d
cdqe
mov rcx, rsi
lea rdx, [rax + rax*4]
shl rdx, 3
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180015cbc
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rbx
mov r8d, 0x28
lea rdx, [rsp + 0x38]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180015cbc
mov ecx, dword [rsp + 0x4c]
xor r9d, r9d
add ecx, dword [rsp + 0x48]
xor r8d, r8d
mov edi, ecx
mov edx, ecx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180015cbc
xor eax, eax
mov qword [rsp + 0x20], rbx
mov qword [r14], rax
lea r9, [rsp + 0x30]
mov rdx, r14
mov qword [r14 + 8], rax
mov rcx, rsi
lea r8d, [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180015cbc
movabs rax, 0xdeadbeef00000000
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
cmp qword [r14], rax
jne 0x180015cc6
lea rdx, [rdi + 4]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180015cbc
xor eax, eax
mov qword [rsp + 0x20], rbx
mov qword [r14], rax
lea r9, [rsp + 0x30]
mov rdx, r14
mov qword [r14 + 8], rax
mov rcx, rsi
lea r8d, [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180015d4f
call fcn.180002050
jmp 0x180015add
mov edx, dword [r14]
xor eax, eax
add rdx, 4
mov byte [rbp + 0xa0], bl
add rdx, rdi
mov dword [rbp + 0xa1], eax
mov word [rbp + 0xa5], ax
mov byte [rbp + 0xa7], al
mov dword [rsp + 0x30], ebx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180015d4f
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rbx
mov r8d, 8
lea rdx, [rbp + 0xa0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180015d4f
cmp dword [rsp + 0x30], ebx
je 0x180015d4f
movzx eax, word [rbp + 0xa0]
cmp ax, word [0x1800d51f4]
jne 0x180015d4f
movzx eax, byte [rbp + 0xa2]
cmp al, byte [str.Um0:]
jne 0x180015d4f
movsd xmm0, qword [rbp + 0xa0]
movsd qword [r14], xmm0
mov dword [r15], 1
jmp 0x180015adb
mov eax, 0x80070057
jmp 0x180015ae5