Function at 0x140003214
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov r15, rdx
mov rsi, rcx
or rdi, 0xffffffffffffffff
mov qword [rcx], rdi
and qword [rcx + 8], 0
mov eax, 0x20000
mov qword [rcx + 0x10], rax
and qword [rcx + 0x18], 0
mov qword [rcx + 0x20], rax
movzx eax, r8b
lea r13d, [rax*2 + 2]
xor r12d, r12d
lea r14, [0x140060048]
cmp qword [rsi], rdi
je 0x14000327e
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], r13d
mov r9d, 3
mov r8d, 0x40000000
mov rdx, r15
mov rcx, rsi
call fcn.14003028c
mov edi, eax
test eax, eax
js 0x140003592
test r12, r12
jne 0x14000343b
xor r14d, r14d
lea rdx, [rbp - 0x20]
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x140003303
call fcn.14002e738
mov edi, eax
mov rcx, qword [0x140060048]
lea rax, [0x140060048]
cmp rcx, rax
je 0x140003309
test byte [rcx + 0x1c], 1
je 0x140003309
lea edx, [r12 + 0x11]
mov r9d, edi
lea r8, [0x140052a20]
mov rcx, qword [rcx + 0x10]
call fcn.1400012f0
jmp 0x140003309
mov r14, qword [rbp - 0x20]
xor edi, edi
test edi, edi
js 0x1400035d5
call fcn.1400305d4
mov eax, eax
cmp r14, rax
jb 0x14000343b
or rdi, 0xffffffffffffffff
cmp qword [rsi], rdi
je 0x140003336
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi], rdi
and qword [rbp + 0x58], 0
mov r8, r15
lea rdx, str._ls.bak
lea rcx, [rbp + 0x58]
call fcn.14002e7c4
test eax, eax
jns 0x14000336c
mov rcx, qword [rbp + 0x58]
test rcx, rcx
je 0x140003360
call fcn.140034674
lea r14, [0x140060048]
jmp 0x140003433
call qword [sym.imp.mpclient.dll_MpUtilsExportFunctions]
mov rdi, qword [rbp + 0x58]
mov rcx, rdi
mov rax, qword [rax + 0x168]
call qword [0x14003b4b0]
test eax, eax
jns 0x1400033d8
mov rcx, qword [0x140060048]
lea r14, [0x140060048]
cmp rcx, r14
je 0x1400033c9
test byte [rcx + 0x1c], 1
je 0x1400033c9
mov edx, 0x12
lfence
mov r9d, eax
lea r8, [0x140040d08]
mov rcx, qword [0x140060048]
mov rcx, qword [rcx + 0x10]
call fcn.1400012f0
mov rdi, qword [rbp + 0x58]
test rdi, rdi
je 0x14000342f
mov rcx, rdi
call fcn.140034674
jmp 0x14000342f
lfence
xor r8d, r8d
mov rdi, qword [rbp + 0x58]
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x14000341b
call fcn.14002e738
test eax, eax
jns 0x14000341b
mov rcx, qword [0x140060048]
lea r14, [0x140060048]
cmp rcx, r14
je 0x1400033c9
test byte [rcx + 0x1c], 1
je 0x1400033c9
mov edx, 0x13
jmp 0x1400033a8
test rdi, rdi
je 0x140003428
mov rcx, rdi
call fcn.140034674
lea r14, [0x140060048]
or rdi, 0xffffffffffffffff
inc r12
jmp 0x14000326d
mov r14d, 2
cmp r13d, r14d
je 0x140003450
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000346f
mov word [rbp + 0x50], 0xfeff
lea r8, [rbp + 0x50]
mov rdx, r14
mov rcx, qword [rsi]
call fcn.14003035c
mov edi, eax
test eax, eax
js 0x1400035e0
xor eax, eax
mov qword [rbp - 0x10], rax
mov r9d, r14d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x1400034c4
call fcn.14002e738
mov edi, eax
mov rax, qword [0x140060048]
lea r12, [0x140060048]
cmp rax, r12
je 0x1400034d4
test byte [rax + 0x1c], 1
je 0x1400034d4
mov edx, 0x10
mov r9d, edi
lea r8, [0x140052a20]
mov rcx, qword [rax + 0x10]
call fcn.1400012f0
jmp 0x1400034cd
xor edi, edi
lea r12, [0x140060048]
mov rax, qword [0x140060048]
test edi, edi
js 0x140003556
mov rax, r14
mul qword [rsi + 0x10]
mov r15, 0xffffffffffffffff
cmovo rax, r15
mov rcx, rax
call fcn.1400346d8
mov rdi, rax
mov rcx, qword [rsi + 8]
cmp rcx, rax
je 0x140003511
test rcx, rcx
je 0x14000350d
call fcn.140034674
and qword [rsi + 8], 0
mov qword [rsi + 8], rdi
mov rax, r14
mul qword [rsi + 0x20]
cmovo rax, r15
mov rcx, rax
call fcn.1400346d8
mov rdi, rax
mov rcx, qword [rsi + 0x18]
cmp rcx, rax
je 0x140003543
test rcx, rcx
je 0x14000353f
call fcn.140034674
and qword [rsi + 0x18], 0
mov qword [rsi + 0x18], rdi
mov rax, rsi
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
cmp rax, r12
je 0x140003587
test byte [rax + 0x1c], 1
je 0x140003587
lfence
mov edx, 0xc
mov dword [rsp + 0x20], edi
mov r9, r15
lea r8, [0x140040d08]
mov rcx, qword [0x140060048]
mov rcx, qword [rcx + 0x10]
call fcn.14000319c
lfence
mov ecx, edi
call fcn.14002e5b4
int3
mov rax, qword [0x140060048]
cmp rax, r14
je 0x1400035ca
test byte [rax + 0x1c], 1
je 0x1400035ca
lfence
mov edx, 0xa
mov dword [rsp + 0x20], edi
mov r9, r15
lea r8, [0x140040d08]
mov rcx, qword [0x140060048]
mov rcx, qword [rcx + 0x10]
call fcn.14000319c
lfence
mov ecx, edi
call fcn.14002e5b4
int3
lfence
mov ecx, edi
call fcn.14002e5b4
int3
mov rcx, qword [0x140060048]
lea rax, [0x140060048]
cmp rcx, rax
je 0x14000361b
test byte [rcx + 0x1c], 1
je 0x14000361b
lfence
mov edx, 0xb
mov r9d, edi
lea r8, [0x140040d08]
mov rcx, qword [0x140060048]
mov rcx, qword [rcx + 0x10]
call fcn.1400012f0
lfence
mov ecx, edi
call fcn.14002e5b4
int3