Function at 0x100004e10
Capabilities:
Check if file exists

Disassembly:
mov r11, rsp
sub rsp, 0xc08
mov rax, qword [0x10000e360]
mov qword [rsp + 0xbf0], rax
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov rdi, rcx
lea rcx, [r11 - 0x646]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x5c0], 0
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x7d2]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x7d0], 0
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x9e2]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x9e0], 0
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x5c0]
call fcn.100007440
lea rdx, [0x1000024e0]
lea rcx, [rsp + 0x5c0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rdi + 0x4b0]
xor edx, edx
mov r8d, 0x1e0
call sub.msvcrt.dll_memset
lea r8, [rsp + 0x3e0]
lea rdx, [rsp + 0x5c0]
lea rcx, [rdi + 0x2c8]
call fcn.100009110
cmp eax, 1
jne 0x100004f8d
lea rcx, [rdi + 0x4b0]
lea rdx, [rsp + 0x3e0]
mov r8d, 0x1e0
call sub.msvcrt.dll_memcpy
lea r8, [rsp + 0x438]
mov edx, 0x3fe
mov rcx, rdi
call sub.MFC42u.dll_CDataSourceControl::UpdateControls
lea r8, [rsp + 0x4b8]
mov edx, 0x414
mov rcx, rdi
call sub.MFC42u.dll_CDataSourceControl::UpdateControls
lea r8, [rsp + 0x538]
mov edx, reloc.MFC42u.dll_COleControlSite::XOleClientSite::AddRef
mov rcx, rdi
call sub.MFC42u.dll_CDataSourceControl::UpdateControls
lea rcx, [rsp + 0x200]
lea rdx, [rsp + 0x3e0]
mov r8d, 0x1e0
call sub.msvcrt.dll_memcpy
lea rdx, [rsp + 0x9e0]
lea rcx, [rsp + 0x200]
call fcn.100007490
lea r8, [rsp + 0x9e0]
mov edx, 0x401
mov rcx, rdi
call sub.MFC42u.dll_CDataSourceControl::UpdateControls
xor ebx, ebx
cmp dword [rsp + 0x3e0], 2
jne 0x100004fbf
mov edx, 0x403
mov rcx, rdi
call sub.MFC42u.dll_CGopherFileFind::GetFilePath
test rax, rax
jne 0x100004fb0
mov rcx, rbx
jmp 0x100004fb4
mov rcx, qword [rax + 0x40]
mov edx, 1
call qword [sym.imp.USER32.dll_EnableWindow]
lea rdx, [rsp + 0x5c0]
lea rcx, [rsp + 0x7d0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x1000024d0]
lea rcx, [rsp + 0x7d0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rsp + 0x7d0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000050f2
lea r8, [rsp + 0x200]
lea rdx, [rsp + 0x7d0]
lea rcx, [rdi + 0x2c8]
call fcn.100009110
lea r8, [rsp + 0x258]
mov edx, 0x400
mov rcx, rdi
call sub.MFC42u.dll_CDataSourceControl::UpdateControls
lea r8, [rsp + 0x2d8]
mov edx, 0x415
mov rcx, rdi
call sub.MFC42u.dll_CDataSourceControl::UpdateControls
lea r8, [rsp + 0x358]
mov edx, CDocObjectServer::XOleDocument::AddRef
mov rcx, rdi
call sub.MFC42u.dll_CDataSourceControl::UpdateControls
lea rcx, [rsp + 0x20]
lea rdx, [rsp + 0x200]
mov r8d, 0x1e0
call sub.msvcrt.dll_memcpy
lea rdx, [rsp + 0x9e0]
lea rcx, [rsp + 0x20]
call fcn.100007490
lea r8, [rsp + 0x9e0]
mov edx, 0x402
mov rcx, rdi
call sub.MFC42u.dll_CDataSourceControl::UpdateControls
lea rdx, [rsp + 0x258]
lea rcx, [rsp + 0x438]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1000050f2
lea rdx, [rsp + 0x2d8]
lea rcx, [rsp + 0x4b8]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1000050f2
mov edx, 0x404
mov rcx, rdi
call sub.MFC42u.dll_CGopherFileFind::GetFilePath
test rax, rax
je 0x1000050e4
mov rbx, qword [rax + 0x40]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableWindow]
mov rdi, qword [rsp + 0xc28]
mov rsi, qword [rsp + 0xc20]
mov rbx, qword [rsp + 0xc18]
mov rcx, qword [rsp + 0xbf0]
call fcn.10000afa0
add rsp, 0xc08
ret