Function at 0x140041198
Capabilities:
Get file size

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r14
sub rsp, 0x50
mov rsi, rcx
xor edi, edi
mov rcx, qword [str.P5_n_]
lea r12, str.P5_n_
lea r14, [0x140009808]
cmp rcx, r12
je 0x1400411ed
test byte [rcx + 0x1c], 4
je 0x1400411ed
cmp byte [rcx + 0x19], 5
jb 0x1400411ed
mov rcx, qword [rcx + 0x10]
mov edx, 0x98
mov r8, r14
call fcn.14000ffa8
mov rsi, qword [rsi + 0x28]
mov dword [rsp + 0x38], 2
and qword [rsp + 0x30], rdi
mov rax, qword [rsi + 0x450]
xor r9d, r9d
mov edx, 0x80000000
mov rcx, qword [rax + 0x48]
lea r8d, [r9 + 1]
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call fcn.140079cec
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140041289
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0xffffffff
jne 0x140041280
mov rax, qword [str.P5_n_]
cmp rax, r12
je 0x14004127e
test byte [rax + 0x1c], 4
je 0x14004127e
cmp byte [rax + 0x19], 2
jb 0x14004127e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.P5_n_]
mov edx, 0x99
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r14
call fcn.1400100e0
xor edi, edi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsi + 0x38]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
jne 0x1400412e3
mov rax, qword [str.P5_n_]
cmp rax, r12
je 0x1400412d5
test byte [rax + 0x1c], 4
je 0x1400412d5
cmp byte [rax + 0x19], 2
jb 0x1400412d5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.P5_n_]
mov edx, 0x9a
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r14
call fcn.1400100e0
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
jmp 0x1400412e8
mov rax, qword [rsp + 0x48]
movzx ebx, ax
movzx eax, word [rsp + 0x4a]
imul ebx, ebx, 0x3c
add ebx, eax
movzx eax, word [rsp + 0x4c]
imul ebx, ebx, 0x3c
add ebx, eax
mov rax, qword [0x1400a3ef0]
lock add dword [rax + 0x18], 1
mov rax, qword [0x1400a3ef0]
lock add dword [rax + 0x30], 1
mov rcx, qword [0x1400a3ef0]
mov eax, dword [rsi + 0x490]
lock xadd dword [rcx + 0x1c], eax
mov rcx, qword [0x1400a3ef0]
mov eax, dword [rsi + 0x490]
lock xadd dword [rcx + 0x34], eax
lea rcx, [0x1400a3f60]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r10, qword [0x1400a3ef0]
mov ecx, dword [0x1400a3e94]
mov r11d, dword [0x1400a3efc]
add dword [r10 + 0x2c], edi
add ecx, ebx
add r11d, ebx
mov r8d, 0x88888889
lea rbx, [r10 + 0x20]
mov eax, r8d
mov dword [0x1400a3e94], ecx
lea r9, [r10 + 0x18]
mov dword [0x1400a3efc], r11d
mul r11d
shr edx, 5
mov eax, r8d
lea r8, [r10 + 0x14]
add dword [r8], edi
mov dword [rbx], edx
mul ecx
shr edx, 5
lea rax, [r10 + 0x1c]
mov dword [r10 + 0x38], edx
mov qword [rsp + 0x28], rax
lea rdx, [r10 + 0x28]
lea rcx, [r10 + 0x24]
mov qword [rsp + 0x20], rbx
call fcn.14008bd50
test eax, eax
je 0x1400413f6
mov rax, qword [str.P5_n_]
cmp rax, r12
je 0x1400413f6
test byte [rax + 0x1c], 4
je 0x1400413f6
cmp byte [rax + 0x19], 2
jb 0x1400413f6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.P5_n_]
mov edx, 0x9b
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r14
call fcn.1400100e0
mov rcx, qword [0x1400a3ef0]
lea r9, [rcx + 0x34]
lea r8, [rcx + 0x38]
lea rdx, [rcx + 0x30]
add rcx, 0x2c
call fcn.14008b928
test eax, eax
je 0x14004144f
mov rdx, qword [str.P5_n_]
cmp rdx, r12
je 0x14004144f
test byte [rdx + 0x1c], 4
je 0x14004144f
cmp byte [rdx + 0x19], 2
jb 0x14004144f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.P5_n_]
mov edx, 0x9c
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r14
call fcn.1400100e0
lea rcx, [0x1400a3f60]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov r12, qword [rsp + 0x78]
mov eax, 1
add rsp, 0x50
pop r14
ret