Function at 0x140096318
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 - 0x4f8]
sub rsp, 0x5c0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1402af750]
xor rax, rsp
mov qword [rbp + 0x4b0], rax
mov r15d, r8d
mov rbx, rdx
mov rsi, rcx
xor r12d, r12d
cmp dword [rcx + 0x2c], r12d
je 0x14009636b
xor eax, eax
jmp 0x140096697
mov eax, r12d
test rdx, rdx
setne al
test eax, eax
jne 0x14009637e
call fcn.1400500b4
int3
lea r14, [rcx + 0xa0]
mov rcx, r14
call fcn.140068268
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.14004ecdc
nop
mov rdi, qword [rsp + 0x50]
or r13, 0xffffffffffffffff
cmp dword [rdi - 0x10], r12d
jl 0x140096422
lea rdx, [0x14025e2f0]
mov rcx, rdi
call fcn.1401cb3fc
mov rdi, qword [rsp + 0x50]
test rax, rax
je 0x1400963ce
sub eax, edi
cmp eax, r13d
jne 0x140096501
cmp dword [rdi - 0x10], r12d
jl 0x140096422
lea rdx, [0x14020e150]
mov rcx, rdi
call fcn.1401cb3fc
mov rdi, qword [rsp + 0x50]
test rax, rax
je 0x1400963f8
sub eax, edi
cmp eax, r13d
jne 0x140096501
cmp dword [rdi - 0x10], r12d
jl 0x140096422
lea rdx, [0x140203180]
mov rcx, rdi
call fcn.1401cb3fc
test rax, rax
je 0x140096422
mov rdi, qword [rsp + 0x50]
sub eax, edi
cmp eax, r13d
jne 0x140096501
mov r8d, 0x104
lea rdx, [rbp + 0x3a0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x1400964fc
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 + 0x2a0]
mov r8d, 3
lea rdx, [rsp + 0x58]
lea rcx, [rbp + 0x3a0]
call fcn.1401ce9f8
mov qword [rsp + 0x40], rdi
lea rax, [rbp + 0xa0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
lea rax, [rbp + 0x1a0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.1401ce9f8
lea rax, [rbp + 0xa0]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x1a0]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x2a0]
lea r8, [rsp + 0x58]
lea edx, [rdi + 4]
lea rcx, [rbp - 0x70]
call fcn.1401cf258
lea rcx, [rbp - 0x70]
call fcn.1401c96c0
mov r8d, eax
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x50]
call fcn.14004e698
mov rdi, qword [rsp + 0x50]
test r15d, r15d
je 0x14009657f
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_CreateFileA]
mov rdi, rax
cmp rax, r13
je 0x14009657a
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 0x14009657a
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x140096364
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140096364
mov rdi, qword [rsp + 0x50]
mov ebx, 0x2010
mov eax, 0x3010
cmp dword [rsi + 0x38], r12d
cmovne ebx, eax
call fcn.14004eb08
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_LoadImageA]
mov qword [r14], rax
test rax, rax
je 0x140096550
lea r8, [rsp + 0x68]
mov ebx, 0x20
mov edx, ebx
mov rcx, rax
call qword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
jne 0x1400965e3
mov rcx, qword [r14]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov qword [r14], r12
jmp 0x140096550
mov edi, 1
mov dword [rsi + 0x1c], edi
lea rcx, [rsi + 0xb8]
lea rdx, [rsp + 0x50]
call fcn.1400509fc
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test dil, al
je 0x14009660f
mov dword [rsi + 0x28], edi
movzx ecx, word [rsp + 0x7a]
mov eax, ecx
mov dword [rsi + 0xc], ecx
add eax, 0xfffffff7
cmp eax, 0x16
ja 0x140096637
or r8d, 0xffffffff
mov r9d, r8d
xor edx, edx
mov rcx, r14
call fcn.140096b98
movzx ecx, word [rsp + 0x7a]
cmp cx, bx
jb 0x140096647
mov edx, dword [rsi + 0x40]
mov rcx, qword [r14]
call fcn.140097c00
mov rcx, rsi
call fcn.140098fe8
lea rbx, [rsi + 0xa8]
mov rcx, rbx
call fcn.140068268
mov qword [rbx], r12
lea rbx, [rsi + 0xb0]
mov rcx, rbx
call fcn.140068268
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 0x140096695
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, edi
mov rcx, qword [rbp + 0x4b0]
xor rcx, rsp
call fcn.1401cc850
mov rbx, qword [rsp + 0x610]
add rsp, 0x5c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret