Function at 0x1400785e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
lea rbp, [rsp - 0xfb0]
mov eax, 0x10b0
call fcn.14009b900
sub rsp, rax
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x10c8], rbx
mov qword [rsp + 0x10d0], rsi
mov qword [rsp + 0x10d8], rdi
mov rax, qword [0x14013f130]
xor rax, rsp
mov qword [rbp + 0xfa0], rax
mov rbx, rcx
mov qword [rsp + 0x30], rcx
xor esi, esi
mov dword [rsp + 0x20], esi
mov qword [rsp + 0x30], rsi
lea r8, [rsp + 0x30]
lea rdx, [0x1400783e0]
lea ecx, [rsi + 6]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
mov edi, esi
test eax, eax
cmovne rdi, qword [rsp + 0x30]
test rdi, rdi
jne 0x140078689
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], si
lea rdx, [0x140101c30]
lea rcx, [rsp + 0x58]
call fcn.14000e470
jmp 0x14007877c
xor edx, edx
mov r8d, 0x1000
lea rcx, [rbp - 0x60]
call fcn.1400b93c0
mov r8d, 0x1000
lea rdx, [rbp - 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140078660
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], si
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x38]
call fcn.14000e470
nop
lea rdx, [rsp + 0x38]
mov r9, qword [rsp + 0x38]
mov r10, qword [rsp + 0x50]
cmp r10, 8
cmovae rdx, r9
mov r8, qword [rsp + 0x48]
test r8, r8
je 0x14007874a
lea rcx, [r8 - 1]
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
lea rcx, [rdx + rax*2]
cmp word [rcx], 0x5c
je 0x14007871f
cmp rcx, rdx
je 0x14007874a
sub rcx, 2
cmp word [rcx], 0x5c
jne 0x140078710
sub rcx, rdx
sar rcx, 1
cmp rcx, 0xffffffffffffffff
je 0x14007874a
cmp r8, rcx
jb 0x1400788e2
mov qword [rsp + 0x48], rcx
lea rax, [rsp + 0x38]
cmp r10, 8
cmovae rax, r9
mov word [rax + rcx*2], si
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rsp + 0x58], xmm0
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [rsp + 0x68], xmm1
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], si
lea rcx, [rsp + 0x38]
call fcn.140006e90
nop
cmp qword [rsp + 0x68], 0
jne 0x1400787a7
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 7
mov word [rbx], si
lea rdx, [0x140101c30]
mov rcx, rbx
call fcn.14000e470
jmp 0x1400788ad
lea r8, str.panohost.exe
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x78]
call fcn.140078c00
nop
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400787e1
test al, 0x10
je 0x140078880
movdqa xmm0, xmmword [0x14010a4d0]
movdqu xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x38], si
mov dword [rsp + 0x20], 0xa
mov rdx, qword [rsp + 0x68]
add rdx, 0xc
lea rcx, [rsp + 0x38]
call fcn.140078cb0
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rdx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x68]
lea rcx, [rsp + 0x38]
call fcn.1400172e0
mov r8d, recv
lea rdx, str.kashost.exe
lea rcx, [rsp + 0x38]
call fcn.1400172e0
lea rcx, [rsp + 0x78]
call fcn.140006e90
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rsp + 0x78], xmm0
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [rbp - 0x78], xmm1
movdqa xmm0, xmmword [0x14010a4d0]
movdqu xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x38], si
lea rcx, [rsp + 0x38]
call fcn.140006e90
movups xmm0, xmmword [rsp + 0x78]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rbp - 0x78]
movups xmmword [rbx + 0x10], xmm1
movdqa xmm0, xmmword [0x14010a4d0]
movdqu xmmword [rbp - 0x78], xmm0
mov word [rsp + 0x78], si
lea rcx, [rsp + 0x78]
call fcn.140006e90
nop
lea rcx, [rsp + 0x58]
call fcn.140006e90
mov rax, rbx
mov rcx, qword [rbp + 0xfa0]
xor rcx, rsp
call fcn.14009ab00
lea r11, [rsp + 0x10b0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.140007690
nop
int3