Function at 0x140004b90
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.140008330
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 [0x140010008]
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, [0x14000ac56]
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__5]
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 [0x140010ed8]
test r8d, r8d
je 0x140004c4a
mov rdx, qword [0x140010eb0]
lea rcx, [0x140010ee0]
call qword [sym.imp.mfc140u.dll_COccManager::IsDialogMessageW]
jmp 0x140004c86
mov rax, qword [0x140010ec8]
cmp dword [rax - 0x10], 0
je 0x140004c86
lea rdx, [0x140010ec8]
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, [0x140010ee0]
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 [0x140010ee0]
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 0x140004cdf
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 0x140004cdf
mov eax, 0x2aaaaaab
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
jmp 0x140004ce4
mov edx, 1
mov dword [0x140010d90], edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rdi, rax
test rax, rax
je 0x140004d33
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 0x140004d33
mov eax, 0x2aaaaaab
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
jmp 0x140004d38
mov edx, 1
mov dword [0x140010d8c], edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rdi, rax
test rax, rax
je 0x140004d87
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 0x140004d87
mov eax, 0x2aaaaaab
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
jmp 0x140004d8c
mov edx, 1
mov dword [0x140010d88], edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rdi, rax
test rax, rax
je 0x140004ddb
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 0x140004ddb
mov eax, 0x2aaaaaab
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
jmp 0x140004de0
mov edx, 1
mov dword [0x140010cbc], 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 0x140004e21
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 0x140004e89
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 0x140004e89
mov eax, 0x2aaaaaab
imul ecx
mov edi, edx
sar edi, 4
mov eax, edi
shr eax, 0x1f
add edi, eax
jmp 0x140004e8e
mov edi, 1
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rsi, rax
test rax, rax
je 0x140004ee0
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 0x140004ee0
mov eax, 0x2aaaaaab
imul ecx
mov r9d, edx
sar r9d, 4
mov eax, r9d
shr eax, 0x1f
add r9d, eax
jmp 0x140004ee6
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 0x140004f44
mov eax, 0x55555556
imul r10d
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdi*2]
cmp r10d, eax
jle 0x140004f44
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 0x140004f5f
mov esi, 0x91
mov edi, 0x21c
lea ebx, [rsi + 0x7d]
mov r12d, 0xa
mov dword [rsp + 0x48], 8
mov ecx, edi
call fcn.1400038a0
mov r15d, eax
mov ecx, edi
call fcn.1400038a0
mov ecx, ebx
call fcn.1400038a0
mov edi, eax
mov dword [rsp + 0x58], eax
mov ecx, ebx
call fcn.1400038a0
mov dword [rsp + 0x5c], eax
mov r8d, dword [0x140010d88]
add r8d, dword [0x140010d90]
add r8d, r8d
mov ecx, eax
sub ecx, r8d
mov dword [0x140010dac], ecx
mov r9d, edi
sub r9d, r8d
mov dword [0x140010db0], r9d
mov edx, dword [rbp - 0x58]
mov ecx, edx
mov eax, dword [rbp - 0x60]
sub ecx, eax
cmp r15d, ecx
jle 0x140004fd4
sub eax, edx
add eax, r15d
cdq
sub eax, edx
sar eax, 1
sub r9d, eax
mov dword [0x140010db0], r9d
mov ecx, esi
call fcn.1400038a0
mov dword [rsp + 0x60], eax
xor edi, edi
mov qword [0x140011f38], rdi
mov qword [0x140011f20], rdi
mov rcx, qword [rsp + 0x68]
cmp dword [rcx - 0x10], edi
je 0x140005157
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 0x14000512b
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 0x140005076
lea rcx, str.Error_reading_welcome_bitmap_file__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rbx, rdi
mov qword [0x140011f28], rbx
mov dword [0x140010dc8], edi
jmp 0x14000515e
mov eax, dword [rbp + 0x22]
test eax, eax
jne 0x14000508b
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rbp + 0x22], eax
cmp dword [rsp + 0x40], 0xe
jne 0x14000511f
mov ecx, 0x4d42
cmp word [rbp + 0x20], cx
jne 0x14000511f
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 0x1400050d3
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 0x140005061
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 0x140005114
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 0x140005061
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000513b
lea rcx, str.Invalid_welcome_bitmap_file_format__n
jmp 0x14000505b
lea rcx, str.Welcome_bitmap_file_does_not_exist__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rbx, rdi
mov qword [0x140011f28], rbx
test rbx, rbx
je 0x14000506b
mov dword [0x140010dc8], 1
jmp 0x14000515e
mov rbx, qword [0x140011f28]
test rbx, rbx
je 0x140005294
mov eax, dword [rbx + 8]
mov dword [0x140010dac], eax
mov eax, dword [rbx + 4]
mov dword [0x140010db0], eax
mov r15, rdi
mov edx, 0x26
mov rcx, r14
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
bt eax, 8
jae 0x14000528d
mov edx, 0x68
mov rcx, r14
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
cmp eax, 0x100
jne 0x14000528d
movzx edx, word [rbx + 0xe]
mov ecx, edx
sub ecx, 1
je 0x1400051cf
sub ecx, 3
je 0x1400051cf
sub ecx, 4
je 0x1400051cf
cmp ecx, 0x10
jne 0x14000528d
mov esi, edi
jmp 0x1400051e4
mov ecx, edx
mov esi, 1
shl esi, cl
mov eax, dword [rbx + 0x20]
test eax, eax
je 0x1400051e4
cmp eax, esi
cmovb esi, eax
mov r13d, dword [rbx]
add r13, rbx
test esi, esi
je 0x140005288
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 0x140005221
mov r15, rdi
jmp 0x140005288
mov word [rax + 2], si
mov eax, 0x300
mov word [rbx], ax
test esi, esi
je 0x140005268
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 0x140005240
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 [0x140011f38], r15
mov rcx, r13
call qword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [0x140010dac]
mov dword [rsp + 0x20], eax
mov r9d, dword [0x140010db0]
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.1400038a0
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 [0x140010da8], edx
mov dword [0x140010d94], 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 [0x140010db4], 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 0x140005383
je 0x14000537f
sub eax, 0x36a
je 0x14000537b
sub eax, 0x3a
je 0x140005377
sub eax, 4
je 0x140005373
sub eax, 0xd
je 0x14000536f
sub eax, 1
jne case.0x1400053a0.1252
mov al, 0x88
jmp 0x1400053bc
mov al, 0x81
jmp 0x1400053bc
mov al, 0x86
jmp 0x1400053bc
mov al, 0x80
jmp 0x1400053bc
mov al, 0xde
jmp 0x1400053bc
mov al, 0xee
jmp 0x1400053bc
sub eax, 0x4e3
cmp eax, 6
ja case.0x1400053a0.1252
cdqe
lea rdx, [0x140000000]
mov ecx, dword [rdx + rax*4 + 0x59a0]
add rcx, rdx
jmp rcx
mov al, 0xcc
jmp 0x1400053bc
mov al, 0xa1
jmp 0x1400053bc
mov al, 0xa2
jmp 0x1400053bc
mov al, 0xb1
jmp 0x1400053bc
mov al, 0xb2
jmp 0x1400053bc
mov al, 0xba
jmp 0x1400053bc
xor al, al
mov byte [rbp - 0x39], al
mov word [rbp - 0x38], di
mov dword [rbp - 0x36], 0x2204
mov eax, dword [0x140010da8]
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 [0x140011f40], 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 0x14000547d
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 [0x140011f40], 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 [0x140010d8c]
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 0x1400054f8
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 0x1400054f8
mov eax, 0x2aaaaaab
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
jmp 0x1400054fd
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 [0x140011f48], rax
mov qword [rbp - 0x48], rdi
mov ecx, dword [0x140010d94]
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 [0x140010db8], 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 [0x140010dc0], rax
mov ebx, edi
mov edx, dword [0x140010f00]
test edx, edx
je 0x1400055c5
mov r9d, 0x64
lea r8, [0x140010cc0]
mov rcx, qword [0x140010eb0]
call qword [sym.imp.USER32.dll_LoadStringW]
mov ebx, eax
jmp 0x14000560e
cmp qword [0x140010ec0], rbx
je 0x14000565a
lea rdx, [0x140010ec0]
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, [0x140010cc0]
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 0x14000565a
mov rdx, qword [0x140010dc0]
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, [0x140010d98]
call qword [sym.imp.USER32.dll_SetRect]
mov edx, dword [0x140010d8c]
add edx, dword [rbp + 0x40]
mov eax, dword [rbp - 0x64]
add eax, edx
mov dword [rbp - 0x64], eax
mov dword [0x140010da4], eax
jmp 0x140005673
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x140010d98]
call qword [sym.imp.USER32.dll_SetRect]
mov rdx, qword [0x140010db8]
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 [0x140010ee8]
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 [0x140010d94]
add edx, eax
mov eax, dword [0x140010d8c]
lea ecx, [rdx + rax*2]
add dword [rbp - 0x64], ecx
call fcn.140004730
mov esi, dword [rsp + 0x48]
test eax, eax
je 0x140005714
mov ecx, esi
call fcn.1400038a0
mov byte [rbp - 0x35], 2
jmp 0x140005721
mov eax, dword [0x140010db4]
mov dword [rbp - 0x40], 0x190
mov dword [rbp - 0x50], eax
cmp dword [0x140010cb8], edi
je 0x140005736
mov ecx, esi
call fcn.1400038a0
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 [0x140011f50], 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, [0x140010f20]
mov eax, dword [0x140010efc]
test eax, eax
je 0x1400057d9
mov ebx, edi
mov r15d, 0x20
nop word [rax + rax]
test ebx, ebx
jle 0x1400057a6
movsxd rax, ebx
cmp word [rsi + rax*2 - 2], 0xa
je 0x1400057a6
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 [0x140010ef8]
add edx, edi
mov rcx, qword [0x140010eb0]
call qword [sym.imp.USER32.dll_LoadStringW]
add ebx, eax
inc edi
cmp edi, dword [0x140010efc]
jb 0x140005790
jmp 0x14000581d
mov rax, qword [0x140010ed0]
cmp dword [rax - 0x10], edi
je 0x14000581d
lea rdx, [0x140010ed0]
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 0x140005854
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 [0x140010db4], eax
add eax, dword [0x140010d8c]
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 [0x140010f08]
mov rcx, rax
call qword [sym.imp.GDI32.dll_GetNearestColor]
mov ecx, eax
call qword [sym.imp.GDI32.dll_CreateSolidBrush]
mov qword [0x140011f30], 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 [0x140010d8c]
add r8d, dword [0x140010cbc]
mov edx, dword [0x140010d88]
add edx, dword [0x140010d90]
lea rcx, [0x140010d98]
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.1400071f0
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