Function at 0x14007cb74
Capabilities:
Get file attributes
Get file size

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x9f8]
sub rsp, 0xac0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1402aa8c0]
xor rax, rsp
mov qword [rbp + 0x9b0], rax
mov r15d, r8d
mov rbx, rdx
mov rsi, rcx
xor r12d, r12d
cmp dword [rcx + 0x2c], r12d
jne 0x14007ce14
test rdx, rdx
je 0x14007cf27
lea r14, [rcx + 0xa0]
mov rcx, r14
call fcn.14004a4a8
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.14000c590
nop
mov rdi, qword [rsp + 0x50]
or r13, 0xffffffffffffffff
cmp dword [rdi - 0x10], r12d
jl 0x14007cc81
lea rdx, [0x140262210]
mov rcx, rdi
call fcn.1401ca8b0
mov rdi, qword [rsp + 0x50]
test rax, rax
je 0x14007cc25
sub rax, rdi
sar rax, 1
cmp eax, r13d
jne 0x14007cd5e
cmp dword [rdi - 0x10], r12d
jl 0x14007cc81
lea rdx, [0x14020d3f8]
mov rcx, rdi
call fcn.1401ca8b0
mov rdi, qword [rsp + 0x50]
test rax, rax
je 0x14007cc53
sub rax, rdi
sar rax, 1
cmp eax, r13d
jne 0x14007cd5e
cmp dword [rdi - 0x10], r12d
jl 0x14007cc81
lea rdx, [0x140201bd8]
mov rcx, rdi
call fcn.1401ca8b0
test rax, rax
je 0x14007cc81
mov rdi, qword [rsp + 0x50]
sub rax, rdi
sar rax, 1
cmp eax, r13d
jne 0x14007cd5e
mov r8d, 0x104
lea rdx, [rbp + 0x7a0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14007cd59
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov edi, 0x100
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0x5a0]
mov r8d, 3
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x7a0]
call fcn.1401dc010
mov qword [rsp + 0x40], rdi
lea rax, [rbp + 0x1a0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
lea rax, [rbp + 0x3a0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.1401dc010
lea rax, [rbp + 0x1a0]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x3a0]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x5a0]
lea r8, [rbp - 0x80]
lea edx, [rdi + 4]
lea rcx, [rbp - 0x70]
call fcn.1401dbc04
lea rcx, [rbp - 0x70]
call fcn.1401d4330
mov r8d, eax
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x50]
call fcn.14000b710
mov rdi, qword [rsp + 0x50]
test r15d, r15d
je 0x14007cdb2
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, r13
je 0x14007cdad
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, r15d
ja 0x14007cdec
mov rdi, qword [rsp + 0x50]
mov ebx, dword [rsi + 0x38]
call fcn.140042f8c
mov rcx, qword [rax + 0x10]
neg ebx
sbb eax, eax
and eax, 0x1000
add eax, 0x2010
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
call qword [sym.imp.USER32.dll_LoadImageW]
mov qword [r14], rax
test rax, rax
jne 0x14007ce40
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x14007ce14
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14005e6be.0]
xor eax, eax
mov rcx, qword [rbp + 0x9b0]
xor rcx, rsp
call fcn.1401c8d10
mov rbx, qword [rsp + 0xb10]
add rsp, 0xac0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [rsp + 0x60]
mov ebx, 0x20
mov edx, ebx
mov rcx, rax
call qword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
jne 0x14007ce67
mov rcx, qword [r14]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov qword [r14], r12
jmp 0x14007cdec
mov edi, 1
mov dword [rsi + 0x1c], edi
lea rcx, [rsi + 0xb8]
lea rdx, [rsp + 0x50]
call fcn.14000b830
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test dil, al
je 0x14007ce93
mov dword [rsi + 0x28], edi
movzx ecx, word [rsp + 0x72]
mov eax, ecx
mov dword [rsi + 0xc], ecx
cmp ecx, 8
jbe 0x14007cebc
cmp eax, ebx
jae 0x14007cebc
or r8d, 0xffffffff
mov r9d, r8d
xor edx, edx
mov rcx, r14
call fcn.14007d3f8
movzx ecx, word [rsp + 0x72]
cmp cx, bx
jb 0x14007cecc
mov edx, dword [rsi + 0x40]
mov rcx, qword [r14]
call fcn.14007e2a8
mov rcx, rsi
call fcn.14007f3b4
lea rbx, [rsi + 0xa8]
mov rcx, rbx
call fcn.14004a4a8
mov qword [rbx], r12
lea rbx, [rsi + 0xb0]
mov rcx, rbx
call fcn.14004a4a8
mov qword [rbx], r12
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov ecx, r13d
lock xadd dword [rdx + 0x10], ecx
add ecx, r13d
test ecx, ecx
jg 0x14007cf20
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [case.0x14005e6be.0]
mov eax, edi
jmp 0x14007ce16
call fcn.1400355ac
int3