Function at 0x140077cc0
Capabilities:
Get file size

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x11e0]
mov eax, 0x12e0
call fcn.140228900
sub rsp, rax
mov rax, qword [0x1402fa010]
xor rax, rsp
mov qword [rbp + 0x11d0], rax
mov rsi, r8
movsxd r15, edx
mov r14, rcx
xor ebx, ebx
test r8, r8
jne 0x140077d2a
mov dword [rbp - 0x48], ebx
lea rax, [0x140265c88]
mov qword [rbp - 0x38], rax
mov r8, r15
lea r9, [rbp - 0x50]
mov edx, 0x1074
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x14007804e
mov dword [rbp + 0x18], ebx
mov rdx, qword [r8 + 0x88]
cmp dword [rdx - 8], 1
jle 0x140077d49
mov edx, dword [rdx - 0x10]
lea rcx, [r8 + 0x88]
call fcn.140018d80
mov rax, qword [rsi + 0x88]
mov qword [rbp + 0x28], rax
mov r12, r15
lea r9, [rbp + 0x10]
mov r8, r15
mov edx, 0x1074
mov rcx, qword [r14 + 8]
call qword [sym.imp.USER32.dll_SendMessageW]
mov edx, 0xfffffff0
mov rcx, qword [r14 + 8]
call qword [sym.imp.USER32.dll_GetWindowLongW]
test al, 1
je 0x14007804e
lea rdx, [rbp + 0x7c0]
mov rcx, qword [rsi + 0x78]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov rdi, 0xffffffffffffffff
test eax, eax
je 0x140077fbc
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x7c0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, rdi
je 0x140077fb3
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140077e3e
mov r8d, 0x400
lea rdx, [rbp + 0x9d0]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_StrFormatByteSizeW]
test rax, rax
je 0x140077e30
mov dword [rbp + 0x78], 1
lea rax, [rbp + 0x9d0]
mov qword [rbp + 0x88], rax
lea r9, [rbp + 0x70]
mov r8, r12
mov edx, 0x1074
mov rcx, qword [r14 + 8]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rax, qword [rsp + 0x40]
mov qword [rsi + 0xb0], rax
jmp 0x140077e45
mov qword [rsi + 0xb0], rdi
lea r9, [rbp + 0xd8]
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x140077fac
lea rdx, [rbp + 0xf0]
lea rcx, [rbp + 0xd8]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea r8, [rbp + 0xe0]
lea rdx, [rbp + 0xf0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
mov dword [rsp + 0x28], 0xff
lea rax, [rbp + 0x5c0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rbp + 0xe0]
lea edx, [r9 + 2]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetDateFormatW]
mov dword [rsp + 0x28], 0xff
lea rax, [rbp + 0x3c0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rbp + 0xe0]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetTimeFormatW]
mov qword [rbp + 0xd0], rbx
call fcn.1400195b0
mov rcx, rax
test rax, rax
je 0x14007806f
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140038716.0]
add rax, 0x18
mov qword [rbp + 0xd0], rax
lea r9, [rbp + 0x3c0]
lea r8, [rbp + 0x5c0]
lea rdx, [0x1402947f8]
lea rcx, [rbp + 0xd0]
call fcn.14001c3d0
mov dword [rsp + 0x58], 3
mov rbx, qword [rbp + 0xd0]
cmp dword [rbx - 8], 1
jle 0x140077f60
mov edx, dword [rbx - 0x10]
lea rcx, [rbp + 0xd0]
call fcn.140018d80
mov rbx, qword [rbp + 0xd0]
mov qword [rsp + 0x68], rbx
lea r9, [rsp + 0x50]
mov r8, r12
mov edx, 0x1074
mov rcx, qword [r14 + 8]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rax, qword [rbp + 0xd8]
mov qword [rsi + 0xc0], rax
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140077fb3
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038716.0]
jmp 0x140077fb3
mov qword [rsi + 0xc0], rbx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov r8d, 0x2b8
lea rcx, [rbp + 0x100]
call fcn.1401f6840
mov dword [rsp + 0x20], 0x408
lea r8, [rbp + 0x100]
mov rcx, qword [rsi + 0x78]
call fcn.140079a70
test rax, rax
je 0x140078042
mov dword [rsp + 0x58], 2
lea rax, [rbp + 0x318]
mov qword [rsp + 0x68], rax
lea r9, [rsp + 0x50]
mov r8, r12
mov edx, 0x1074
mov rcx, qword [r14 + 8]
call qword [sym.imp.USER32.dll_SendMessageW]
lea rax, [rbp + 0x318]
nop
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140078020
mov r8d, edi
lea rdx, [rbp + 0x318]
lea rcx, [rsi + 0xb8]
call fcn.140018f70
jmp 0x14007804e
lea rcx, [rsi + 0xb8]
call fcn.140018ce0
mov rcx, qword [rbp + 0x11d0]
xor rcx, rsp
call fcn.1401f3bf0
add rsp, 0x12e0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80004005
call fcn.140019320
int3