Function at 0x1400399a0
Capabilities:
Get file size
Print debug messages
Read file on windows

Disassembly:
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1090]
mov eax, 0x1190
call fcn.14003d990
sub rsp, rax
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rsp + 0x11c8], rbx
mov qword [rsp + 0x11d0], rsi
mov qword [rsp + 0x11d8], rdi
mov rax, qword [0x14006a008]
xor rax, rsp
mov qword [rbp + 0x1080], rax
mov rsi, rcx
mov qword [rsp + 0x78], rcx
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x70], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x30], xmm1
movdqu xmmword [rbp + 0x10], xmm0
lea rdx, [0x140047700]
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__8]
nop
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x31]
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
mov qword [rsp + 0x70], rax
mov r8d, dword [0x140071ba8]
test r8d, r8d
je 0x140039a5a
mov rdx, qword [0x140071b80]
lea rcx, [0x140071bb0]
call qword [sym.imp.mfc140u.dll_COccManager::IsDialogMessageW]
jmp 0x140039a96
mov rax, qword [0x140071b98]
cmp dword [rax - 0x10], 0
je 0x140039a96
lea rdx, [0x140071b98]
lea rcx, [rsp + 0x50]
call qword [sym.imp.CrlResources.dll_public:_static_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_Framework::Resources::GetString_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t____const____ptr64_]
nop
mov rdx, rax
lea rcx, [0x140071bb0]
call qword [sym.imp.mfc140u.dll_Ordinal_1501]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov rdx, qword [0x140071bb0]
mov rcx, rsi
call qword [sym.imp.USER32.dll_SetWindowTextW]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rdi, rax
test rax, rax
je 0x140039aef
mov edx, 0x5a
mov rcx, rax
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ebx, eax
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
lea ecx, [rbx + rbx*2]
cmp ecx, 0xc0
jl 0x140039aef
mov eax, 0x2aaaaaab
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
jmp 0x140039af4
mov edx, 1
mov dword [0x1400715cc], edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rdi, rax
test rax, rax
je 0x140039b43
mov edx, 0x5a
mov rcx, rax
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ebx, eax
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
lea ecx, [rbx + rbx*2]
cmp ecx, 0xc0
jl 0x140039b43
mov eax, 0x2aaaaaab
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
jmp 0x140039b48
mov edx, 1
mov dword [0x1400714f4], edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rdi, rax
test rax, rax
je 0x140039b97
mov edx, 0x5a
mov rcx, rax
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ebx, eax
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
lea ecx, [rbx + rbx*4]
cmp ecx, 0xc0
jl 0x140039b97
mov eax, 0x2aaaaaab
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
jmp 0x140039b9c
mov edx, 1
mov dword [0x1400714f0], edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rdi, rax
test rax, rax
je 0x140039beb
mov edx, 0x5a
mov rcx, rax
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ebx, eax
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
lea ecx, [rbx + rbx*4]
cmp ecx, 0xc0
jl 0x140039beb
mov eax, 0x2aaaaaab
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
jmp 0x140039bf0
mov edx, 1
mov dword [0x1400714f8], edx
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetDC]
mov r14, rax
mov rcx, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov r13, rax
mov qword [rsp + 0x50], rax
mov edx, 0xc
mov rcx, r14
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
cmp eax, 8
jl 0x140039c31
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc140u.dll_CMFCToolBar::DrawButton]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x60], xmm0
xor r9d, r9d
lea r8, [rbp - 0x60]
xor edx, edx
lea ecx, [rdx + 0x30]
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rdi, rax
test rax, rax
je 0x140039c99
mov edx, 0x5a
mov rcx, rax
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ebx, eax
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
imul ecx, ebx, 0x21c
cmp ecx, 0xc0
jl 0x140039c99
mov eax, 0x2aaaaaab
imul ecx
mov edi, edx
sar edi, 4
mov eax, edi
shr eax, 0x1f
add edi, eax
jmp 0x140039c9e
mov edi, 1
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rsi, rax
test rax, rax
je 0x140039cf0
mov edx, 0x5a
mov rcx, rax
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ebx, eax
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
imul ecx, ebx, 0x21c
cmp ecx, 0xc0
jl 0x140039cf0
mov eax, 0x2aaaaaab
imul ecx
mov r9d, edx
sar r9d, 4
mov eax, r9d
shr eax, 0x1f
add r9d, eax
jmp 0x140039cf6
mov r9d, 1
mov r10d, dword [rbp - 0x54]
sub r10d, dword [rbp - 0x5c]
mov r8d, dword [rbp - 0x58]
sub r8d, dword [rbp - 0x60]
mov eax, 0x55555556
imul r8d
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea ecx, [rdx + r9*2]
cmp r8d, ecx
jle 0x140039d54
mov eax, 0x55555556
imul r10d
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdi*2]
cmp r10d, eax
jle 0x140039d54
mov esi, ATL::CStringT<wchar_t,StrTraitMFC_DLL<wchar_t,ATL::ChTraitsCRT<wchar_t>
mov edi, 0x438
mov ebx, 0x21c
mov r12d, 0x14
mov dword [rsp + 0x48], 0x10
jmp 0x140039d6f
mov esi, 0x91
mov edi, 0x21c
lea ebx, [rsi + 0x7d]
mov r12d, 0xa
mov dword [rsp + 0x48], 8
mov ecx, edi
call fcn.1400386e0
mov r15d, eax
mov ecx, edi
call fcn.1400386e0
mov ecx, ebx
call fcn.1400386e0
mov edi, eax
mov dword [rsp + 0x58], eax
mov ecx, ebx
call fcn.1400386e0
mov dword [rsp + 0x5c], eax
mov r8d, dword [0x1400714f0]
add r8d, dword [0x1400715cc]
add r8d, r8d
mov ecx, eax
sub ecx, r8d
mov dword [0x1400715e4], ecx
mov r9d, edi
sub r9d, r8d
mov dword [0x1400715e8], r9d
mov edx, dword [rbp - 0x58]
mov ecx, edx
mov eax, dword [rbp - 0x60]
sub ecx, eax
cmp r15d, ecx
jle 0x140039de4
sub eax, edx
add eax, r15d
cdq
sub eax, edx
sar eax, 1
sub r9d, eax
mov dword [0x1400715e8], r9d
mov ecx, esi
call fcn.1400386e0
mov dword [rsp + 0x60], eax
xor edi, edi
mov qword [0x140072bf8], rdi
mov qword [0x140071b18], rdi
mov rcx, qword [rsp + 0x68]
cmp dword [rcx - 0x10], edi
je 0x140039f67
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rdi + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140039f3b
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x40]
lea r8d, [rdi + 0xe]
lea rdx, [rbp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140039e86
lea rcx, str.Error_reading_welcome_bitmap_file__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rbx, rdi
mov qword [0x140071b48], rbx
mov dword [0x1400715ec], edi
jmp 0x140039f6e
mov eax, dword [rbp + 0x22]
test eax, eax
jne 0x140039e9b
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rbp + 0x22], eax
cmp dword [rsp + 0x40], 0xe
jne 0x140039f2f
mov ecx, 0x4d42
cmp word [rbp + 0x20], cx
jne 0x140039f2f
lea r15d, [rax - 0xe]
mov ecx, r15d
mov edx, 1
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rbx, rax
test rax, rax
jne 0x140039ee3
lea rcx, str.Out_of_memory_loading_welcome_bitmap_file__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140039e71
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x40]
mov r8d, r15d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140039f24
lea rcx, str.Error_reading_welcome_bitmap_file__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140039e71
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140039f4b
lea rcx, str.Invalid_welcome_bitmap_file_format__n
jmp 0x140039e6b
lea rcx, str.Welcome_bitmap_file_does_not_exist__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rbx, rdi
mov qword [0x140071b48], rbx
test rbx, rbx
je 0x140039e7b
mov dword [0x1400715ec], 1
jmp 0x140039f6e
mov rbx, qword [0x140071b48]
test rbx, rbx
je 0x14003a0a4
mov eax, dword [rbx + 8]
mov dword [0x1400715e4], eax
mov eax, dword [rbx + 4]
mov dword [0x1400715e8], eax
mov r15, rdi
mov edx, 0x26
mov rcx, r14
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
bt eax, 8
jae 0x14003a09d
mov edx, 0x68
mov rcx, r14
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
cmp eax, 0x100
jne 0x14003a09d
movzx edx, word [rbx + 0xe]
mov ecx, edx
sub ecx, 1
je 0x140039fdf
sub ecx, 3
je 0x140039fdf
sub ecx, 4
je 0x140039fdf
cmp ecx, 0x10
jne 0x14003a09d
mov esi, edi
jmp 0x140039ff4
mov ecx, edx
mov esi, 1
shl esi, cl
mov eax, dword [rbx + 0x20]
test eax, eax
je 0x140039ff4
cmp eax, esi
cmovb esi, eax
mov r13d, dword [rbx]
add r13, rbx
test esi, esi
je 0x14003a098
mov r15d, esi
lea rbx, [r15*4 + 8]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x14003a031
mov r15, rdi
jmp 0x14003a098
mov word [rax + 2], si
mov eax, 0x300
mov word [rbx], ax
test esi, esi
je 0x14003a078
lea rcx, [rbx + 4]
sub r13, rbx
nop dword [rax + rax]
movzx eax, byte [r13 + rcx - 2]
mov byte [rcx], al
movzx eax, byte [r13 + rcx - 3]
mov byte [rcx + 1], al
movzx eax, byte [rcx + r13 - 4]
mov byte [rcx + 2], al
mov byte [rcx + 3], dil
lea rcx, [rcx + 4]
sub r15, 1
jne 0x14003a050
mov rcx, rbx
call qword [sym.imp.GDI32.dll_CreatePalette]
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r13, qword [rsp + 0x50]
mov qword [0x140072bf8], r15
mov rcx, r13
call qword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [0x1400715e4]
mov dword [rsp + 0x20], eax
mov r9d, dword [0x1400715e8]
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x70]
call qword [sym.imp.USER32.dll_SetRect]
mov rdx, qword [rsp + 0x70]
mov rcx, r14
call qword [sym.imp.GDI32.dll_SelectObject]
lea rdx, [rbp + 0x40]
mov rcx, r14
call qword [sym.imp.GDI32.dll_GetTextMetricsW]
mov ecx, r12d
call fcn.1400386e0
mov r8d, eax
mov dword [rbp + 0x40], eax
imul ecx, eax, 7
mov eax, 0x66666667
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov dword [0x1400715c8], edx
mov dword [0x1400714fc], r8d
mov rdx, qword [rsp + 0x70]
mov rcx, r14
call qword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [rbp + 0x40]
lea ecx, [rax + rax*4]
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [0x1400715e0], edx
mov qword [rbp - 0x4c], rdi
mov dword [rbp - 0x44], edi
mov word [rbp - 0x3c], di
mov byte [rbp - 0x3a], dil
call qword [sym.imp.KERNEL32.dll_GetACP]
cmp eax, 0x4e2
jg 0x14003a193
je 0x14003a18f
sub eax, 0x36a
je 0x14003a18b
sub eax, 0x3a
je 0x14003a187
sub eax, 4
je 0x14003a183
sub eax, 0xd
je 0x14003a17f
sub eax, 1
jne case.0x14003a1b0.1252
mov al, 0x88
jmp 0x14003a1cc
mov al, 0x81
jmp 0x14003a1cc
mov al, 0x86
jmp 0x14003a1cc
mov al, 0x80
jmp 0x14003a1cc
mov al, 0xde
jmp 0x14003a1cc
mov al, 0xee
jmp 0x14003a1cc
sub eax, 0x4e3
cmp eax, 6
ja case.0x14003a1b0.1252
cdqe
lea rdx, [0x140000000]
mov ecx, dword [rdx + rax*4 + 0x3a7b0]
add rcx, rdx
jmp rcx
mov al, 0xcc
jmp 0x14003a1cc
mov al, 0xa1
jmp 0x14003a1cc
mov al, 0xa2
jmp 0x14003a1cc
mov al, 0xb1
jmp 0x14003a1cc
mov al, 0xb2
jmp 0x14003a1cc
mov al, 0xba
jmp 0x14003a1cc
xor al, al
mov byte [rbp - 0x39], al
mov word [rbp - 0x38], di
mov dword [rbp - 0x36], 0x2204
mov eax, dword [0x1400715c8]
mov dword [rbp - 0x50], eax
mov dword [rbp - 0x40], 0x190
lea rdx, str.Segoe_UI
lea rcx, [rbp - 0x34]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rbp - 0x50]
call qword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov qword [0x140072c00], rax
mov rdx, rax
mov rcx, r14
call qword [sym.imp.GDI32.dll_SelectObject]
xor edx, edx
mov r8d, 0x1000
lea rcx, [rbp + 0x80]
call sub.VCRUNTIME140.dll_memset
lea r8, [rbp + 0x80]
mov edx, 0x800
mov rcx, r14
call qword [sym.imp.GDI32.dll_GetTextFaceW]
lea rdx, [rbp + 0x80]
lea rcx, [rbp - 0x34]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14003a28d
lea rdx, str.Segoe_UI
lea rcx, [rbp - 0x34]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rbp - 0x50]
call qword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov qword [0x140072c00], rax
mov rdx, rax
mov rcx, r14
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, rax
call qword [sym.imp.GDI32.dll_DeleteObject]
lea rdx, [rbp + 0x40]
mov rcx, r14
call qword [sym.imp.GDI32.dll_GetTextMetricsW]
mov edx, dword [rbp + 0x40]
mov ecx, dword [0x1400714f4]
add ecx, edx
add dword [rbp - 0x64], ecx
lea eax, [rdx + rdx*2]
add eax, eax
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [rbp - 0x50], eax
mov dword [rbp - 0x48], edi
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rsi, rax
test rax, rax
je 0x14003a308
mov edx, 0x5a
mov rcx, rax
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ebx, eax
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
imul ecx, ebx, 0xc8
cmp ecx, 0xc0
jl 0x14003a308
mov eax, 0x2aaaaaab
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
jmp 0x14003a30d
mov edx, 1
neg edx
mov dword [rbp - 0x44], edx
mov dword [rbp - 0x40], 0x190
lea rdx, str.Segoe_UI
lea rcx, [rbp - 0x34]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rbp - 0x50]
call qword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov qword [0x140072c08], rax
mov qword [rbp - 0x48], rdi
mov ecx, dword [0x1400714fc]
mov dword [rbp - 0x50], ecx
mov dword [rbp - 0x40], 0x190
lea rdx, str.Segoe_UI
lea rcx, [rbp - 0x34]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rbp - 0x50]
call qword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov qword [0x1400715f8], rax
lea rdx, str.Segoe_UI_Semilight
lea rcx, [rbp - 0x34]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
imul ecx, dword [rbp + 0x40], 0x13
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [rbp - 0x50], edx
lea rcx, [rbp - 0x50]
call qword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov qword [0x1400715f0], rax
mov ebx, edi
mov edx, dword [0x140071bd0]
test edx, edx
je 0x14003a3d5
mov r9d, 0x64
lea r8, [0x140071500]
mov rcx, qword [0x140071b80]
call qword [sym.imp.USER32.dll_LoadStringW]
mov ebx, eax
jmp 0x14003a41e
cmp qword [0x140071b90], rbx
je 0x14003a46a
lea rdx, [0x140071b90]
lea rcx, [rsp + 0x40]
call qword [sym.imp.CrlResources.dll_public:_static_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_Framework::Resources::GetString_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t____const____ptr64_]
mov r8, qword [rsp + 0x40]
mov edx, 0x64
lea rcx, [0x140071500]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov rax, qword [rsp + 0x40]
mov ebx, dword [rax - 0x10]
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
test ebx, ebx
je 0x14003a46a
mov rdx, qword [0x1400715f0]
mov rcx, r14
call qword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [rbp - 0x64]
mov dword [rsp + 0x20], eax
mov r9d, dword [rbp - 0x68]
mov r8d, dword [rbp - 0x6c]
mov edx, dword [rbp - 0x70]
lea rcx, [0x1400715d0]
call qword [sym.imp.USER32.dll_SetRect]
mov edx, dword [0x1400714f4]
add edx, dword [rbp + 0x40]
mov eax, dword [rbp - 0x64]
add eax, edx
mov dword [rbp - 0x64], eax
mov dword [0x1400715dc], eax
jmp 0x14003a483
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400715d0]
call qword [sym.imp.USER32.dll_SetRect]
mov rdx, qword [0x1400715f8]
mov rcx, r14
call qword [sym.imp.GDI32.dll_SelectObject]
lea rdx, [rbp + 0x40]
mov rcx, r14
call qword [sym.imp.GDI32.dll_GetTextMetricsW]
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0x10]
call qword [sym.imp.USER32.dll_CopyRect]
mov rdx, qword [0x140071bb8]
mov dword [rsp + 0x20], 0xd11
lea r9, [rbp + 0x10]
mov r8d, dword [rdx - 0x10]
mov rcx, r14
call qword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [rbp + 0x18]
sub eax, dword [rbp + 0x10]
cdq
mov r8d, eax
xor r8d, edx
sub r8d, edx
mov eax, dword [rbp + 0x1c]
sub eax, dword [rbp + 0x14]
cmp dword [rbp - 0x68], r8d
cmovg r8d, dword [rbp - 0x68]
mov dword [rbp - 0x68], r8d
cdq
xor eax, edx
sub eax, edx
mov edx, dword [0x1400714fc]
add edx, eax
mov eax, dword [0x1400714f4]
lea ecx, [rdx + rax*2]
add dword [rbp - 0x64], ecx
call fcn.140039540
mov esi, dword [rsp + 0x48]
test eax, eax
je 0x14003a524
mov ecx, esi
call fcn.1400386e0
mov byte [rbp - 0x35], 2
jmp 0x14003a531
mov eax, dword [0x1400715e0]
mov dword [rbp - 0x40], 0x190
mov dword [rbp - 0x50], eax
cmp dword [0x140071354], edi
je 0x14003a546
mov ecx, esi
call fcn.1400386e0
mov dword [rbp - 0x50], eax
lea rdx, str.Segoe_UI
lea rcx, [rbp - 0x34]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rbp - 0x50]
call qword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov qword [0x140072c10], rax
mov rdx, rax
mov rcx, r14
call qword [sym.imp.GDI32.dll_SelectObject]
lea rdx, [rbp + 0x40]
mov rcx, r14
call qword [sym.imp.GDI32.dll_GetTextMetricsW]
lea rsi, [0x140071bf0]
mov eax, dword [0x140071bcc]
test eax, eax
je 0x14003a5e9
mov ebx, edi
mov r15d, 0x20
nop word [rax + rax]
test ebx, ebx
jle 0x14003a5b6
movsxd rax, ebx
cmp word [rsi + rax*2 - 2], 0xa
je 0x14003a5b6
mov word [rsi + rax*2], r15w
inc ebx
mov r9d, 0x800
sub r9d, ebx
movsxd rax, ebx
lea r8, [rsi + rax*2]
mov edx, dword [0x140071bc8]
add edx, edi
mov rcx, qword [0x140071b80]
call qword [sym.imp.USER32.dll_LoadStringW]
add ebx, eax
inc edi
cmp edi, dword [0x140071bcc]
jb 0x14003a5a0
jmp 0x14003a62d
mov rax, qword [0x140071ba0]
cmp dword [rax - 0x10], edi
je 0x14003a62d
lea rdx, [0x140071ba0]
lea rcx, [rsp + 0x48]
call qword [sym.imp.CrlResources.dll_public:_static_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_Framework::Resources::GetString_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t____const____ptr64_]
mov r8, qword [rsp + 0x48]
mov edx, 0x800
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov rax, qword [rsp + 0x48]
mov ebx, dword [rax - 0x10]
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
test ebx, ebx
jle 0x14003a664
movaps xmm0, xmmword [rbp - 0x70]
movdqa xmmword [rbp + 0x30], xmm0
mov dword [rsp + 0x20], 0xd11
lea r9, [rbp + 0x30]
mov r8d, ebx
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.USER32.dll_DrawTextW]
mov dword [0x1400715e0], eax
add eax, dword [0x1400714f4]
add dword [rbp - 0x64], eax
mov ecx, 0xd
call qword [sym.imp.GDI32.dll_GetStockObject]
mov rdx, rax
mov rcx, r14
call qword [sym.imp.GDI32.dll_SelectObject]
mov rdx, r14
mov rsi, qword [rsp + 0x78]
mov rcx, rsi
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetParent]
mov rdi, rax
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDC]
mov rbx, rax
mov edx, dword [0x140071bd8]
mov rcx, rax
call qword [sym.imp.GDI32.dll_GetNearestColor]
mov ecx, eax
call qword [sym.imp.GDI32.dll_CreateSolidBrush]
mov qword [0x140072bf0], rax
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.USER32.dll_ReleaseDC]
mov edx, 0xfffffff0
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetWindowLongW]
mov edx, eax
xor r8d, r8d
lea rcx, [rbp - 0x70]
call qword [sym.imp.USER32.dll_AdjustWindowRect]
mov eax, dword [rbp - 0x58]
sub eax, dword [rbp - 0x60]
cdq
sub eax, edx
sar eax, 1
mov r8d, eax
mov ecx, dword [rsp + 0x58]
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
sub r8d, eax
mov eax, dword [rbp - 0x54]
sub eax, dword [rbp - 0x5c]
cdq
sub eax, edx
sar eax, 1
mov r9d, eax
mov r10d, dword [rsp + 0x5c]
mov eax, r10d
cdq
sub eax, edx
sar eax, 1
sub r9d, eax
add r9d, dword [rsp + 0x60]
mov dword [rsp + 0x30], 0x14
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], ecx
xor edx, edx
mov rcx, rsi
call qword [sym.imp.USER32.dll_SetWindowPos]
mov r8d, dword [0x1400714f4]
add r8d, dword [0x1400714f8]
mov edx, dword [0x1400714f0]
add edx, dword [0x1400715cc]
lea rcx, [0x1400715d0]
call qword [sym.imp.USER32.dll_OffsetRect]
nop
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov eax, 1
mov rcx, qword [rbp + 0x1080]
xor rcx, rsp
call fcn.14003c7b0
lea r11, [rsp + 0x1190]
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