Function at 0x140030810
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 - 0x1070]
mov eax, 0x1170
call fcn.1400349f0
sub rsp, rax
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x11a8], rbx
mov qword [rsp + 0x11b0], rsi
mov qword [rsp + 0x11b8], rdi
mov rax, qword [0x140061010]
xor rax, rsp
mov qword [rbp + 0x1060], rax
mov rsi, rcx
mov qword [rsp + 0x60], rcx
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x70], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x10], xmm1
movdqu xmmword [rbp - 0x70], xmm0
lea rdx, [0x14003de00]
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__2]
nop
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x31]
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
mov qword [rsp + 0x58], rax
mov rcx, qword [0x1400698a8]
mov eax, 4
cmp dword [rcx - 0x10], 0
je 0x1400308eb
mov rcx, qword gs:[0x58]
mov rdx, qword [rcx]
mov ecx, dword [rax + rdx]
cmp dword [0x14006b520], ecx
jg 0x14003158a
lea rdx, [0x14006b528]
lea rcx, [0x1400698b8]
call qword [sym.imp.mfc140u.dll_Ordinal_1501]
mov rdx, qword [0x1400698b8]
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 0x140030944
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 0x140030944
mov eax, 0x2aaaaaab
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
jmp 0x140030949
mov edx, 1
mov dword [0x14006a98c], edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rdi, rax
test rax, rax
je 0x140030998
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 0x140030998
mov eax, 0x2aaaaaab
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
jmp 0x14003099d
mov edx, 1
mov dword [0x14006a9a0], edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rdi, rax
test rax, rax
je 0x1400309ec
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 0x1400309ec
mov eax, 0x2aaaaaab
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
jmp 0x1400309f1
mov edx, 1
mov dword [0x14006a9a4], edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rdi, rax
test rax, rax
je 0x140030a40
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 0x140030a40
mov eax, 0x2aaaaaab
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
jmp 0x140030a45
mov edx, 1
mov dword [0x14006a9a8], edx
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetDC]
mov rsi, rax
mov rcx, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov r13, rax
mov edx, 0xc
mov rcx, rsi
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
cmp eax, 8
jl 0x140030a81
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc140u.dll_CMFCToolBar::DrawButton]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x80], xmm0
lea rcx, [rbp - 0x80]
call qword [sym.imp.CrlUtils.dll_bool___cdecl_CrlUtils::System::GetWorkAreaSizeWithoutTaskBarAndToolbarRectPixels_void____ptr64_]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rdi, rax
test rax, rax
je 0x140030ae1
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 0x140030ae1
mov eax, 0x2aaaaaab
imul ecx
mov edi, edx
sar edi, 4
mov eax, edi
shr eax, 0x1f
add edi, eax
jmp 0x140030ae6
mov edi, 1
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov r14, rax
test rax, rax
je 0x140030b38
mov edx, 0x5a
mov rcx, rax
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ebx, eax
mov rdx, r14
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
imul ecx, ebx, 0x21c
cmp ecx, 0xc0
jl 0x140030b38
mov eax, 0x2aaaaaab
imul ecx
mov r9d, edx
sar r9d, 4
mov eax, r9d
shr eax, 0x1f
add r9d, eax
jmp 0x140030b3e
mov r9d, 1
mov r10d, dword [rbp - 0x74]
sub r10d, dword [rbp - 0x7c]
mov r8d, dword [rbp - 0x78]
sub r8d, dword [rbp - 0x80]
mov eax, 0x55555556
imul r8d
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea ecx, [rdx + r9*2]
cmp r8d, ecx
jle 0x140030b95
mov eax, 0x55555556
imul r10d
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdi*2]
cmp r10d, eax
jle 0x140030b95
mov edi, 0x438
mov ebx, 0x21c
mov r12d, 0x14
mov r14d, ATL::CStringT<wchar_t,StrTraitMFC_DLL<wchar_t,ATL::ChTraitsCRT<wchar_t>
jmp 0x140030ba9
mov edi, 0x21c
mov ebx, 0x10e
mov r12d, 0xa
lea r14d, [rbx - 0x7d]
mov ecx, edi
call fcn.14002f5e0
mov r15d, eax
mov ecx, edi
call fcn.14002f5e0
mov ecx, ebx
call fcn.14002f5e0
mov edi, eax
mov dword [rsp + 0x48], eax
mov ecx, ebx
call fcn.14002f5e0
mov dword [rsp + 0x4c], eax
mov r8d, dword [0x14006a9a4]
add r8d, dword [0x14006a98c]
add r8d, r8d
mov ecx, eax
sub ecx, r8d
mov dword [0x14006a988], ecx
mov r9d, edi
sub r9d, r8d
mov dword [0x14006a94c], r9d
mov edx, dword [rbp - 0x78]
mov ecx, edx
mov eax, dword [rbp - 0x80]
sub ecx, eax
cmp r15d, ecx
jle 0x140030c1e
sub eax, edx
add eax, r15d
cdq
sub eax, edx
sar eax, 1
sub r9d, eax
mov dword [0x14006a94c], r9d
mov ecx, r14d
call fcn.14002f5e0
mov r15d, eax
mov dword [rsp + 0x44], eax
xor edi, edi
mov qword [0x14006a958], rdi
mov qword [0x140069938], rdi
mov rcx, qword [rsp + 0x50]
cmp dword [rcx - 0x10], edi
je 0x140030db7
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 rdi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140030d8a
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, 0xe
lea rdx, [rbp]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140030ccb
lea rcx, str.Error_reading_welcome_bitmap_file__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor edi, edi
mov ebx, edi
mov qword [0x14006a940], rbx
mov dword [0x14006a948], edi
jmp 0x140030dbe
mov eax, dword [rbp + 2]
test eax, eax
jne 0x140030ce0
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rbp + 2], eax
cmp dword [rsp + 0x40], 0xe
jne 0x140030d7e
mov ecx, 0x4d42
cmp word [rbp], cx
jne 0x140030d7e
lea r14d, [rax - 0xe]
mov ecx, r14d
mov edx, 1
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rbx, rax
test rax, rax
jne 0x140030d2c
lea rcx, str.Out_of_memory_loading_welcome_bitmap_file__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140030cb5
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, r14d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140030d71
lea rcx, str.Error_reading_welcome_bitmap_file__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rdi
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 0x140030cb5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
jmp 0x140030d9b
lea rcx, str.Invalid_welcome_bitmap_file_format__n
jmp 0x140030caf
lea rcx, str.Welcome_bitmap_file_does_not_exist__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor edi, edi
mov ebx, edi
mov qword [0x14006a940], rbx
test rbx, rbx
je 0x140030cc0
mov dword [0x14006a948], 1
jmp 0x140030dbe
mov rbx, qword [0x14006a940]
test rbx, rbx
je 0x140030ef6
mov eax, dword [rbx + 8]
mov dword [0x14006a988], eax
mov eax, dword [rbx + 4]
mov dword [0x14006a94c], eax
mov r14, rdi
mov edx, 0x26
mov rcx, rsi
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
bt eax, 8
jae 0x140030eef
mov edx, 0x68
mov rcx, rsi
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
cmp eax, 0x100
jne 0x140030eef
movzx edx, word [rbx + 0xe]
mov ecx, edx
sub ecx, 1
je 0x140030e2d
sub ecx, 3
je 0x140030e2d
sub ecx, 4
je 0x140030e2d
cmp ecx, 0x10
jne 0x140030eef
jmp 0x140030e42
mov ecx, edx
mov edi, 1
shl edi, cl
mov eax, dword [rbx + 0x20]
test eax, eax
je 0x140030e42
cmp eax, edi
cmovb edi, eax
mov r15d, dword [rbx]
add r15, rbx
test edi, edi
je 0x140030ee8
mov r14d, edi
lea rbx, [r14*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 0x140030e81
xor edi, edi
mov r14d, edi
jmp 0x140030eea
mov word [rax + 2], di
mov eax, 0x300
mov word [rbx], ax
test edi, edi
je 0x140030ec8
lea rcx, [rbx + 4]
sub r15, rbx
nop dword [rax + rax]
movzx eax, byte [r15 + rcx - 2]
mov byte [rcx], al
movzx eax, byte [r15 + rcx - 3]
mov byte [rcx + 1], al
movzx eax, byte [r15 + rcx - 4]
mov byte [rcx + 2], al
mov byte [rcx + 3], 0
lea rcx, [rcx + 4]
sub r14, 1
jne 0x140030ea0
mov rcx, rbx
call qword [sym.imp.GDI32.dll_CreatePalette]
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor edi, edi
mov r15d, dword [rsp + 0x44]
mov qword [0x14006a958], r14
mov rcx, r13
call qword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [0x14006a988]
mov dword [rsp + 0x20], eax
mov r9d, dword [0x14006a94c]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_SetRect]
mov rdx, qword [rsp + 0x58]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_SelectObject]
lea rdx, [rbp + 0x20]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_GetTextMetricsW]
mov ecx, r12d
call fcn.14002f5e0
mov r14d, eax
mov qword [rbp - 0x5c], 0
mov dword [rbp - 0x54], edi
mov word [rbp - 0x4c], 0
mov byte [rbp - 0x4a], 0
call qword [sym.imp.KERNEL32.dll_GetACP]
cmp eax, 0x4e2
jg 0x140030f9d
je 0x140030f99
sub eax, 0x36a
je 0x140030f95
sub eax, 0x3a
je 0x140030f91
sub eax, 4
je 0x140030f8d
sub eax, 0xd
je 0x140030f89
sub eax, 1
jne case.0x140030fba.1252
mov al, 0x88
jmp 0x140030fd6
mov al, 0x81
jmp 0x140030fd6
mov al, 0x86
jmp 0x140030fd6
mov al, 0x80
jmp 0x140030fd6
mov al, 0xde
jmp 0x140030fd6
mov al, 0xee
jmp 0x140030fd6
sub eax, 0x4e3
cmp eax, 6
ja case.0x140030fba.1252
cdqe
lea rdx, [0x140000000]
mov ecx, dword [rdx + rax*4 + 0x31624]
add rcx, rdx
jmp rcx
mov al, 0xcc
jmp 0x140030fd6
mov al, 0xa1
jmp 0x140030fd6
mov al, 0xa2
jmp 0x140030fd6
mov al, 0xb1
jmp 0x140030fd6
mov al, 0xb2
jmp 0x140030fd6
mov al, 0xba
jmp 0x140030fd6
xor al, al
mov byte [rbp - 0x49], al
mov word [rbp - 0x48], 0
mov dword [rbp - 0x46], reloc.mfc140u.dll_CMFCPopupMenuBar::m_uiPopupTimerDelay
mov dword [rbp - 0x60], r14d
mov dword [rbp - 0x50], 0x190
lea rdx, str.Segoe_UI
lea rcx, [rbp - 0x44]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rbp - 0x60]
call qword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov qword [0x14006a960], rax
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.GDI32.dll_SelectObject]
xor edx, edx
mov r8d, 0x1000
lea rcx, [rbp + 0x60]
call sub.VCRUNTIME140.dll_memset
lea r8, [rbp + 0x60]
mov edx, 0x800
mov rcx, rsi
call qword [sym.imp.GDI32.dll_GetTextFaceW]
lea rdx, [rbp + 0x60]
lea rcx, [rbp - 0x44]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14003108b
lea rdx, str.Segoe_UI
lea rcx, [rbp - 0x44]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rbp - 0x60]
call qword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov qword [0x14006a960], rax
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, rax
call qword [sym.imp.GDI32.dll_DeleteObject]
lea rdx, [rbp + 0x20]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_GetTextMetricsW]
mov ecx, dword [rbp + 0x20]
add ecx, dword [0x14006a9a0]
add dword [rsp + 0x7c], ecx
lea eax, [r14 + r14*2]
add eax, eax
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [rbp - 0x60], eax
mov dword [rbp - 0x58], edi
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rdi, rax
test rax, rax
je 0x140031106
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, 0xc8
cmp ecx, 0xc0
jl 0x140031106
mov eax, 0x2aaaaaab
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
jmp 0x14003110b
mov edx, 1
neg edx
mov dword [rbp - 0x54], edx
mov dword [rbp - 0x50], 0x190
lea rdx, str.Segoe_UI_Semilight
lea rcx, [rbp - 0x44]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rbp - 0x60]
call qword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov qword [0x14006a978], rax
xor r12d, r12d
mov qword [rbp - 0x58], r12
lea ecx, [r14 + r14*2]
shl ecx, 2
mov eax, 0x66666667
imul ecx
mov edi, edx
sar edi, 2
mov ecx, edi
shr ecx, 0x1f
add edi, ecx
mov dword [rbp - 0x60], edi
mov dword [rbp - 0x50], 0x190
lea rdx, str.Segoe_UI_Semilight
lea rcx, [rbp - 0x44]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rbp - 0x60]
call qword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov qword [0x14006a970], rax
lea rdx, str.Segoe_UI_Semilight
lea rcx, [rbp - 0x44]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
imul ecx, r14d, 0x13
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [rbp - 0x60], edx
lea rcx, [rbp - 0x60]
call qword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov qword [0x14006a968], rax
mov ebx, r12d
mov r14d, 4
cmp qword [0x1400698a0], rbx
je 0x140031274
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [r14 + rcx]
cmp dword [0x14006b530], eax
jg 0x1400315d5
mov r8, qword [0x14006b538]
mov edx, 0x400
lea rcx, [0x14006a9b0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov rax, qword [0x14006b538]
mov ebx, dword [rax - 0x10]
test ebx, ebx
je 0x140031274
mov rdx, qword [0x14006a968]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_SelectObject]
lea rdx, [rbp + 0x20]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_GetTextMetricsW]
mov eax, dword [rsp + 0x7c]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x78]
mov r8d, dword [rsp + 0x74]
mov edx, dword [rsp + 0x70]
lea rcx, [0x14006a990]
call qword [sym.imp.USER32.dll_SetRect]
mov edx, dword [rbp + 0x20]
add edx, dword [0x14006a9a0]
mov eax, dword [rsp + 0x7c]
add eax, edx
mov dword [rsp + 0x7c], eax
mov dword [0x14006a99c], eax
jmp 0x14003128e
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x14006a990]
call qword [sym.imp.USER32.dll_SetRect]
mov rdx, qword [0x14006a970]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_SelectObject]
lea rdx, [rbp + 0x20]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_GetTextMetricsW]
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x70]
call qword [sym.imp.USER32.dll_CopyRect]
mov rdx, qword [0x1400698c0]
mov dword [rsp + 0x20], 0xd11
lea r9, [rbp - 0x70]
mov r8d, dword [rdx - 0x10]
mov rcx, rsi
call qword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [rbp - 0x68]
sub eax, dword [rbp - 0x70]
cdq
mov r8d, eax
xor r8d, edx
sub r8d, edx
mov eax, dword [rbp - 0x64]
sub eax, dword [rbp - 0x6c]
cmp dword [rsp + 0x78], r8d
cmovg r8d, dword [rsp + 0x78]
mov dword [rsp + 0x78], r8d
cdq
xor eax, edx
sub eax, edx
mov edx, dword [rbp + 0x20]
add edx, eax
mov eax, dword [0x14006a9a0]
lea ecx, [rdx + rax*2]
add dword [rsp + 0x7c], ecx
call fcn.1400303c0
test eax, eax
je 0x140031326
mov byte [rbp - 0x45], 2
jmp 0x14003132d
mov dword [rbp - 0x50], 0x190
mov dword [rbp - 0x60], edi
lea rdx, str.Segoe_UI_Semilight
lea rcx, [rbp - 0x44]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rbp - 0x60]
call qword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov qword [0x14006a980], rax
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.GDI32.dll_SelectObject]
lea rdx, [rbp + 0x20]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_GetTextMetricsW]
mov rax, qword [0x1400698b0]
cmp dword [rax - 0x10], 0
je 0x1400313b9
mov edx, r14d
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14006b540], eax
jg 0x14003153f
mov r8, qword [0x14006b548]
mov edx, 0x800
lea rcx, [0x140069940]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov rax, qword [0x14006b548]
mov ebx, dword [rax - 0x10]
test ebx, ebx
jle 0x1400313f3
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rbp + 0x10], xmm0
mov dword [rsp + 0x20], 0xd11
lea r9, [rbp + 0x10]
mov r8d, ebx
lea rdx, [0x140069940]
mov rcx, rsi
call qword [sym.imp.USER32.dll_DrawTextW]
mov ecx, dword [0x14006a9a0]
add ecx, dword [rbp + 0x20]
add dword [rsp + 0x7c], ecx
mov ecx, 0xd
call qword [sym.imp.GDI32.dll_GetStockObject]
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.GDI32.dll_SelectObject]
mov rdx, rsi
mov rsi, qword [rsp + 0x60]
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 [0x1400698d0]
mov rcx, rax
call qword [sym.imp.GDI32.dll_GetNearestColor]
mov ecx, eax
call qword [sym.imp.GDI32.dll_CreateSolidBrush]
mov qword [0x14006a950], 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, [rsp + 0x70]
call qword [sym.imp.USER32.dll_AdjustWindowRect]
mov eax, dword [rbp - 0x78]
sub eax, dword [rbp - 0x80]
cdq
sub eax, edx
sar eax, 1
mov r8d, eax
mov r10d, dword [rsp + 0x48]
mov eax, r10d
cdq
sub eax, edx
sar eax, 1
sub r8d, eax
mov eax, dword [rbp - 0x74]
sub eax, dword [rbp - 0x7c]
cdq
sub eax, edx
sar eax, 1
mov r9d, eax
mov r11d, dword [rsp + 0x4c]
mov eax, r11d
cdq
sub eax, edx
sar eax, 1
sub r9d, eax
add r9d, r15d
mov dword [rsp + 0x30], 0x14
mov dword [rsp + 0x28], r11d
mov dword [rsp + 0x20], r10d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.USER32.dll_SetWindowPos]
mov r8d, dword [0x14006a9a8]
add r8d, dword [0x14006a9a0]
mov edx, dword [0x14006a98c]
add edx, dword [0x14006a9a4]
lea rcx, [0x14006a990]
call qword [sym.imp.USER32.dll_OffsetRect]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov eax, 1
mov rcx, qword [rbp + 0x1060]
xor rcx, rsp
call fcn.1400334c0
lea r11, [rsp + 0x1170]
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
lea rcx, [0x14006b540]
call fcn.140033810
cmp dword [0x14006b540], 0xffffffff
jne 0x140031396
lea rdx, [0x1400698b0]
lea rcx, [0x14006b548]
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_]
lea rcx, [0x140036e90]
call fcn.140033bdc
nop
lea rcx, [0x14006b540]
call fcn.1400337b0
jmp 0x140031396
lea rcx, [0x14006b520]
call fcn.140033810
cmp dword [0x14006b520], 0xffffffff
jne 0x1400308d7
lea rdx, [0x1400698a8]
lea rcx, [0x14006b528]
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_]
lea rcx, [0x140036eb0]
call fcn.140033bdc
nop
lea rcx, [0x14006b520]
call fcn.1400337b0
jmp 0x1400308d7
lea rcx, [0x14006b530]
call fcn.140033810
cmp dword [0x14006b530], 0xffffffff
jne 0x1400311f2
lea rdx, [0x1400698a0]
lea rcx, [0x14006b538]
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_]
lea rcx, [0x140036ea0]
call fcn.140033bdc
nop
lea rcx, [0x14006b530]
call fcn.1400337b0
jmp 0x1400311f2