Function at 0x1400f50f0
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x118]
sub rsp, 0x1f0
mov qword [rbp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14047b0a0]
xor rax, rsp
mov qword [rbp + 0xe8], rax
mov r14, rdx
mov r12, rcx
mov qword [rbp + 0x30], rdx
mov rcx, qword [rdx]
mov r15, 0xffffffffffffffff
test rcx, rcx
je 0x1400f58c7
xorps xmm0, xmm0
movdqu xmmword [rbp], xmm0
mov qword [rbp + 0x10], 0
lea rdx, [rbp]
call fcn.1400d67e0
mov rsi, qword [rbp]
cmp rsi, qword [rbp + 8]
je 0x1400f5245
lea rax, [rsp + 0x68]
mov qword [rbp + 0x38], rax
mov rbx, qword [rsi + 8]
test rbx, rbx
je 0x1400f5188
lock inc dword [rbx + 8]
mov rbx, qword [rsi + 8]
mov rax, qword [rsi]
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x20], rbx
mov rcx, qword [r12]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
test rbx, rbx
je 0x1400f51ad
lock inc dword [rbx + 8]
mov rax, qword [rbp + 0x18]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rbx
mov rcx, qword [rcx + 0x38]
test rcx, rcx
je 0x1400f5926
mov rax, qword [rcx]
lea rdx, [rsp + 0x68]
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov rdi, qword [rsp + 0x70]
test rdi, rdi
je 0x1400f5206
mov eax, r15d
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x1400f5206
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov eax, r15d
lock xadd dword [rdi + 0xc], eax
cmp eax, 1
jne 0x1400f5206
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
test rbx, rbx
je 0x1400f5237
mov eax, r15d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400f5237
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r15d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400f5237
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
add rsi, 0x10
cmp rsi, qword [rbp + 8]
jne 0x1400f5177
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
call fcn.1400800c0
mov rbx, rax
mov qword [rsp + 0x40], rax
mov rdi, qword [r14]
add rdi, 0x8f0
lea rax, [rsp + 0x40]
cmp rax, rdi
je 0x1400f52b8
mov rdx, qword [rbx + 8]
lea rcx, [rsp + 0x40]
call fcn.1400800f0
mov rax, qword [rsp + 0x40]
mov qword [rax + 8], rbx
mov rax, qword [rsp + 0x40]
mov qword [rax], rbx
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x10], rbx
mov qword [rsp + 0x48], 0
movzx r8d, byte [rsp + 0x30]
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.1400de9b0
mov rbx, qword [rsp + 0x40]
mov rax, qword [rbx]
mov qword [rsp + 0x78], rax
cmp rax, rbx
je 0x1400f52e3
mov rcx, qword [rax + 0x28]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
lea rcx, [rsp + 0x78]
call fcn.1400ba500
mov rax, qword [rsp + 0x78]
cmp rax, rbx
jne 0x1400f52c5
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
xor r8d, r8d
xor edx, edx
call fcn.140085770
mov qword [rsp + 0x58], rax
mov rax, qword [r14]
mov rbx, qword [rax + 0xa30]
test rbx, rbx
je 0x1400f5315
lock inc dword [rbx + 8]
mov rbx, qword [rax + 0xa30]
mov rax, qword [rax + 0xa28]
mov qword [rbp + 0x48], rax
mov qword [rbp + 0x50], rbx
lea r8, [rax + 0xa8]
lea rax, [rsp + 0x58]
cmp rax, r8
je 0x1400f5346
mov r8, qword [r8]
mov rdx, qword [r8]
lea rcx, [rsp + 0x58]
call fcn.140085990
nop
test rbx, rbx
je 0x1400f5377
mov eax, r15d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400f5377
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r15d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400f5377
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rax, qword [rsp + 0x58]
mov rbx, qword [rax]
cmp rbx, rax
je 0x1400f56de
nop dword [rax + rax]
mov rsi, qword [r12 + 8]
mov rdi, qword [rbx + 0x10]
add rdi, 8
cmp qword [rdi + 0x18], 8
jb 0x1400f53a7
mov rdi, qword [rdi]
test rdi, rdi
je 0x1400f5675
mov rax, r15
inc rax
cmp word [rdi + rax*2], 0
jne 0x1400f53b3
test rax, rax
je 0x1400f5675
mov r8d, 2
lea rdx, [0x1403fe454]
mov rcx, rdi
call fcn.1402e4d88
test eax, eax
jne 0x1400f53f0
lea rcx, [rsi + 0xb00]
mov rdx, rdi
call fcn.14009ee20
jmp 0x1400f53fe
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
test al, al
je 0x1400f5675
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x80], xmm0
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400f541f
lock inc dword [rcx + 8]
mov rcx, qword [rbx + 0x18]
mov rax, qword [rbx + 0x10]
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rcx
movdqu xmmword [rbp - 0x70], xmm0
mov rcx, qword [r14 + 8]
test rcx, rcx
je 0x1400f5441
lock inc dword [rcx + 8]
mov rcx, qword [r14 + 8]
mov rax, qword [r14]
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rcx
lea r8, [rbp - 0x80]
lea rdx, [rbp - 0x70]
call fcn.1400ef9f0
test al, al
je 0x1400f5675
mov rdi, qword [rbx + 0x10]
cmp dword [rdi + 0x80], 8
je 0x1400f559c
lea rcx, [rdi + 8]
cmp qword [rcx + 0x18], 8
jb 0x1400f5480
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400f559c
mov eax, dword [rdi + 0x7c]
shr eax, 1
and al, 1
je 0x1400f559c
xor eax, eax
mov qword [rbp + 0x68], rax
mov qword [rbp + 0x70], rax
mov qword [rbp + 0x78], rax
mov qword [rbp + 0x80], rax
xor r8d, r8d
lea edx, [rax + 0x20]
lea rcx, [rbp + 0x68]
call qword [sym.imp.SHELL32.dll_SHGetSetSettings]
test byte [rbp + 0x68], 8
jne 0x1400f556b
mov rdi, qword [rbx + 0x10]
cmp dword [rdi + 0x80], 8
je 0x1400f5538
lea rcx, [rdi + 8]
cmp qword [rcx + 0x18], 8
jb 0x1400f54e5
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400f5538
mov eax, dword [rdi + 0x7c]
and eax, 6
cmp al, 6
jne 0x1400f5538
xor eax, eax
mov qword [rbp + 0x88], rax
mov qword [rbp + 0x90], rax
mov qword [rbp + 0x98], rax
mov qword [rbp + 0xa0], rax
xor r8d, r8d
mov edx, 0x40000
lea rcx, [rbp + 0x88]
call qword [sym.imp.SHELL32.dll_SHGetSetSettings]
test dword [rbp + 0x88], 0x8000
je 0x1400f559c
mov rcx, qword [r14]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x60], xmm0
mov rdx, qword [rbx + 0x18]
test rdx, rdx
je 0x1400f5554
lock inc dword [rdx + 8]
mov rdx, qword [rbx + 0x18]
mov rax, qword [rbx + 0x10]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
lea rdx, [rbp - 0x60]
call fcn.1400d1160
jmp 0x1400f559c
mov rcx, qword [r14]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
mov rdx, qword [rbx + 0x18]
test rdx, rdx
je 0x1400f5587
lock inc dword [rdx + 8]
mov rdx, qword [rbx + 0x18]
mov rax, qword [rbx + 0x10]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
lea rdx, [rbp - 0x50]
call fcn.1400d12c0
mov rdi, qword [rbx + 0x10]
cmp dword [rdi + 0x80], 8
je 0x1400f56d0
lea rcx, [rdi + 8]
cmp qword [rcx + 0x18], 8
jb 0x1400f55bb
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400f56d0
mov eax, dword [rdi + 0x7c]
and eax, 6
cmp al, 6
jne 0x1400f56d0
xor eax, eax
mov qword [rbp + 0xa8], rax
mov qword [rbp + 0xb0], rax
mov qword [rbp + 0xb8], rax
mov qword [rbp + 0xc0], rax
xor r8d, r8d
mov edx, 0x40000
lea rcx, [rbp + 0xa8]
call qword [sym.imp.SHELL32.dll_SHGetSetSettings]
mov rcx, qword [r14]
xorps xmm0, xmm0
mov rdx, qword [rbx + 0x18]
test dword [rbp + 0xa8], 0x8000
je 0x1400f564c
movdqu xmmword [rbp - 0x40], xmm0
test rdx, rdx
je 0x1400f5632
lock inc dword [rdx + 8]
mov rdx, qword [rbx + 0x18]
mov rax, qword [rbx + 0x10]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rdx
lea rdx, [rbp - 0x40]
call fcn.1400d1160
jmp 0x1400f56d0
movdqu xmmword [rbp - 0x30], xmm0
test rdx, rdx
je 0x1400f565e
lock inc dword [rdx + 8]
mov rdx, qword [rbx + 0x18]
mov rax, qword [rbx + 0x10]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rdx
lea rdx, [rbp - 0x30]
call fcn.1400d12c0
jmp 0x1400f56d0
mov r9, qword [r12 + 8]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400f5693
lock inc dword [rcx + 8]
mov rcx, qword [rbx + 0x18]
mov rax, qword [rbx + 0x10]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rcx
movdqu xmmword [rbp - 0x10], xmm0
mov rdx, qword [r14 + 8]
test rdx, rdx
je 0x1400f56b5
lock inc dword [rdx + 8]
mov rdx, qword [r14 + 8]
mov rax, qword [r14]
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rdx
lea r8, [rbp - 0x20]
lea rdx, [rbp - 0x10]
mov rcx, r9
call fcn.1400fb7a0
mov rbx, qword [rbx]
cmp rbx, qword [rsp + 0x58]
jne 0x1400f5390
mov rcx, qword [r14]
mov dword [rsp + 0x50], 0
mov rax, qword [rcx + 0xa28]
mov r8d, dword [rax + 0x68]
mov eax, 0x2718
add r8w, ax
lea edx, [rax + 8]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
call fcn.1400ca500
mov rbx, qword [r14]
xor eax, eax
mov qword [rbp + 0xc8], rax
mov qword [rbp + 0xd0], rax
mov qword [rbp + 0xd8], rax
mov qword [rbp + 0xe0], rax
xor r8d, r8d
mov edx, 0x80
lea rcx, [rbp + 0xc8]
call qword [sym.imp.SHELL32.dll_SHGetSetSettings]
mov eax, dword [rbp + 0xc8]
not eax
and eax, 0x20
shr eax, 5
mov byte [rbx + 0xa00], al
mov rbx, qword [r14]
call fcn.1400a2360
mov dword [rbx + 0xa04], eax
mov rbx, qword [r14]
mov edi, recv
mov eax, reloc.WLDAP32.dll_Ordinal_14
cmp dword [rbx + 0x328], 0
cmovne edi, eax
cmp byte [rbx + 0xa00], 0
je 0x1400f5798
cmp dword [rbx + 0xa04], 3
jne 0x1400f5798
mov r8b, 1
jmp 0x1400f579b
xor r8d, r8d
mov edx, dword [rbx + 0x314]
mov ecx, edi
call fcn.140127140
mov qword [rbx + 0xa38], rax
movzx r8d, byte [rbx + 0xa00]
mov edx, dword [rbx + 0x314]
mov ecx, edi
call fcn.140127140
mov qword [rbx + 0xa40], rax
mov rbx, qword [r14]
mov rcx, qword [rbx + 0xb8]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1400f587d
mov word [rbx + 0x9a], 0x101
xor eax, eax
mov qword [rbp + 0x58], rax
mov qword [rbp + 0x60], rax
xor r8d, r8d
lea rdx, [rbp + 0x58]
mov rcx, rbx
call fcn.14012ae10
lea rdx, [rbp + 0x58]
mov rcx, qword [rbx + 0xb8]
call qword [sym.imp.USER32.dll_ScreenToClient]
lea rdx, [rbp + 0x60]
mov rcx, qword [rbx + 0xb8]
call qword [sym.imp.USER32.dll_ScreenToClient]
xor r8d, r8d
lea rdx, [rbp + 0x58]
mov rcx, qword [rbx + 0xb8]
call qword [sym.imp.USER32.dll_InvalidateRect]
mov rcx, qword [rbx + 0xb8]
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x1400f587d
mov edx, 0xffffffec
mov rcx, qword [rbx + 0xb8]
call qword [sym.imp.USER32.dll_GetWindowLongW]
bt eax, 0x13
jae 0x1400f587d
xor r9d, r9d
lea r8, [rbp + 0x58]
lea edx, [r9 + 0xf]
mov rcx, qword [rbx + 0xb8]
call qword [sym.imp.USER32.dll_PostMessageW]
nop
lea rcx, [rsp + 0x58]
call fcn.1400855b0
mov edx, 0x20
mov rcx, qword [rsp + 0x58]
call fcn.1401aed44
nop
mov r9, qword [rsp + 0x40]
mov r8, qword [r9]
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.1400dcab0
mov edx, gethostname
mov rcx, qword [rsp + 0x40]
call fcn.1401aed44
nop
lea rcx, [rbp]
call fcn.1400dc9b0
nop
mov rbx, qword [r14 + 8]
test rbx, rbx
je 0x1400f58fb
mov eax, r15d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400f58fb
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], r15d
cmp r15d, 1
jne 0x1400f58fb
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rbp + 0xe8]
xor rcx, rsp
call fcn.1401aed20
lea r11, [rsp + 0x1f0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.1401ab9c8
nop
int3