Function at 0x100054458
Capabilities:
Get file size

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x170
mov qword [rsp + 0x98], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x1000cc510]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rdi, rcx
call sub.MFC42u.dll_CDockBar::OnUpdateCmdUI
mov edx, 0x42f
mov rcx, rdi
call sub.MFC42u.dll_CGopherFileFind::GetFilePath
mov r14, rax
mov edx, 0x430
mov rcx, rdi
call sub.MFC42u.dll_CGopherFileFind::GetFilePath
mov r13, rax
xor ebx, ebx
mov bpl, bl
mov sil, bl
call sub.MFC42u.dll_Ordinal_1463
mov rcx, qword [rax + 8]
mov rdx, qword [rcx + 0x618]
cmp dword [rdx - 8], ebx
je 0x10005472f
call sub.MFC42u.dll_Ordinal_1463
mov rdx, qword [rax + 8]
add rdx, 0x618
lea rcx, [rsp + 0x58]
call sub.MFC42u.dll_CControlBar::CControlBar
nop
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
lea r8d, [rbx + 3]
mov dword [rsp + 0x20], r8d
xor r9d, r9d
mov edx, 0x80000000
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x10005471b
lea rcx, [rsp + 0x40]
call fcn.100001194
nop
lea rcx, [rsp + 0x48]
call fcn.100001194
nop
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
setne sil
cmp sil, bl
je 0x100054580
lea r9d, [rbx + 1]
mov r8d, eax
mov edx, 0xc371
lea rcx, [rsp + 0x78]
call fcn.10000c980
nop
mov rdx, qword [rax]
mov rcx, r13
call sub.MFC42u.dll_COleControlSite::CreateControl
nop
lea rcx, [rsp + 0x78]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov bpl, 1
lea r9, [rsp + 0x70]
xor r8d, r8d
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileTime]
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea r8, [rsp + 0x60]
lea edx, [r9 + 0x41]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetDateFormatW]
mov ebx, eax
mov edx, eax
lea rcx, [rsp + 0x40]
call sub.MFC42u.dll_CDatabase::GetConnectInfo
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x60]
lea edx, [r9 + 0x41]
mov ebx, 0x400
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetDateFormatW]
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x60]
lea edx, [r9 + 2]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetTimeFormatW]
mov ebx, eax
mov edx, eax
lea rcx, [rsp + 0x48]
call sub.MFC42u.dll_CDatabase::GetConnectInfo
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x60]
lea edx, [r9 + 2]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetTimeFormatW]
or edx, 0xffffffff
lea rcx, [rsp + 0x40]
call sub.MFC42u.dll_CCmdUI::SetCheck
or edx, 0xffffffff
lea rcx, [rsp + 0x48]
call sub.MFC42u.dll_CCmdUI::SetCheck
lea rcx, [rsp + 0x50]
call fcn.100001194
nop
mov edx, 0xc370
lea rcx, [rsp + 0x50]
call sub.MFC42u.dll_CPropertySheet::OnCtlColor
mov r11, qword [rsp + 0x40]
mov qword [rsp + 0x88], r11
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x90], rax
lea rax, [rsp + 0x88]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x60
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov ecx, 0x2400
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
lea rdx, [rsp + 0xa0]
mov rcx, r14
call sub.MFC42u.dll_COleControlSite::CreateControl
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x50]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
lea rcx, [rsp + 0x48]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
lea rcx, [rsp + 0x40]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
xor ebx, ebx
lea rcx, [rsp + 0x58]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
cmp bpl, bl
je 0x10005472f
cmp sil, bl
jne 0x100054778
lea rcx, [rsp + 0x40]
call fcn.100001194
nop
mov edx, 0xc36f
lea rcx, [rsp + 0x40]
call sub.MFC42u.dll_CPropertySheet::OnCtlColor
cmp bpl, bl
jne 0x10005475b
mov rdx, qword [rsp + 0x40]
mov rcx, r14
call sub.MFC42u.dll_COleControlSite::CreateControl
cmp sil, bl
jne 0x10005476e
mov rdx, qword [rsp + 0x40]
mov rcx, r13
call sub.MFC42u.dll_COleControlSite::CreateControl
nop
lea rcx, [rsp + 0x40]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov rcx, rdi
call fcn.1000542d0
mov r8d, 0x406
mov r9d, r8d
mov eax, dword [rdi + 0xd4]
lea edx, [r8 - 2]
cmp eax, ebx
je 0x1000547a4
mov r9d, ebx
cmp eax, 1
setne r9b
add r9d, edx
mov rcx, rdi
call sub.MFC42u.dll_CRuntimeClassconstCButton::classCButton
mov r11d, dword [rdi + 0xd0]
neg r11d
sbb r9d, r9d
mov r8d, 0x438
add r9d, r8d
lea edx, [r8 - 1]
mov rcx, rdi
call sub.MFC42u.dll_CRuntimeClassconstCButton::classCButton
mov r11d, dword [0x1000cc494]
mov dword [rdi + 0xf4], r11d
mov eax, 1
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1000010a0
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret