Function at 0x140007de4
Capabilities:
Read .ini file

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x208]
sub rsp, 0x2d0
mov qword [rbp + 0xd0], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x140074518]
xor rax, rsp
mov qword [rbp + 0x1c8], rax
mov r14, rdx
mov r15, rcx
mov ecx, 0x4e20
call fcn.14005acc0
mov rsi, rax
lea rcx, [rbp - 0x30]
call fcn.140009238
nop
mov rcx, qword [r15 + 0x10]
mov eax, dword [rcx + 0x120]
mov ebx, 0x111
mov r12d, 0x2710
lea r13, str.state
cmp eax, 2
jne 0x140007eaf
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r12d
mov r9, rsi
xor r8d, r8d
lea rdx, str.Programmer_radix
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor edi, edi
test eax, eax
je 0x140007ea6
mov rcx, rsi
call qword [sym.imp.msvcrt.dll__wtoi]
movsxd r8, eax
mov rcx, qword [r15 + 0x10]
xor r9d, r9d
mov edx, ebx
mov rcx, qword [rcx + 0x170]
call qword [sym.imp.USER32.dll_PostMessageW]
lea rdx, str.Programmer_word_length
jmp 0x140007ebc
xor edi, edi
test eax, eax
jne 0x140007efb
lea rdx, str.Scientific_mode_angle
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r12d
mov r9, rsi
xor r8d, r8d
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x140007efb
mov rcx, rsi
call qword [sym.imp.msvcrt.dll__wtoi]
mov rcx, qword [r15 + 0x10]
xor r9d, r9d
movsxd r8, eax
mov edx, ebx
mov rcx, qword [rcx + 0x170]
call qword [sym.imp.USER32.dll_PostMessageW]
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r12d
mov r9, rsi
xor r8d, r8d
lea rdx, str.current_template
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
or rbx, 0xffffffffffffffff
test eax, eax
je 0x140007f6a
mov rdx, rsi
lea rcx, [rbp - 0x40]
call fcn.140008bfc
nop
mov rcx, qword [r15 + 0x18]
add rcx, 0x110
lea rdx, [rbp - 0x40]
call fcn.14002a434
nop
mov rdx, qword [rbp - 0x40]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140007f6a
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14003a69c.0]
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r12d
mov r9, rsi
xor r8d, r8d
lea rdx, str.current_expression
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x14000803a
mov qword [rbp + 0xf8], 7
mov qword [rbp + 0xf0], rdi
mov word [rbp + 0xe0], di
mov r8, rbx
inc r8
cmp word [rsi + r8*2], di
jne 0x140007fae
mov rdx, rsi
lea rcx, [rbp + 0xd8]
call fcn.14000e404
nop
lea rdx, [rbp + 0xd8]
lea rcx, [rbp - 0x30]
call fcn.140008f74
nop
cmp qword [rbp + 0xf8], 8
jb 0x140007fef
mov rcx, qword [rbp + 0xe0]
call sub.msvcrt.dll_free
mov dword [rsp + 0x3c], edi
jmp 0x140008013
mov r8d, dword [rsp + 0x3c]
mov rcx, qword [r15 + 0x10]
xor r9d, r9d
mov edx, 0x111
mov rcx, qword [rcx + 0x170]
call qword [sym.imp.USER32.dll_PostMessageW]
lea rdx, [rsp + 0x3c]
lea rcx, [rbp - 0x30]
call fcn.140009fb0
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
add rdx, rax
test byte [rdx + 0x10], 6
cmovne rdx, rdi
test rdx, rdx
jne 0x140007ff5
jmp 0x140008073
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r12d
mov r9, rsi
xor r8d, r8d
lea rdx, str.current_result
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x140008073
mov rcx, qword [r15 + 0x10]
add rcx, 0x20
mov r8, rsi
mov edx, 0x64
call fcn.140003370
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r12d
mov r9, rsi
xor r8d, r8d
lea rdx, str.memory
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x1400080cc
mov rcx, rsi
call qword [sym.imp.msvcrt.dll__wtoi64]
mov rbx, qword [r15 + 0x18]
mov qword [rbp - 0x78], rdi
cmp qword [rbx], rdi
je 0x1400080c8
mov rdx, rax
lea rcx, [rbp - 0x78]
call fcn.140046d18
xor r8d, r8d
mov rdx, qword [rbp - 0x78]
mov rcx, qword [rbx]
call fcn.1400412dc
or rbx, 0xffffffffffffffff
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r12d
mov r9, rsi
xor r8d, r8d
lea rdx, str.datetime_operation
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x1400081b7
mov dword [rsp + 0x50], edi
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x30]
add rcx, rax
mov rax, qword [rcx + 0x48]
neg rax
sbb edx, edx
not edx
and edx, 4
xor r8d, r8d
call fcn.1400059f8
mov qword [rbp + 0x120], 7
mov qword [rbp + 0x118], rdi
mov word [rbp + 0x108], di
mov r8, rbx
inc r8
cmp word [rsi + r8*2], di
jne 0x140008145
mov rdx, rsi
lea rcx, [rbp + 0x100]
call fcn.14000e404
nop
lea rdx, [rbp + 0x100]
lea rcx, [rbp - 0x30]
call fcn.140008f74
nop
cmp qword [rbp + 0x120], 8
jb 0x140008186
mov rcx, qword [rbp + 0x108]
call sub.msvcrt.dll_free
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x30]
call fcn.140009fb0
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x5c], 0xfa3
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x5c]
mov rcx, qword [r15 + 0x18]
call fcn.1400154c4
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r12d
mov r9, rsi
xor r8d, r8d
lea rdx, str.datetime_fromdate
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x1400082c4
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x30]
add rcx, rax
mov rax, qword [rcx + 0x48]
neg rax
sbb edx, edx
not edx
and edx, 4
xor r8d, r8d
call fcn.1400059f8
mov qword [rbp + 0x148], 7
mov qword [rbp + 0x140], rdi
mov word [rbp + 0x130], di
mov r8, rbx
inc r8
cmp word [rsi + r8*2], di
jne 0x140008220
mov rdx, rsi
lea rcx, [rbp + 0x128]
call fcn.14000e404
nop
lea rdx, [rbp + 0x128]
lea rcx, [rbp - 0x30]
call fcn.140008f74
nop
cmp qword [rbp + 0x148], 8
jb 0x140008261
mov rcx, qword [rbp + 0x130]
call sub.msvcrt.dll_free
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x30]
call fcn.140009fb0
movzx eax, word [rsp + 0x30]
mov word [rsp + 0x40], ax
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x30]
call fcn.140009fb0
movzx eax, word [rsp + 0x30]
mov word [rsp + 0x42], ax
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x30]
call fcn.140009fb0
movzx eax, word [rsp + 0x30]
mov word [rsp + 0x46], ax
mov dword [rsp + 0x60], 0xfa4
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x60]
mov rcx, qword [r15 + 0x18]
call fcn.140015294
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r12d
mov r9, rsi
xor r8d, r8d
lea rdx, str.datetime_todate
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x1400083d1
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x30]
add rcx, rax
mov rax, qword [rcx + 0x48]
neg rax
sbb edx, edx
not edx
and edx, 4
xor r8d, r8d
call fcn.1400059f8
mov qword [rbp + 0x170], 7
mov qword [rbp + 0x168], rdi
mov word [rbp + 0x158], di
mov r8, rbx
inc r8
cmp word [rsi + r8*2], di
jne 0x14000832d
mov rdx, rsi
lea rcx, [rbp + 0x150]
call fcn.14000e404
nop
lea rdx, [rbp + 0x150]
lea rcx, [rbp - 0x30]
call fcn.140008f74
nop
cmp qword [rbp + 0x170], 8
jb 0x14000836e
mov rcx, qword [rbp + 0x158]
call sub.msvcrt.dll_free
lea rdx, [rsp + 0x34]
lea rcx, [rbp - 0x30]
call fcn.140009fb0
movzx eax, word [rsp + 0x34]
mov word [rsp + 0x40], ax
lea rdx, [rsp + 0x34]
lea rcx, [rbp - 0x30]
call fcn.140009fb0
movzx eax, word [rsp + 0x34]
mov word [rsp + 0x42], ax
lea rdx, [rsp + 0x34]
lea rcx, [rbp - 0x30]
call fcn.140009fb0
movzx eax, word [rsp + 0x34]
mov word [rsp + 0x46], ax
mov dword [rsp + 0x64], 0xfa5
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x64]
mov rcx, qword [r15 + 0x18]
call fcn.140015294
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r12d
mov r9, rsi
xor r8d, r8d
lea rdx, str.datettime_datestart
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x1400084de
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x30]
add rcx, rax
mov rax, qword [rcx + 0x48]
neg rax
sbb edx, edx
not edx
and edx, 4
xor r8d, r8d
call fcn.1400059f8
mov qword [rbp + 0x198], 7
mov qword [rbp + 0x190], rdi
mov word [rbp + 0x180], di
mov r8, rbx
inc r8
cmp word [rsi + r8*2], di
jne 0x14000843a
mov rdx, rsi
lea rcx, [rbp + 0x178]
call fcn.14000e404
nop
lea rdx, [rbp + 0x178]
lea rcx, [rbp - 0x30]
call fcn.140008f74
nop
cmp qword [rbp + 0x198], 8
jb 0x14000847b
mov rcx, qword [rbp + 0x180]
call sub.msvcrt.dll_free
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x30]
call fcn.140009fb0
movzx eax, word [rsp + 0x38]
mov word [rsp + 0x40], ax
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x30]
call fcn.140009fb0
movzx eax, word [rsp + 0x38]
mov word [rsp + 0x42], ax
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x30]
call fcn.140009fb0
movzx eax, word [rsp + 0x38]
mov word [rsp + 0x46], ax
mov dword [rsp + 0x68], 0xfa6
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x68]
mov rcx, qword [r15 + 0x18]
call fcn.140015294
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r12d
mov r9, rsi
xor r8d, r8d
lea rdx, str.datetime_datechange
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x1400085b8
mov dword [rsp + 0x54], edi
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x30]
add rcx, rax
mov rax, qword [rcx + 0x48]
neg rax
sbb edx, edx
not edx
and edx, 4
xor r8d, r8d
call fcn.1400059f8
mov qword [rbp + 0x1c0], 7
mov qword [rbp + 0x1b8], rdi
mov word [rbp + 0x1a8], di
mov r8, rbx
inc r8
cmp word [rsi + r8*2], di
jne 0x14000854b
mov rdx, rsi
lea rcx, [rbp + 0x1a0]
call fcn.14000e404
nop
lea rdx, [rbp + 0x1a0]
lea rcx, [rbp - 0x30]
call fcn.140008f74
nop
cmp qword [rbp + 0x1c0], 8
jb 0x14000858c
mov rcx, qword [rbp + 0x1a8]
call sub.msvcrt.dll_free
lea rdx, [rsp + 0x54]
lea rcx, [rbp - 0x30]
call fcn.140009fb0
cmp dword [rsp + 0x54], edi
setne bl
mov rcx, qword [r15 + 0x18]
add rcx, 0x160
mov edx, 0xfb0
call fcn.14002a5e8
mov byte [rax], bl
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r12d
mov r9, rsi
xor r8d, r8d
lea rdx, str.datetime_year
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x14000862f
mov rdx, rsi
lea rcx, [rbp - 0x70]
call fcn.140008bfc
nop
mov dword [rsp + 0x6c], 0xfaa
lea r8, [rbp - 0x70]
lea rdx, [rsp + 0x6c]
mov rcx, qword [r15 + 0x18]
call fcn.14001546c
nop
mov rdx, qword [rbp - 0x70]
add rdx, 0xffffffffffffffe8
or rbx, 0xffffffffffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140008633
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14003a69c.0]
jmp 0x140008633
or rbx, 0xffffffffffffffff
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r12d
mov r9, rsi
xor r8d, r8d
lea rdx, str.datetime_month
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x1400086a4
mov rdx, rsi
lea rcx, [rbp - 0x68]
call fcn.140008bfc
nop
mov dword [rsp + 0x70], 0xfab
lea r8, [rbp - 0x68]
lea rdx, [rsp + 0x70]
mov rcx, qword [r15 + 0x18]
call fcn.14001546c
nop
mov rdx, qword [rbp - 0x68]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x1400086a4
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14003a69c.0]
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r12d
mov r9, rsi
xor r8d, r8d
lea rdx, str.datetime_days
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x140008715
mov rdx, rsi
lea rcx, [rbp - 0x60]
call fcn.140008bfc
nop
mov dword [rsp + 0x74], 0xfac
lea r8, [rbp - 0x60]
lea rdx, [rsp + 0x74]
mov rcx, qword [r15 + 0x18]
call fcn.14001546c
nop
mov rdx, qword [rbp - 0x60]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140008715
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14003a69c.0]
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r12d
mov r9, rsi
xor r8d, r8d
lea rdx, str.datetime_timediff
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x140008786
mov rdx, rsi
lea rcx, [rbp - 0x58]
call fcn.140008bfc
nop
mov dword [rsp + 0x78], 0xfa7
lea r8, [rbp - 0x58]
lea rdx, [rsp + 0x78]
mov rcx, qword [r15 + 0x18]
call fcn.14001546c
nop
mov rdx, qword [rbp - 0x58]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140008786
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14003a69c.0]
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r12d
mov r9, rsi
xor r8d, r8d
lea rdx, str.datetime_timediff2
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x1400087f7
mov rdx, rsi
lea rcx, [rbp - 0x50]
call fcn.140008bfc
nop
mov dword [rsp + 0x7c], 0xfa8
lea r8, [rbp - 0x50]
lea rdx, [rsp + 0x7c]
mov rcx, qword [r15 + 0x18]
call fcn.14001546c
nop
mov rdx, qword [rbp - 0x50]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x1400087f7
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14003a69c.0]
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r12d
mov r9, rsi
xor r8d, r8d
lea rdx, str.datetime_outputdate
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x140008866
mov rdx, rsi
lea rcx, [rbp - 0x48]
call fcn.140008bfc
nop
mov dword [rbp - 0x80], 0xfad
lea r8, [rbp - 0x48]
lea rdx, [rbp - 0x80]
mov rcx, qword [r15 + 0x18]
call fcn.14001546c
nop
mov rdx, qword [rbp - 0x48]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140008866
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14003a69c.0]
mov rcx, rsi
call sub.msvcrt.dll_free
nop
lea rcx, [rbp + 0x68]
call fcn.1400091b0
nop
lea rax, [0x140061180]
mov qword [rbp + 0x68], rax
lea rcx, [rbp + 0x68]
call fcn.14005b8c0
nop
mov rcx, qword [rbp + 0x1c8]
xor rcx, rsp
call fcn.14005d960
mov rbx, qword [rsp + 0x320]
add rsp, 0x2d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret