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

Disassembly:
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x23a0]
mov eax, 0x24a0
call fcn.14000db30
sub rsp, rax
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x24d8], rbx
mov qword [rsp + 0x24e0], rsi
mov qword [rsp + 0x24e8], rdi
mov rax, qword [0x140019008]
xor rax, rsp
mov qword [rbp + 0x2390], rax
mov rdi, rcx
call qword [sym.imp.mfc140u.dll_CMFCColorButton::OnFillBackground]
call fcn.140003dd0
test al, al
jne 0x1400037da
xor eax, eax
jmp 0x140003d96
mov edx, 0x104
lea rcx, [rbp + 0x770]
call qword [sym.imp.UserData.dll_unsigned_int___cdecl_GetHelpFileName_wchar_t____ptr64__unsigned_long_int_]
test eax, eax
je 0x140003804
lea rdx, [rbp + 0x770]
lea rcx, [0x140019ba8]
call qword [sym.imp.mfc140u.dll_CMFCControlRendererInfo::CMFCControlRendererInfo]
mov edx, 0x104
lea rcx, [rbp + 0x980]
call qword [sym.imp.UserData.dll_unsigned_int___cdecl_GetContextFileName_wchar_t____ptr64__unsigned_long_int_]
test eax, eax
je 0x14000382e
lea rdx, [rbp + 0x980]
lea rcx, [0x140019b58]
call qword [sym.imp.mfc140u.dll_CMFCControlRendererInfo::CMFCControlRendererInfo]
mov r9, qword [rdi + 0xa40]
mov r15d, 1
mov r8d, r15d
lea edx, [r15 + 0x7f]
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
mov r9, qword [rdi + 0xa40]
xor r8d, r8d
lea edx, [r15 + 0x7f]
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
lea rbx, [rdi + 0xa50]
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 7
mov edx, 0x10
lea r9d, [r15 + 4]
mov r8d, edx
mov rcx, rbx
call qword [sym.imp.mfc140u.dll_CMFCFilterChunkValueImpl::CopyFrom]
xor r12d, r12d
test rbx, rbx
mov r9d, r12d
je 0x14000389f
mov r9, qword [rbx + 8]
mov r8, r15
mov edx, 0x1003
mov rcx, qword [rdi + 0x998]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, rax
call qword [sym.imp.mfc140u.dll_Ordinal_4724]
call qword [sym.imp.mfc140u.dll_AfxFieldText]
mov edx, 0xe
mov ecx, 0xa0
call qword [sym.imp.mfc140u.dll_AfxCriticalNewHandler]
mov rcx, rax
mov edx, 0xa0
call qword [sym.imp.USER32.dll_LoadIconW]
mov r8, rax
or edx, 0xffffffff
mov rcx, qword [rdi + 0xa58]
call qword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov dword [rdi + 0xa64], eax
call qword [sym.imp.mfc140u.dll_AfxFieldText]
mov edx, 0xe
mov ecx, 0xa1
call qword [sym.imp.mfc140u.dll_AfxCriticalNewHandler]
mov rcx, rax
mov edx, 0xa1
call qword [sym.imp.USER32.dll_LoadIconW]
mov r8, rax
or edx, 0xffffffff
mov rcx, qword [rdi + 0xa58]
call qword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov dword [rdi + 0xa68], eax
mov rax, qword [0x140019d30]
cmp dword [rax - 0x10], r12d
je 0x1400039ac
mov rsi, r12
mov rbx, r12
lea r14, [rdi + 0xa6c]
lea r13, [0x140019d30]
call qword [sym.imp.mfc140u.dll_AfxFieldText]
movzx ebx, word [rbx + r13 + 8]
mov edx, 0xe
mov ecx, ebx
call qword [sym.imp.mfc140u.dll_AfxCriticalNewHandler]
mov rcx, rax
mov edx, ebx
call qword [sym.imp.USER32.dll_LoadIconW]
mov r8, rax
or edx, 0xffffffff
mov rcx, qword [rdi + 0xa58]
call qword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov dword [r14], eax
lea rsi, [rsi + 1]
lea r14, [r14 + 4]
lea rbx, [rsi + rsi*2]
shl rbx, 4
mov rax, qword [rbx + r13]
cmp dword [rax - 0x10], r12d
jne 0x140003958
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
lea rdx, [rsp + 0x50]
mov rcx, qword [rdi + 0x998]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov r9d, 0x20
xor r8d, r8d
mov edx, 0x1036
mov rcx, qword [rdi + 0x998]
call qword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [rsp + 0x58]
sub eax, dword [rsp + 0x50]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x140012e28]
cvttsd2si eax, xmm0
mov dword [rsp + 0x28], 0xffffffff
mov dword [rsp + 0x20], eax
xor r9d, r9d
lea r8, [0x1400106d4]
xor edx, edx
lea rcx, [rdi + 0x958]
call qword [sym.imp.mfc140u.dll_CMFCRibbonBar::GetVisibleContextCaptionCount]
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
mov edx, 0x68
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc140u.dll_CRuntimeClass::IsDerivedFrom]
mov eax, dword [rsp + 0x58]
sub eax, dword [rsp + 0x50]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x140012e38]
cvttsd2si eax, xmm0
mov dword [rsp + 0x28], 0xffffffff
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, qword [rsp + 0x48]
mov edx, r15d
lea rcx, [rdi + 0x958]
call qword [sym.imp.mfc140u.dll_CMFCRibbonBar::GetVisibleContextCaptionCount]
mov edx, 0x69
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc140u.dll_CRuntimeClass::IsDerivedFrom]
mov eax, dword [rsp + 0x58]
sub eax, dword [rsp + 0x50]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x140012e40]
cvttsd2si eax, xmm0
mov dword [rsp + 0x28], 0xffffffff
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, qword [rsp + 0x48]
lea edx, [r9 + 2]
lea rcx, [rdi + 0x958]
call qword [sym.imp.mfc140u.dll_CMFCRibbonBar::GetVisibleContextCaptionCount]
mov edx, 0x6a
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc140u.dll_CRuntimeClass::IsDerivedFrom]
mov eax, dword [rsp + 0x58]
sub eax, dword [rsp + 0x50]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x140012e30]
cvttsd2si eax, xmm0
mov dword [rsp + 0x28], 0xffffffff
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, qword [rsp + 0x48]
lea edx, [r9 + 3]
lea rcx, [rdi + 0x958]
call qword [sym.imp.mfc140u.dll_CMFCRibbonBar::GetVisibleContextCaptionCount]
lea rax, [0x140019b50]
mov qword [rsp + 0x20], rax
lea r9, [0x140011240]
mov r8d, r15d
xor edx, edx
lea rcx, [0x140011230]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140003d85
mov rax, qword [rdi + 0xaf0]
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x140003d16
mov r14d, r12d
jle 0x140003d0e
mov rsi, r12
nop
mov rdx, qword [rdi + 0xaf0]
test rsi, rsi
js 0x140003d07
cmp rsi, qword [rdx + 0x10]
jge 0x140003d07
mov rdx, qword [rdx + 8]
mov rdx, qword [rdx + rsi*8]
lea rcx, [rsp + 0x38]
call fcn.140009d70
nop
xor r8d, r8d
mov rdx, qword [rax]
lea rcx, [rsp + 0x70]
call fcn.140002210
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
cmp word [rsp + 0x70], 0
jne 0x140003bcb
mov word [rbp + 0xb90], r12w
jmp 0x140003c2d
lea rdx, [rbp + 0x1390]
lea rcx, [rsp + 0x70]
call fcn.140002400
lea rcx, [rbp + 0x1390]
or rax, 0xffffffffffffffff
nop word [rax + rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x140003bf0
lea r8, [rsp + 0x70]
lea r8, [r8 + rax*2]
cmp word [r8], 0x5c
jne 0x140003c1b
nop dword [rax + rax]
add r8, 2
cmp word [r8], 0x5c
je 0x140003c10
mov edx, 0x400
lea rcx, [rbp + 0xb90]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov edx, 0x2e
lea rcx, [rbp + 0xb90]
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
mov rbx, rax
test rax, rax
je 0x140003c97
lea r8, [rax + 2]
mov edx, 0x400
lea rcx, [rbp + 0x1b90]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rbx + rcx*2 + 2], 0
jne 0x140003c61
test ecx, ecx
je 0x140003c97
lea rdx, str.AcSign
lea rcx, [rbp + 0x1b90]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x140003c97
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.1400075c0
jmp 0x140003ce8
lea rcx, [rsp + 0x70]
call fcn.140002a00
test eax, eax
jne 0x140003cd8
cmp word [rsp + 0x70], ax
je 0x140003cd8
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140003cd8
shr eax, 4
and al, 1
je 0x140003cd8
xor r9d, r9d
mov r8b, 1
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.140007430
jmp 0x140003ce8
mov r8b, 1
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.140006ad0
inc r14d
inc rsi
mov rax, qword [rdi + 0xaf0]
mov rcx, qword [rax + 0x10]
movsxd rax, r14d
cmp rax, rcx
jl 0x140003b70
jmp 0x140003d0e
call qword [sym.imp.mfc140u.dll_AfxRegDeleteKey]
int3
mov rcx, rdi
call fcn.140007890
mov rcx, rdi
call fcn.140008dc0
mov rcx, rdi
call fcn.1400069a0
mov rcx, rdi
call fcn.1400080e0
test al, al
je 0x140003d85
mov rcx, rdi
call fcn.140008670
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
mov edx, 0x6f
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc140u.dll_CRuntimeClass::IsDerivedFrom]
lea rcx, [rdi + 0x300]
mov rdx, qword [rsp + 0x60]
call qword [sym.imp.mfc140u.dll_CMFCToolBar::SetOrigButtons]
mov byte [rdi + 0xb21], 0
mov rcx, rdi
call fcn.140007c00
nop
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
jmp 0x140003d88
mov r15d, r12d
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov eax, r15d
mov rcx, qword [rbp + 0x2390]
xor rcx, rsp
call fcn.14000c2d0
lea r11, [rsp + 0x24a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret