Function at 0x100048184
Capabilities:
Read .ini file

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2c0
mov qword [rsp + 0x2b0], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rbp, rdx
mov r12, rcx
mov ecx, 0x4e20
call fcn.100001f90
mov rsi, rax
mov edx, 3
lea r8d, [rdx - 2]
lea rcx, [rsp + 0x1b0]
call fcn.100049bcc
nop
mov rax, qword [r12 + 0x10]
mov ecx, dword [rax + 0x120]
mov edi, 0x111
mov r13d, 0x2710
lea r14, str.state
cmp ecx, 2
jne 0x10004828b
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], r13d
mov r9, rsi
xor r8d, r8d
lea rdx, str.Programmer_radix
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor ebx, ebx
cmp eax, ebx
jbe 0x100048242
mov rcx, rsi
call qword [sym.imp.msvcrt.dll__wtoi]
movsxd r8, eax
mov rcx, qword [r12 + 0x10]
xor r9d, r9d
mov edx, edi
mov rcx, qword [rcx + 0x170]
call qword [sym.imp.USER32.dll_PostMessageW]
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], r13d
mov r9, rsi
xor r8d, r8d
lea rdx, str.Programmer_word_length
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, ebx
jbe 0x1000482d8
mov rcx, rsi
call qword [sym.imp.msvcrt.dll__wtoi]
movsxd r8, eax
mov rcx, qword [r12 + 0x10]
xor r9d, r9d
mov edx, edi
mov rcx, qword [rcx + 0x170]
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x1000482d8
xor ebx, ebx
cmp ecx, ebx
jne 0x1000482d8
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], r13d
mov r9, rsi
xor r8d, r8d
lea rdx, str.Scientific_mode_angle
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, ebx
jbe 0x1000482d8
mov rcx, rsi
call qword [sym.imp.msvcrt.dll__wtoi]
movsxd r8, eax
mov rcx, qword [r12 + 0x10]
xor r9d, r9d
mov edx, edi
mov rcx, qword [rcx + 0x170]
call qword [sym.imp.USER32.dll_PostMessageW]
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], r13d
mov r9, rsi
xor r8d, r8d
lea rdx, str.current_template
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
or r15, 0xffffffffffffffff
cmp eax, ebx
jbe 0x10004834f
mov rdx, rsi
lea rcx, [rsp + 0x80]
call fcn.100022450
nop
mov rcx, qword [r12 + 0x18]
add rcx, 0x110
lea rdx, [rsp + 0x80]
call fcn.100024e08
nop
mov rdx, qword [rsp + 0x80]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
cmp eax, ebx
jg 0x10004834f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], r13d
mov r9, rsi
xor r8d, r8d
lea rdx, str.current_expression
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, ebx
jbe 0x10004845f
mov qword [rsp + 0xd8], 7
mov qword [rsp + 0xd0], rbx
mov word [rsp + 0xc0], bx
xor eax, eax
mov rcx, r15
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rsi
lea rcx, [rsp + 0xb8]
call fcn.10001b608
nop
lea rdx, [rsp + 0xb8]
lea rcx, [rsp + 0x1b0]
call fcn.100049ce8
nop
cmp qword [rsp + 0xd8], 8
jb 0x1000483e4
mov rcx, qword [rsp + 0xc0]
call sub.msvcrt.dll_free
mov dword [rsp + 0x40], ebx
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x1b0]
call fcn.100049a68
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
add rdx, rax
test byte [rdx + 0x10], 6
cmovne rdx, rbx
cmp rdx, rbx
je 0x1000484c5
mov r8d, dword [rsp + 0x40]
mov rcx, qword [r12 + 0x10]
xor r9d, r9d
mov edx, 0x111
mov rcx, qword [rcx + 0x170]
call qword [sym.imp.USER32.dll_PostMessageW]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x1b0]
call fcn.100049a68
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
add rdx, rax
test byte [rdx + 0x10], 6
cmovne rdx, rbx
cmp rdx, rbx
jne 0x100048415
jmp 0x1000484c5
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], r13d
mov r9, rsi
xor r8d, r8d
lea rdx, str.current_result
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, ebx
jbe 0x1000484c5
mov rcx, qword [r12 + 0x10]
mov edx, 0x64
add rcx, 0x20
mov rdi, rsi
sub rdi, rcx
lea rax, [rdx + 0x7fffff9a]
cmp rax, rbx
je 0x1000484b9
movzx eax, word [rcx + rdi]
cmp ax, bx
je 0x1000484b9
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x100048497
cmp rdx, rbx
jne 0x1000484c2
sub rcx, 2
mov word [rcx], bx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], r13d
mov r9, rsi
xor r8d, r8d
lea rdx, str.memory
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, ebx
jbe 0x10004851e
mov rcx, rsi
call qword [sym.imp.msvcrt.dll__wtoi64]
mov rdi, qword [r12 + 0x18]
mov qword [rsp + 0x78], rbx
cmp qword [rdi], rbx
je 0x10004851e
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.1000527a8
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rdi]
call fcn.100025de4
mov word [rsp + 0x30], bx
xor eax, eax
mov qword [rsp + 0x32], rax
mov dword [rsp + 0x3a], eax
mov word [rsp + 0x3e], ax
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], r13d
mov r9, rsi
xor r8d, r8d
lea rdx, str.datetime_operation
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, ebx
jbe 0x10004862c
mov dword [rsp + 0x44], ebx
mov rax, qword [rsp + 0x1b0]
movsxd rcx, dword [rax + 4]
lea rcx, [rsp + rcx + 0x1b0]
mov rax, qword [rcx + 0x48]
neg rax
sbb edx, edx
not edx
and edx, 4
xor r8d, r8d
call fcn.10001d204
mov qword [rsp + 0x128], 7
mov qword [rsp + 0x120], rbx
mov word [rsp + 0x110], bx
xor eax, eax
mov rcx, r15
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rsi
lea rcx, [rsp + 0x108]
call fcn.10001b608
nop
lea rdx, [rsp + 0x108]
lea rcx, [rsp + 0x1b0]
call fcn.100049ce8
nop
cmp qword [rsp + 0x128], 8
jb 0x1000485f6
mov rcx, qword [rsp + 0x110]
call sub.msvcrt.dll_free
lea rdx, [rsp + 0x44]
lea rcx, [rsp + 0x1b0]
call fcn.100049a68
mov edx, dword [rsp + 0x44]
mov dword [rsp + 0x68], edx
mov dword [rsp + 0x74], 0xfa3
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x74]
mov rcx, qword [r12 + 0x18]
call fcn.10003d1c8
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], r13d
mov r9, rsi
xor r8d, r8d
lea rdx, str.datetime_fromdate
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, ebx
jbe 0x10004876d
mov rax, qword [rsp + 0x1b0]
movsxd rcx, dword [rax + 4]
lea rcx, [rsp + rcx + 0x1b0]
mov rax, qword [rcx + 0x48]
neg rax
sbb edx, edx
not edx
and edx, 4
xor r8d, r8d
call fcn.10001d204
mov qword [rsp + 0x150], 7
mov qword [rsp + 0x148], rbx
mov word [rsp + 0x138], bx
xor eax, eax
mov rcx, r15
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rsi
lea rcx, [rsp + 0x130]
call fcn.10001b608
nop
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x1b0]
call fcn.100049ce8
nop
cmp qword [rsp + 0x150], 8
jb 0x1000486eb
mov rcx, qword [rsp + 0x138]
call sub.msvcrt.dll_free
lea rdx, [rsp + 0x300]
lea rcx, [rsp + 0x1b0]
call fcn.100049a68
movzx edx, word [rsp + 0x300]
mov word [rsp + 0x30], dx
lea rdx, [rsp + 0x300]
lea rcx, [rsp + 0x1b0]
call fcn.100049a68
movzx edx, word [rsp + 0x300]
mov word [rsp + 0x32], dx
lea rdx, [rsp + 0x300]
lea rcx, [rsp + 0x1b0]
call fcn.100049a68
movzx edx, word [rsp + 0x300]
mov word [rsp + 0x36], dx
mov dword [rsp + 0x70], 0xfa4
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x70]
mov rcx, qword [r12 + 0x18]
call fcn.10003cf88
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], r13d
mov r9, rsi
xor r8d, r8d
lea rdx, str.datetime_todate
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, ebx
jbe 0x1000488ae
mov rax, qword [rsp + 0x1b0]
movsxd rcx, dword [rax + 4]
lea rcx, [rsp + rcx + 0x1b0]
mov rax, qword [rcx + 0x48]
neg rax
sbb edx, edx
not edx
and edx, 4
xor r8d, r8d
call fcn.10001d204
mov qword [rsp + 0x100], 7
mov qword [rsp + 0xf8], rbx
mov word [rsp + 0xe8], bx
xor eax, eax
mov rcx, r15
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rsi
lea rcx, [rsp + 0xe0]
call fcn.10001b608
nop
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x1b0]
call fcn.100049ce8
nop
cmp qword [rsp + 0x100], 8
jb 0x10004882c
mov rcx, qword [rsp + 0xe8]
call sub.msvcrt.dll_free
lea rdx, [rsp + 0x310]
lea rcx, [rsp + 0x1b0]
call fcn.100049a68
movzx edx, word [rsp + 0x310]
mov word [rsp + 0x30], dx
lea rdx, [rsp + 0x310]
lea rcx, [rsp + 0x1b0]
call fcn.100049a68
movzx edx, word [rsp + 0x310]
mov word [rsp + 0x32], dx
lea rdx, [rsp + 0x310]
lea rcx, [rsp + 0x1b0]
call fcn.100049a68
movzx edx, word [rsp + 0x310]
mov word [rsp + 0x36], dx
mov dword [rsp + 0x58], 0xfa5
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x58]
mov rcx, qword [r12 + 0x18]
call fcn.10003cf88
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], r13d
mov r9, rsi
xor r8d, r8d
lea rdx, str.datettime_datestart
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, ebx
jbe 0x1000489ef
mov rax, qword [rsp + 0x1b0]
movsxd rcx, dword [rax + 4]
lea rcx, [rsp + rcx + 0x1b0]
mov rax, qword [rcx + 0x48]
neg rax
sbb edx, edx
not edx
and edx, 4
xor r8d, r8d
call fcn.10001d204
mov qword [rsp + 0x1a0], 7
mov qword [rsp + 0x198], rbx
mov word [rsp + reloc.COMCTL32.dll_Ordinal_392], bx
xor eax, eax
mov rcx, r15
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rsi
lea rcx, [rsp + 0x180]
call fcn.10001b608
nop
lea rdx, [rsp + 0x180]
lea rcx, [rsp + 0x1b0]
call fcn.100049ce8
nop
cmp qword [rsp + 0x1a0], 8
jb 0x10004896d
mov rcx, qword [rsp + reloc.COMCTL32.dll_Ordinal_392]
call sub.msvcrt.dll_free
lea rdx, [rsp + 0x318]
lea rcx, [rsp + 0x1b0]
call fcn.100049a68
movzx edx, word [rsp + 0x318]
mov word [rsp + 0x30], dx
lea rdx, [rsp + 0x318]
lea rcx, [rsp + 0x1b0]
call fcn.100049a68
movzx edx, word [rsp + 0x318]
mov word [rsp + 0x32], dx
lea rdx, [rsp + 0x318]
lea rcx, [rsp + 0x1b0]
call fcn.100049a68
movzx edx, word [rsp + 0x318]
mov word [rsp + 0x36], dx
mov dword [rsp + 0x4c], 0xfa6
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x4c]
mov rcx, qword [r12 + 0x18]
call fcn.10003cf88
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], r13d
mov r9, rsi
xor r8d, r8d
lea rdx, str.datetime_datechange
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, ebx
jbe 0x100048ae5
mov dword [rsp + 0x48], ebx
mov rax, qword [rsp + 0x1b0]
movsxd rcx, dword [rax + 4]
lea rcx, [rsp + rcx + 0x1b0]
mov rax, qword [rcx + 0x48]
neg rax
sbb edx, edx
not edx
and edx, 4
xor r8d, r8d
call fcn.10001d204
mov qword [rsp + 0x178], 7
mov qword [rsp + 0x170], rbx
mov word [rsp + 0x160], bx
xor eax, eax
mov rcx, r15
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rsi
lea rcx, [rsp + 0x158]
call fcn.10001b608
nop
lea rdx, [rsp + 0x158]
lea rcx, [rsp + 0x1b0]
call fcn.100049ce8
nop
cmp qword [rsp + 0x178], 8
jb 0x100048ab2
mov rcx, qword [rsp + 0x160]
call sub.msvcrt.dll_free
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x1b0]
call fcn.100049a68
cmp dword [rsp + 0x48], ebx
setne dil
mov rcx, qword [r12 + 0x18]
add rcx, 0x160
mov edx, 0xfb0
call fcn.10003e54c
mov byte [rax], dil
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], r13d
mov r9, rsi
xor r8d, r8d
lea rdx, str.datetime_year
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, ebx
jbe 0x100048b5e
mov rdx, rsi
lea rcx, [rsp + 0x88]
call fcn.100022450
nop
mov dword [rsp + 0x60], 0xfaa
lea r8, [rsp + 0x88]
lea rdx, [rsp + 0x60]
mov rcx, qword [r12 + 0x18]
call fcn.10003d170
nop
mov rdx, qword [rsp + 0x88]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
cmp eax, ebx
jg 0x100048b5e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], r13d
mov r9, rsi
xor r8d, r8d
lea rdx, str.datetime_month
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, ebx
jbe 0x100048bd7
mov rdx, rsi
lea rcx, [rsp + 0xb0]
call fcn.100022450
nop
mov dword [rsp + 0x50], 0xfab
lea r8, [rsp + 0xb0]
lea rdx, [rsp + 0x50]
mov rcx, qword [r12 + 0x18]
call fcn.10003d170
nop
mov rdx, qword [rsp + 0xb0]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
cmp eax, ebx
jg 0x100048bd7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], r13d
mov r9, rsi
xor r8d, r8d
lea rdx, str.datetime_days
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, ebx
jbe 0x100048c50
mov rdx, rsi
lea rcx, [rsp + 0x98]
call fcn.100022450
nop
mov dword [rsp + 0x54], 0xfac
lea r8, [rsp + 0x98]
lea rdx, [rsp + 0x54]
mov rcx, qword [r12 + 0x18]
call fcn.10003d170
nop
mov rdx, qword [rsp + 0x98]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
cmp eax, ebx
jg 0x100048c50
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], r13d
mov r9, rsi
xor r8d, r8d
lea rdx, str.datetime_timediff
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, ebx
jbe 0x100048cc9
mov rdx, rsi
lea rcx, [rsp + 0xa8]
call fcn.100022450
nop
mov dword [rsp + 0x5c], 0xfa7
lea r8, [rsp + 0xa8]
lea rdx, [rsp + 0x5c]
mov rcx, qword [r12 + 0x18]
call fcn.10003d170
nop
mov rdx, qword [rsp + 0xa8]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
cmp eax, ebx
jg 0x100048cc9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], r13d
mov r9, rsi
xor r8d, r8d
lea rdx, str.datetime_timediff2
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, ebx
jbe 0x100048d42
mov rdx, rsi
lea rcx, [rsp + 0x90]
call fcn.100022450
nop
mov dword [rsp + 0x64], 0xfa8
lea r8, [rsp + 0x90]
lea rdx, [rsp + 0x64]
mov rcx, qword [r12 + 0x18]
call fcn.10003d170
nop
mov rdx, qword [rsp + 0x90]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
cmp eax, ebx
jg 0x100048d42
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], r13d
mov r9, rsi
xor r8d, r8d
lea rdx, str.datetime_outputdate
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, ebx
jbe 0x100048dbb
mov rdx, rsi
lea rcx, [rsp + 0xa0]
call fcn.100022450
nop
mov dword [rsp + 0x6c], 0xfad
lea r8, [rsp + 0xa0]
lea rdx, [rsp + 0x6c]
mov rcx, qword [r12 + 0x18]
call fcn.10003d170
nop
mov rdx, qword [rsp + 0xa0]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
cmp eax, ebx
jg 0x100048dbb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, rsi
call sub.msvcrt.dll_free
nop
lea rcx, [rsp + 0x248]
call fcn.10001bbf8
lea rdx, [0x100063ef0]
mov qword [rsp + 0x248], rdx
lea rcx, [rsp + 0x248]
call fcn.10001ddbc
mov rbx, qword [rsp + 0x308]
add rsp, 0x2c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret