Function at 0x180012c50
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xc0
mov qword [rbp - 0x59], 0xfffffffffffffffe
mov qword [rsp + 0x100], rbx
mov rax, qword [0x1802247b8]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov r12, r8
mov rdi, rdx
mov rcx, rdx
call fcn.18003d950
test al, al
je 0x180013004
mov ecx, 8
call fcn.180139f6c
mov rbx, rax
mov qword [rbp - 0x69], rax
xor esi, esi
or r13, 0xffffffffffffffff
test rax, rax
je 0x180012cbf
xor eax, eax
mov qword [rbx], r13
jmp 0x180012cc2
mov rbx, rsi
mov qword [rbp - 0x49], rbx
test rbx, rbx
je 0x180012fd6
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
mov r9d, 7
mov r8d, 0x10000000
mov rdx, rdi
lea rcx, [rbp - 0x49]
call fcn.18004f5f0
mov rbx, qword [rbp - 0x49]
test al, al
je 0x180012fd6
test rbx, rbx
je 0x180012fd6
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x180012fd6
lea rdx, [rbp - 0x41]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0xffffffff
jne 0x180012d38
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x180012fd6
mov r14d, dword [rbp - 0x41]
shl r14, 0x20
mov rax, rdi
add r14, rdi
je 0x180012fd6
lea rdx, [0x18034bc86]
mov ecx, 0xa0000
call fcn.18013a0a0
mov r15, rax
test rax, rax
je 0x180012fd6
mov qword [rbp + 0x17], rax
mov ecx, 0x10
call fcn.180139f6c
mov qword [rbp - 0x69], rax
test rax, rax
je 0x180012d93
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov rcx, rax
call fcn.18004fd00
jmp 0x180012d96
mov rax, rsi
xor ecx, ecx
mov qword [rbp - 0x39], rcx
mov qword [rbp - 0x31], rcx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x39], xmm0
mov rdx, rax
lea rcx, [rbp - 0x39]
call fcn.180014640
nop
mov rsi, qword [rbp - 0x39]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
xor eax, eax
mov edi, eax
nop word [rax + rax]
mov dword [rbp - 0x51], eax
cmp qword [rbx], 0xffffffffffffffff
je 0x180012f92
mov dword [rbp - 0x51], eax
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x51]
mov r8d, 0xa0000
mov rdx, r15
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180012f92
mov r8d, dword [rbp - 0x51]
test r8d, r8d
je 0x180012e28
mov rax, qword [rsi]
mov rdx, r15
mov rcx, rsi
call qword [rax + 8]
mov eax, dword [rbp - 0x51]
add rdi, rax
cmp rdi, r14
mov eax, 0
jb 0x180012dd0
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x10]
mov rax, qword [rsi]
lea rdx, [rbp - 0x29]
mov rcx, rsi
call qword [rax + 0x18]
nop
call fcn.1800161f0
mov rdi, rax
mov edx, 4
mov rcx, rax
call fcn.180017420
mov esi, eax
test eax, eax
je 0x180012f17
xor eax, eax
mov qword [rbp + 7], rax
mov qword [rbp + 0xf], rax
mov qword [rbp + 0xf], 7
mov qword [rbp + 7], rax
mov word [rbp - 9], ax
cmp qword [r12 + 0x18], 8
jb 0x180012e86
mov r9, qword [r12]
jmp 0x180012e89
mov r9, r12
lea r8, [rbp - 0x29]
cmp qword [rbp - 0x11], 8
cmovae r8, qword [rbp - 0x29]
lea rdx, str.TASKSYS
lea rcx, [rbp - 9]
call fcn.180022b70
cmp qword [rdi + 8], 0
je 0x180012eda
mov dword [rsp + 0x28], 0x1cb
lea rax, str.RC::RCTaskUpdateUtils::CheckFileMd5
mov qword [rsp + 0x20], rax
lea r9, str.srcRCTaskUpdateUtils.cpp
lea r8, [rbp - 9]
mov edx, 4
mov rcx, rdi
call fcn.1800174c0
cmp esi, 1
jbe 0x180012ef3
cmp qword [rdi + 8], 0
je 0x180012ef3
lea rdx, [rbp - 9]
mov rcx, rdi
call fcn.180017980
nop
cmp qword [rbp + 0xf], 8
jb 0x180012f03
mov rcx, qword [rbp - 9]
call fcn.180139b7c
mov qword [rbp + 0xf], 7
xor esi, esi
mov qword [rbp + 7], rsi
mov word [rbp - 9], si
jmp 0x180012f19
xor esi, esi
mov rcx, qword [rbp - 0x19]
mov qword [rbp - 0x61], rcx
mov rax, qword [r12 + 0x10]
mov qword [rbp - 0x69], rax
lea rdx, [rbp - 0x61]
lea r8, [rbp - 0x69]
cmp rax, rcx
cmovae rdx, r8
lea rax, [rbp - 0x29]
cmp qword [rbp - 0x11], 8
cmovae rax, qword [rbp - 0x29]
cmp qword [r12 + 0x18], 8
jb 0x180012f53
mov r12, qword [r12]
mov r8, qword [rdx]
test r8, r8
jne 0x180012f5f
mov eax, esi
jmp 0x180012f6a
mov rdx, rax
mov rcx, r12
call fcn.180022250
test eax, eax
sete dil
cmp qword [rbp - 0x11], 8
jb 0x180012f80
mov rcx, qword [rbp - 0x29]
call fcn.180139b7c
mov qword [rbp - 0x11], 7
mov qword [rbp - 0x19], rsi
mov word [rbp - 0x29], si
jmp 0x180012f97
xor dil, dil
xor esi, esi
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x180012fcc
mov eax, r13d
lock xadd dword [rcx + 8], eax
dec eax
jne 0x180012fc8
mov rbx, qword [rbp - 0x31]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock dec dword [rbx + 0xc]
jne 0x180012fc8
mov rcx, qword [rbp - 0x31]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rbp - 0x49]
mov rcx, r15
call fcn.180139b7c
jmp 0x180012fd9
xor dil, dil
test rbx, rbx
je 0x180013000
mov rcx, qword [rbx]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x180012ff4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], rsi
mov rcx, rbx
call fcn.180139b7c
mov qword [rbp - 0x49], rsi
movzx eax, dil
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.180139310
mov rbx, qword [rsp + 0x100]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret