Function at 0x140050654
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x14012bd38]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rdi, rcx
call fcn.14003fd00
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rdx, str.SOUND_SETTINGS
lea rcx, [rsp + 0x50]
call fcn.140001340
mov rbx, rax
lea rdx, str.WindowTitle
lea rcx, [rsp + 0x58]
call fcn.140001340
nop
and dword [rsp + 0x20], 0
mov r9, rbx
mov r8, rax
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.140040760
mov r8, qword [rdi]
mov rdx, rax
mov rcx, rdi
call qword [r8 + 0x338]
mov dword [rdi + 0x138], 1
mov rax, qword [rdi + 0x168]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x100
lea r9, [rbp - 0x70]
lea r8, [0x1400e02c0]
lea rdx, [0x1400e2690]
lea rcx, str.Setting
call fcn.14004bca0
lea rcx, [rbp - 0x70]
call fcn.1400b6ca8
mov r8d, eax
lea rdx, [rbp - 0x70]
lea rcx, [rdi + 0x300]
call fcn.140002188
xor edx, edx
mov rcx, rdi
call fcn.14007e088
mov r9, qword [rdi + 0x168]
mov ebx, 0x50
mov r8d, ebx
lea rdx, str.AlertSoundVolume
lea rcx, str.Setting
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [rdi + 0xc98], eax
test eax, eax
js 0x140050773
cmp eax, 0x64
jle 0x14005077b
mov dword [rdi + 0xc98], ebx
mov eax, ebx
mov dword [rdi + 0xc9c], eax
call fcn.140077d4c
mov rcx, rax
test rax, rax
je 0x140050925
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x30], rax
mov r8d, dword [rdi + 0xc9c]
lea rdx, [0x1400e1360]
lea rcx, [rsp + 0x30]
call fcn.140002f84
lea rcx, [rdi + 0x17d8]
mov rdx, qword [rsp + 0x30]
call fcn.14008113c
lea rax, [rsp + 0x68]
mov qword [rbp - 0x80], rax
lea rdx, str.DEFAULT
lea rcx, [rsp + 0x68]
call fcn.140001340
mov rbx, rax
lea rdx, str.HealthStatus
lea rcx, [rsp + 0x70]
call fcn.140001340
nop
and dword [rsp + 0x20], 0
mov r9, rbx
mov r8, rax
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140040760
nop
lea rcx, [rdi + 0xe48]
mov rdx, qword [rax]
call fcn.14008113c
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140050841
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rsp + 0x78]
mov qword [rbp - 0x80], rax
lea rdx, [0x1400ea750]
lea rcx, [rsp + 0x78]
call fcn.140001340
mov rbx, rax
lea rdx, [0x1400e4820]
lea rcx, [rsp + 0x48]
call fcn.140001340
nop
and dword [rsp + 0x20], 0
mov r9, rbx
mov r8, rax
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.140040760
nop
lea rcx, [rdi + 0x1170]
mov rdx, qword [rax]
call fcn.14008113c
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400508b8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x320]
xor edx, edx
mov rcx, rdi
call fcn.140079ffc
mov edx, 5
mov rcx, rdi
call fcn.1400811b0
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x1400508fc
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, 1
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.1400b0010
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
mov ecx, 0x80004005
call fcn.140001860
int3