Function at 0x1401306c4
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 [0x140729900]
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
je 0x140130717
xor eax, eax
jmp 0x140130a70
test rbx, rbx
jne 0x140130722
call fcn.1400da218
int3
lea r14, [rcx + 0xa0]
mov rcx, r14
call fcn.1400e0bf4
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.1400d7318
nop
mov rdi, qword [rsp + 0x50]
or r13, 0xffffffffffffffff
cmp dword [rdi - 0x10], r12d
jl 0x1401307d6
lea rdx, [0x1405df1e8]
mov rcx, rdi
call fcn.1402879f0
mov rdi, qword [rsp + 0x50]
test rax, rax
je 0x14013077a
sub rax, rdi
sar rax, 1
cmp eax, r13d
jne 0x1401308b3
cmp dword [rdi - 0x10], r12d
jl 0x1401307d6
lea rdx, [0x1405eef6c]
mov rcx, rdi
call fcn.1402879f0
mov rdi, qword [rsp + 0x50]
test rax, rax
je 0x1401307a8
sub rax, rdi
sar rax, 1
cmp eax, r13d
jne 0x1401308b3
cmp dword [rdi - 0x10], r12d
jl 0x1401307d6
lea rdx, [0x1405df390]
mov rcx, rdi
call fcn.1402879f0
test rax, rax
je 0x1401307d6
mov rdi, qword [rsp + 0x50]
sub rax, rdi
sar rax, 1
cmp eax, r13d
jne 0x1401308b3
mov r8d, 0x104
lea rdx, [rbp + 0x7a0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1401308ae
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.140290fe0
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.140290fe0
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.14029d560
lea rcx, [rbp - 0x70]
call fcn.140288ad0
mov r8d, eax
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x50]
call fcn.1400314f8
mov rdi, qword [rsp + 0x50]
test r15d, r15d
je 0x140130944
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 0x14013093f
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
jbe 0x14013093f
mov rsi, qword [rsp + 0x50]
mov eax, r13d
lock xadd dword [rsi - 8], eax
add eax, r13d
test eax, eax
jg 0x140130710
mov rdi, qword [rsi - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call fcn.1402815a8
lea rdx, [rsi - 0x18]
mov rcx, rdi
call rbx
jmp 0x140130710
mov rdi, qword [rsp + 0x50]
mov eax, dword [rsi + 0x38]
neg eax
sbb ebx, ebx
and ebx, 0x1000
add ebx, 0x2010
call fcn.1400db734
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rax + 0x10]
call qword [sym.imp.USER32.dll_LoadImageW]
mov qword [r14], rax
test rax, rax
je 0x140130906
lea r8, [rsp + 0x60]
mov ebx, 0x20
mov edx, ebx
mov rcx, rax
call qword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
jne 0x1401309aa
mov rcx, qword [r14]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov qword [r14], r12
jmp 0x140130906
mov r15d, 1
mov dword [rsi + 0x1c], r15d
lea rcx, [rsi + 0xb8]
lea rdx, [rsp + 0x50]
call fcn.140031404
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test r15b, al
je 0x1401309d9
mov dword [rsi + 0x28], r15d
movzx ecx, word [rsp + 0x72]
mov eax, ecx
mov dword [rsi + 0xc], ecx
add eax, 0xfffffff7
cmp eax, 0x16
ja 0x140130a01
or r8d, 0xffffffff
mov r9d, r8d
xor edx, edx
mov rcx, r14
call fcn.140130f50
movzx ecx, word [rsp + 0x72]
cmp cx, bx
jb 0x140130a11
mov edx, dword [rsi + 0x40]
mov rcx, qword [r14]
call fcn.140131de0
mov rcx, rsi
call fcn.14013307c
lea rbx, [rsi + 0xa8]
mov rcx, rbx
call fcn.1400e0bf4
mov qword [rbx], r12
lea rbx, [rsi + 0xb0]
mov rcx, rbx
call fcn.1400e0bf4
mov qword [rbx], r12
mov rsi, qword [rsp + 0x50]
mov ecx, r13d
lock xadd dword [rsi - 8], ecx
add ecx, r13d
test ecx, ecx
jg 0x140130a6d
mov rdi, qword [rsi - 0x18]
mov r8, qword [rdi]
mov rbx, qword [r8 + 8]
mov rcx, rbx
call fcn.1402815a8
lea rdx, [rsi - 0x18]
mov rcx, rdi
call rbx
mov eax, r15d
mov rcx, qword [rbp + 0x9b0]
xor rcx, rsp
call fcn.1402812e0
mov rbx, qword [rsp + 0xb10]
add rsp, 0xac0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret