Function at 0x140078df4
Capabilities:
Read .ini file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r14
lea rbp, [rax - 0x888]
sub rsp, 0x970
mov rax, qword [0x140197680]
xor rax, rsp
mov qword [rbp + 0x860], rax
mov rbx, rdx
mov rdi, qword [rdx + 0x138]
call sub.mfc140u.dll_AfxFieldText
mov rcx, qword [rax + 8]
mov r12d, 0x400
cmp qword [rcx + 0xb0], 0
je 0x140079216
call sub.mfc140u.dll_AfxFieldText
xor edx, edx
mov rcx, qword [rax + 8]
call sub.mfc140u.dll_CPropertySet::Get
mov rsi, rax
test rax, rax
je 0x140079297
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140079297
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
xor r14d, r14d
cmp qword [rbx + 0x178], r14
jle 0x140078f58
xor esi, esi
call sub.mfc140u.dll_AfxFieldText
mov rcx, qword [rax + 8]
mov rax, qword [rcx]
mov r10, qword [rax + 0x118]
test rsi, rsi
js 0x140079430
cmp rsi, qword [rbx + 0x150]
jge 0x140079430
mov rax, qword [rbx + 0x148]
and qword [rsp + 0x20], 0
mov r9, qword [rax + rsi*8]
mov r8, rdi
lea rdx, [rsp + 0x30]
call r10
nop
mov rcx, qword [rsp + 0x30]
cmp dword [rcx - 0x10], 0
jle 0x140078f37
xor r8d, r8d
xor edx, edx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstoul]
cmp rsi, qword [rbx + 0x178]
jge 0x140079436
mov rcx, qword [rbx + 0x170]
mov dword [rcx + rsi*4], eax
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
inc r14d
inc rsi
movsxd rax, r14d
cmp rax, qword [rbx + 0x178]
jl 0x140078ec4
mov r8d, dword [rbx + 0x124]
mov rdx, qword [str.VerticalLines]
mov rcx, rdi
call fcn.140078c28
mov dword [rbx + 0x124], eax
mov r8d, dword [rbx + 0x128]
mov rdx, qword [str.HorizontalLines]
mov rcx, rdi
call fcn.140078c28
mov dword [rbx + 0x128], eax
mov r8d, dword [rbx + 0x120]
mov rdx, qword [str.3dHeader]
mov rcx, rdi
call fcn.140078c28
mov dword [rbx + 0x120], eax
mov r8d, dword [rbx + 0x12c]
mov rdx, qword [str.MarkRowHeader]
mov rcx, rdi
call fcn.140078c28
mov dword [rbx + 0x12c], eax
mov r8d, dword [rbx + 0x130]
mov rdx, qword [str.MarkColumnHeader]
mov rcx, rdi
call fcn.140078c28
mov dword [rbx + 0x130], eax
cmp qword [rbx + 0x100], 0
jle 0x1400790b9
or qword [rsp + 0x48], 0xffffffffffffffff
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x48]
lea rcx, [rbx + 0xe8]
call sub.mfc140u.dll_Ordinal_5963
mov rax, qword [rsp + 0x58]
movzx r8d, word [rax]
lea rdx, str.UP_d
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_wsprintfW]
call sub.mfc140u.dll_AfxFieldText
mov rcx, qword [rax + 8]
mov rax, qword [rcx]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
mov r8, rdi
lea rdx, [rsp + 0x40]
call qword [rax + ATL::CStringT<wchar_t,StrTraitMFC_DLL<wchar_t,ATL::ChTraitsCRT<wchar_t>]
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_Ordinal_1501]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov rax, qword [rsp + 0x58]
mov rsi, qword [rax + 0x10]
test rsi, rsi
je 0x1400790a2
lea rcx, [rsi + 0x40]
lea rdx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_Ordinal_1501]
and dword [rsi + 0x20], 0xff8fffff
or dword [rsi + 8], r12d
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
cmp qword [rsp + 0x48], 0
jne 0x140078ff8
mov r8d, dword [rbx + 0x1bc]
mov rdx, qword [0x140197d80]
mov rcx, rdi
call fcn.140078c28
mov dword [rbx + 0x1bc], eax
mov r8d, dword [rbx + 0x1b8]
mov rdx, qword [str.Print_Vertical_Lines]
mov rcx, rdi
call fcn.140078c28
mov dword [rbx + 0x1b8], eax
mov r8d, dword [rbx + 0x1b0]
mov rdx, qword [str.Print_Horizontal_Lines]
mov rcx, rdi
call fcn.140078c28
mov dword [rbx + 0x1b0], eax
mov r8d, dword [rbx + 0x1c0]
mov rdx, qword [str.Print_Only_BlackWhite]
mov rcx, rdi
call fcn.140078c28
mov dword [rbx + 0x1c0], eax
mov r8d, dword [rbx + 0x1b4]
mov rdx, qword [str.Print_Row_Headers]
mov rcx, rdi
call fcn.140078c28
mov dword [rbx + 0x1b4], eax
mov r8d, dword [rbx + 0x1ac]
mov rdx, qword [str.Print_Column_Headers]
mov rcx, rdi
call fcn.140078c28
mov dword [rbx + 0x1ac], eax
mov r8d, dword [rbx + 0x1a8]
mov rdx, qword [str.Center_Vertical]
mov rcx, rdi
call fcn.140078c28
mov dword [rbx + 0x1a8], eax
mov r8d, dword [rbx + 0x1a4]
mov rdx, qword [str.Center_Horizontal]
mov rcx, rdi
call fcn.140078c28
mov dword [rbx + 0x1a4], eax
mov r8d, dword [rbx + 0x1c4]
mov rdx, qword [0x140197d88]
mov rcx, rdi
call fcn.140078c28
mov dword [rbx + 0x1c4], eax
call sub.mfc140u.dll_AfxFieldText
mov rcx, qword [rax + 8]
mov rax, qword [rcx]
and qword [rsp + 0x20], 0
mov r9, qword [0x140197d90]
mov r8, rdi
lea rdx, [rsp + 0x40]
call qword [rax + ATL::CStringT<wchar_t,StrTraitMFC_DLL<wchar_t,ATL::ChTraitsCRT<wchar_t>]
nop
mov rdx, rax
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_Ordinal_1501]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov rsi, qword [rsp + 0x38]
mov r14w, 0x20
mov r12d, 0x2c
cmp dword [rsi - 0x10], 0
jle 0x140079338
jmp 0x1400792a2
lea r8, [0x140134658]
mov edx, 0x7f
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea r8, [0x140134658]
mov rdx, r12
lea rcx, [rbp + 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
call sub.mfc140u.dll_AfxFieldText
mov r9, qword [rax + 8]
mov r9, qword [r9 + 0xd8]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
call sub.mfc140u.dll_AfxFieldText
mov rcx, qword [rax + 8]
mov rax, qword [rcx + 0xd8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x3ff
lea r9, [rbp + 0x60]
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x140078ea6
xor eax, eax
jmp 0x140079404
add rsi, 2
cmp word [rsi], r14w
je 0x14007929e
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov dword [rbx + 0x19c], eax
mov edx, r12d
mov rcx, rsi
call sub.VCRUNTIME140.dll_wcschr
mov rsi, rax
test rax, rax
je 0x140079338
add rsi, 2
cmp word [rsi], r14w
je 0x1400792ca
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov dword [rbx + 0x198], eax
mov edx, r12d
mov rcx, rsi
call sub.VCRUNTIME140.dll_wcschr
mov rsi, rax
test rax, rax
je 0x140079338
add rsi, 2
cmp word [rsi], r14w
je 0x1400792f6
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov dword [rbx + 0x194], eax
mov edx, r12d
mov rcx, rsi
call sub.VCRUNTIME140.dll_wcschr
test rax, rax
je 0x140079338
add rax, 2
cmp word [rax], r14w
je 0x14007931f
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov dword [rbx + 0x1a0], eax
mov r8d, dword [rbx + 0x1d0]
mov rdx, qword [str.Start_Page_Numbering]
mov rcx, rdi
call fcn.140078c28
mov dword [rbx + 0x1d0], eax
call sub.mfc140u.dll_AfxFieldText
mov rcx, qword [rax + 8]
mov rax, qword [rcx]
and qword [rsp + 0x20], 0
mov r9, qword [str.Distances]
mov r8, rdi
lea rdx, [rsp + 0x40]
call qword [rax + ATL::CStringT<wchar_t,StrTraitMFC_DLL<wchar_t,ATL::ChTraitsCRT<wchar_t>]
nop
mov rdx, rax
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_Ordinal_1501]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov rdi, qword [rsp + 0x38]
cmp dword [rdi - 0x10], 0
jle 0x1400793f4
jmp 0x1400793a7
add rdi, 2
cmp word [rdi], r14w
je 0x1400793a3
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov dword [rbx + 0x1c8], eax
mov edx, r12d
mov rcx, rdi
call sub.VCRUNTIME140.dll_wcschr
mov rdi, rax
test rax, rax
je 0x1400793f4
add rdi, 2
cmp word [rdi], r14w
je 0x1400793cf
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov dword [rbx + 0x1cc], eax
mov edx, r12d
mov rcx, rdi
call sub.VCRUNTIME140.dll_wcschr
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov eax, 1
mov rcx, qword [rbp + 0x860]
xor rcx, rsp
call fcn.14003c6a0
lea r11, [rsp + 0x970]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r12
pop rbp
ret
call sub.mfc140u.dll_AfxRegDeleteKey
nop
call sub.mfc140u.dll_AfxRegDeleteKey
int3