Function at 0x180031950
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, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x90], rbx
mov r15, rdx
mov rdi, rcx
mov ecx, 0x68
call fcn.1800a2300
mov rbx, rax
mov qword [rsp + 0x38], 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.1800a3870
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, [0x1800d85c8]
mov qword [rsp + 0x40], rbp
or rsi, 0xffffffffffffffff
mov qword [rsp + 0x48], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r9d, [rsi + 2]
mov r8d, 0x80000000
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.180043470
test al, al
jne 0x180031a4a
mov qword [rsp + 0x40], rbp
mov rcx, qword [rsp + 0x48]
cmp rcx, rsi
je 0x180031a2f
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, [0x1800d8578]
mov qword [rsp + 0x40], rax
mov rcx, rbx
call fcn.1800a2030
xor al, al
jmp 0x180031ce4
mov rcx, qword [rsp + 0x48]
cmp rcx, 0xffffffffffffffff
je 0x180031cad
lea rdx, [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0xffffffff
jne 0x180031a78
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x180031a88
mov ecx, dword [rsp + 0xa8]
shl rcx, 0x20
add rcx, rdi
jne 0x180031a92
mov rcx, qword [rsp + 0x48]
jmp 0x180031cad
mov dword [rsp + 0xa0], 0
mov ecx, 0x10000
call fcn.1800a09e0
mov r13, rax
test rax, rax
jne 0x180031af0
mov qword [rsp + 0x40], rbp
mov rcx, qword [rsp + 0x48]
cmp rcx, 0xffffffffffffffff
je 0x180031ad5
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, [0x1800d8578]
mov qword [rsp + 0x40], rax
mov rcx, rbx
call fcn.1800a2030
xor al, al
jmp 0x180031ce4
mov rcx, qword [rsp + 0x48]
cmp rcx, 0xffffffffffffffff
je 0x180031c3b
mov dword [rsp + 0xa0], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xa0]
mov r8d, 0x10000
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180031c11
mov edi, dword [rsp + 0xa0]
test edi, edi
je 0x180031c11
test edi, edi
setne al
test al, al
je 0x180031c11
mov rsi, r13
mov ecx, dword [rbx]
mov ebp, ecx
shr ebp, 3
and ebp, 0x3f
lea edx, [rdi*8]
test edi, edi
jle 0x180031af0
mov eax, edi
sar eax, 0x1d
add dword [rbx + 4], eax
lea eax, [rcx + rdx]
mov dword [rbx], eax
cmp eax, edx
jae 0x180031b7b
add dword [rbx + 4], 1
test ebp, ebp
je 0x180031bcc
lea eax, [rbp + rdi]
cmp eax, 0x40
jle 0x180031b93
mov r12d, 0x40
sub r12d, ebp
jmp 0x180031b96
mov r12d, edi
movsxd rsi, r12d
movsxd rax, ebp
lea rcx, [rax + rbx + 0x18]
mov r8, rsi
mov rdx, r13
call fcn.1800a2480
lea r11d, [r12 + rbp]
cmp r11d, 0x40
jl 0x180031af0
add rsi, r13
sub edi, r12d
lea rdx, [rbx + 0x18]
mov rcx, rbx
call fcn.180051050
cmp edi, 0x40
jl 0x180031bf5
mov ebp, edi
shr rbp, 6
mov eax, ebp
neg eax
shl eax, 6
add edi, eax
mov rdx, rsi
mov rcx, rbx
call fcn.180051050
add rsi, 0x40
sub rbp, 1
jne 0x180031be0
test edi, edi
je 0x180031af0
movsxd r8, edi
lea rcx, [rbx + 0x18]
mov rdx, rsi
call fcn.1800a2480
jmp 0x180031af0
mov rcx, qword [rsp + 0x48]
cmp rcx, 0xffffffffffffffff
je 0x180031c41
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 0x180031c45
or rdi, 0xffffffffffffffff
jmp 0x180031c45
or rdi, 0xffffffffffffffff
mov rcx, r13
call fcn.1800a22f0
lea rdx, [rbx + 0x58]
mov rcx, rbx
call fcn.1800518f0
mov rax, qword [rbx + 0x58]
mov qword [r15], rax
mov rax, qword [rbx + 0x60]
mov qword [r15 + 8], rax
lea rax, [0x1800d85c8]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x48]
cmp rcx, 0xffffffffffffffff
je 0x180031c95
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, [0x1800d8578]
mov qword [rsp + 0x40], rax
mov rcx, rbx
call fcn.1800a2030
mov al, 1
jmp 0x180031ce4
mov qword [rsp + 0x40], rbp
cmp rcx, 0xffffffffffffffff
je 0x180031cce
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, [0x1800d8578]
mov qword [rsp + 0x40], rax
mov rcx, rbx
call fcn.1800a2030
xor al, al
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret