Function at 0x18000dbf0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xc0
mov rax, qword [0x1800ae1f0]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov qword [rbp - 0x69], rdx
mov r13, rcx
mov esi, 0x139f
xor ebx, ebx
cmp qword [rcx + 8], 0xffffffffffffffff
cmovne esi, ebx
mov qword [rdx + 8], rbx
lea rcx, [rbp - 0x39]
cmp rdx, rcx
je 0x18000dc4d
mov rcx, qword [rdx]
mov qword [rdx], rbx
test rcx, rcx
je 0x18000dc4d
call fcn.18004e190
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x19], xmm0
mov dword [rbp - 9], eax
mov qword [rbp - 0x39], rax
mov dword [rbp - 0x31], eax
movups xmmword [rbp - 1], xmm0
mov qword [rbp + 0xf], rax
mov qword [rbp - 0x41], rbx
mov dword [rbp - 0x5d], ebx
mov r14d, 0x44c
test esi, esi
jne 0x18000df49
mov rcx, qword [r13 + 8]
mov esi, 0x139f
cmp rcx, 0xffffffffffffffff
cmovne esi, ebx
mov dword [rbp - 0x5d], ebx
je 0x18000dcc6
mov dword [rbp - 0x61], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x61]
mov r8d, 4
lea rdx, [rbp - 0x5d]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18000dcbe
mov esi, r14d
cmp dword [rbp - 0x61], 0
cmovne esi, ebx
jmp 0x18000dcc6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x18000df49
mov eax, dword [rbp - 0x5d]
sub eax, 1
je 0x18000de7b
sub eax, 5
je 0x18000de64
mov rcx, qword [r13 + 8]
mov esi, 0x139f
cmp eax, 0xa0d0d04
je 0x18000dda5
cmp rcx, 0xffffffffffffffff
cmovne esi, ebx
mov dword [rbp - 0x61], ebx
je 0x18000dd37
mov dword [rbp - 0x59], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x59]
mov r8d, 4
lea rdx, [rbp - 0x61]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18000dd2f
mov esi, r14d
cmp dword [rbp - 0x59], 0
cmovne esi, ebx
jmp 0x18000dd37
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rdi, rbx
mov qword [rbp - 0x29], rbx
mov r15, rbx
test esi, esi
jne 0x18000dda0
mov eax, dword [rbp - 0x61]
add eax, 0xfffffff8
mov esi, eax
mov ecx, eax
call fcn.18004e838
mov rdi, rax
mov r15, rax
mov r8d, esi
xor edx, edx
mov rcx, rax
call fcn.180050e40
mov dword [rbp - 0x55], ebx
mov r8d, dword [rbp - 0x61]
add r8d, 0xfffffff8
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x55]
mov rdx, r15
mov rcx, qword [r13 + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18000dd98
mov esi, r14d
cmp dword [rbp - 0x55], 0
cmovne esi, ebx
jmp 0x18000dda0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x18000df3c
cmp rcx, 0xffffffffffffffff
cmovne esi, ebx
je 0x18000dde2
mov dword [rbp - 0x51], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x51]
mov r8d, 0x14
lea rdx, [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18000ddda
mov esi, r14d
cmp dword [rbp - 0x51], 0
cmovne esi, ebx
jmp 0x18000dde2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov r12d, dword [rbp - 0x19]
add r12d, 0xffffffe8
mov rdi, rbx
mov qword [rbp - 0x29], rbx
mov r15, rbx
test esi, esi
jne 0x18000de5f
movsxd rsi, r12d
mov rcx, rsi
call fcn.18004e838
mov rdi, rax
mov r15, rax
mov r8, rsi
xor edx, edx
mov rcx, rax
call fcn.180050e40
mov dword [rbp - 0x4d], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x4d]
mov r8d, r12d
mov rdx, r15
mov rcx, qword [r13 + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18000de42
mov esi, r14d
cmp dword [rbp - 0x4d], 0
cmovne esi, ebx
jmp 0x18000de4a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x18000de5f
mov esi, ebx
cmp dword [rbp - 0x15], 0x1a2b3c4d
mov eax, 0xd
cmovne esi, eax
jmp 0x18000df3c
lea r8, [rbp - 0x41]
lea rdx, [rbp - 1]
mov rcx, r13
call fcn.18000da70
mov esi, eax
jmp 0x18000df49
mov rcx, qword [r13 + 8]
mov esi, 0x139f
cmp rcx, 0xffffffffffffffff
cmovne esi, ebx
je 0x18000dec1
mov dword [rbp - 0x49], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x49]
mov r8d, 0xc
lea rdx, [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18000deb9
mov esi, r14d
cmp dword [rbp - 0x49], 0
cmovne esi, ebx
jmp 0x18000dec1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov r12d, dword [rbp - 0x39]
add r12d, 0xfffffff0
mov rdi, rbx
mov qword [rbp - 0x29], rbx
mov r15, rbx
test esi, esi
jne 0x18000df3c
movsxd rsi, r12d
mov rcx, rsi
call fcn.18004e838
mov rdi, rax
mov r15, rax
mov r8, rsi
xor edx, edx
mov rcx, rax
call fcn.180050e40
mov dword [rbp - 0x45], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x45]
mov r8d, r12d
mov rdx, r15
mov rcx, qword [r13 + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18000df21
mov esi, r14d
cmp dword [rbp - 0x45], 0
cmovne esi, ebx
jmp 0x18000df29
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x18000df3c
mov esi, ebx
cmp word [rbp - 0x35], 1
mov eax, 0xd
cmovne esi, eax
test r15, r15
je 0x18000df49
mov rcx, rdi
call fcn.18004e190
cmp dword [rbp - 0x5d], 6
jne 0x18000df53
test esi, esi
je 0x18000df6d
cmp esi, r14d
je 0x18000dfea
test esi, esi
je 0x18000dc75
mov rbx, qword [rbp - 0x41]
jmp 0x18000dff6
mov eax, dword [rbp + 0xf]
mov dword [r13 + 0x1c], eax
mov ecx, dword [rbp + 7]
shl rcx, 0x20
mov eax, dword [rbp + 0xb]
or rcx, rax
movabs rax, 0x431bde82d7b634db
imul rcx
sar rdx, 0x12
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul eax, edx, 0xf4240
sub ecx, eax
mov dword [r13 + 0x18], ecx
lea rax, [r13 + 0x14]
mov dword [rax], edx
mov rcx, qword [rbp - 0x41]
mov rdx, qword [rbp - 0x69]
mov qword [rdx + 8], rax
lea rax, [rbp - 0x29]
cmp rdx, rax
je 0x18000dfdb
mov rax, qword [rdx]
mov qword [rdx], rcx
test rax, rax
je 0x18000dfe5
mov rcx, rax
call fcn.18004e190
mov r14d, ebx
jmp 0x18000dff3
test rcx, rcx
je 0x18000dfe5
call fcn.18004e190
mov r14d, ebx
jmp 0x18000dff3
mov byte [r13 + 0x10], 1
mov rbx, qword [rbp - 0x41]
mov esi, r14d
test rbx, rbx
je 0x18000e003
mov rcx, rbx
call fcn.18004e190
mov eax, esi
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.18004e170
mov rbx, qword [rsp + 0x110]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret