Function at 0x180031ed0
Capabilities:
Get file size
Hash data with md5
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0xf0], rbx
mov rax, qword [0x1800f0938]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov r15, rdx
mov rdi, rcx
mov ecx, 0x68
call fcn.180099da0
mov rbx, rax
mov qword [rsp + 0x68], rax
xor eax, eax
mov qword [rbx + 0x58], rax
mov qword [rbx + 0x60], rax
xor edx, edx
lea r8d, [rax + 0x58]
mov rcx, rbx
call fcn.180099ff0
mov dword [rbx + 4], 0
mov dword [rbx], 0
mov dword [rbx + 8], 0x67452301
mov dword [rbx + 0xc], 0xefcdab89
mov dword [rbx + 0x10], 0x98badcfe
mov dword [rbx + 0x14], 0x10325476
lea rbp, [0x1800cdd88]
mov qword [rsp + 0x40], rbp
or rsi, 0xffffffffffffffff
mov qword [rsp + 0x48], rsi
mov rdx, rdi
lea rcx, [rsp + 0x70]
call fcn.1800158b0
nop
lea rcx, [rsp + 0x40]
mov rax, qword [rsp + 0x40]
call qword [rax + 0x18]
cmp qword [rdi + 0x20], 8
jb 0x180031f9c
mov rcx, qword [rdi + 8]
jmp 0x180031fa0
lea rcx, [rdi + 8]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
cmp rax, 0xffffffffffffffff
jne 0x18003202f
cmp qword [rsp + 0x90], 8
jb 0x180031ff0
mov rcx, qword [rsp + 0x78]
call fcn.180098980
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x40], rbp
cmp rax, 0xffffffffffffffff
je 0x180032014
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
test eax, eax
cmovne rcx, rsi
mov qword [rsp + 0x48], rcx
lea rax, [0x1800cdd38]
mov qword [rsp + 0x40], rax
mov rcx, rbx
call fcn.180098980
xor al, al
jmp 0x1800322e7
cmp qword [rsp + 0x90], 8
jb 0x180032049
mov rcx, qword [rsp + 0x78]
call fcn.180098980
mov rax, qword [rsp + 0x48]
cmp rax, 0xffffffffffffffff
je 0x1800322ad
lea rdx, [rsp + 0x58]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0xffffffff
jne 0x180032072
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x18003207f
mov ecx, dword [rsp + 0x58]
shl rcx, 0x20
add rcx, rdi
jne 0x180032089
mov rax, qword [rsp + 0x48]
jmp 0x1800322ad
mov dword [rsp + 0x50], 0
mov ecx, 0x10000
call fcn.180097720
mov r13, rax
test rax, rax
jne 0x1800320f0
mov qword [rsp + 0x40], rbp
mov rcx, qword [rsp + 0x48]
cmp rcx, 0xffffffffffffffff
je 0x1800320c9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
test eax, eax
cmovne rcx, rsi
mov qword [rsp + 0x48], rcx
lea rax, [0x1800cdd38]
mov qword [rsp + 0x40], rax
mov rcx, rbx
call fcn.180098980
xor al, al
jmp 0x1800322e7
mov rcx, qword [rsp + 0x48]
cmp rcx, 0xffffffffffffffff
je 0x18003223b
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov r8d, 0x10000
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180032211
mov edi, dword [rsp + 0x50]
test edi, edi
setne al
test al, al
je 0x180032211
test edi, edi
je 0x180032211
mov rsi, r13
mov ecx, dword [rbx]
mov ebp, ecx
shr ebp, 3
and ebp, 0x3f
lea edx, [rdi*8]
test edi, edi
jle 0x1800320f0
mov eax, edi
sar eax, 0x1d
add dword [rbx + 4], eax
lea eax, [rcx + rdx]
mov dword [rbx], eax
cmp eax, edx
jae 0x180032172
add dword [rbx + 4], 1
test ebp, ebp
je 0x1800321c3
lea eax, [rbp + rdi]
cmp eax, 0x40
jle 0x18003218a
mov r12d, 0x40
sub r12d, ebp
jmp 0x18003218d
mov r12d, edi
movsxd rsi, r12d
movsxd rax, ebp
lea rcx, [rax + rbx + 0x18]
mov r8, rsi
mov rdx, r13
call fcn.1800999d0
lea r11d, [r12 + rbp]
cmp r11d, 0x40
jl 0x1800320f0
add rsi, r13
sub edi, r12d
lea rdx, [rbx + 0x18]
mov rcx, rbx
call fcn.18004e5f0
cmp edi, 0x40
jl 0x1800321f5
mov ebp, edi
shr rbp, 6
mov eax, ebp
neg eax
shl eax, 6
add edi, eax
nop
nop
nop
mov rdx, rsi
mov rcx, rbx
call fcn.18004e5f0
add rsi, 0x40
sub rbp, 1
jne 0x1800321e0
test edi, edi
je 0x1800320f0
movsxd r8, edi
lea rcx, [rbx + 0x18]
mov rdx, rsi
call fcn.1800999d0
jmp 0x1800320f0
mov rcx, qword [rsp + 0x48]
cmp rcx, 0xffffffffffffffff
je 0x180032241
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
test eax, eax
mov rdi, 0xffffffffffffffff
cmovne rcx, rdi
mov qword [rsp + 0x48], rcx
jmp 0x180032245
or rdi, 0xffffffffffffffff
jmp 0x180032245
or rdi, 0xffffffffffffffff
mov rcx, r13
call fcn.180099070
lea rdx, [rbx + 0x58]
mov rcx, rbx
call fcn.18004ee90
mov rax, qword [rbx + 0x58]
mov qword [r15], rax
mov rax, qword [rbx + 0x60]
mov qword [r15 + 8], rax
lea rax, [0x1800cdd88]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x48]
cmp rcx, 0xffffffffffffffff
je 0x180032295
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
test eax, eax
cmovne rcx, rdi
mov qword [rsp + 0x48], rcx
lea rax, [0x1800cdd38]
mov qword [rsp + 0x40], rax
mov rcx, rbx
call fcn.180098980
mov al, 1
jmp 0x1800322e7
mov qword [rsp + 0x40], rbp
cmp rax, 0xffffffffffffffff
je 0x1800322d1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
test eax, eax
cmovne rcx, rsi
mov qword [rsp + 0x48], rcx
lea rax, [0x1800cdd38]
mov qword [rsp + 0x40], rax
mov rcx, rbx
call fcn.180098980
xor al, al
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.180099050
mov rbx, qword [rsp + 0xf0]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret