Function at 0x14005cfd9
Capabilities:
Get common file path
Read .ini file

Disassembly:
test rcx, rcx
je 0x14005d3b7
mov r11, rsp
push rbp
push rbx
push rdi
push r12
push r15
lea rbp, [r11 - 0x608]
sub rsp, 0x6f0
mov rax, qword [0x1401f7280]
xor rax, rsp
mov qword [rbp + 0x5c0], rax
mov qword [r11 + 0x18], rsi
mov rbx, rdx
mov rdi, rcx
mov r12, r9
mov r15d, r8d
lea rsi, [0x140208860]
lea rdx, str.Result
lea rcx, str.Capture
mov r9, rsi
xor r8d, r8d
mov qword [r11 - 0x38], r14
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 3
je 0x14005d05e
xor r14d, r14d
mov r9, r12
mov r8d, r15d
mov rdx, rbx
mov rcx, rdi
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], eax
call fcn.14005f060
jmp 0x14005d38a
lea rdx, str.BeepOnLoop
lea rcx, str.Others
mov r9, rsi
mov r8d, 1
mov qword [rsp + 0x6e8], r13
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x14005d092
mov ecx, 0x40
call qword [sym.imp.USER32.dll_MessageBeep]
lea r13, [0x140209da0]
mov ecx, 0x104
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r9, [rbp - 0x60]
lea rdx, str.SavePath
lea rcx, str.Capture
mov r8, r13
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 0x104
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea r9, [rbp - 0x70]
lea r8, [0x140182d20]
lea rdx, str.CaptureExtension
lea rcx, str.Capture
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 0x104
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rcx, [rbp - 0x70]
call fcn.1400fa1a4
lea rcx, [rbp - 0x60]
call fcn.1400e8b30
lea r9, [rbp + 0x1b0]
lea r8, str.capture___U__d_m_Y__H_M_S_
lea rdx, str.SaveName
lea rcx, str.Capture
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 0x104
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor r14d, r14d
mov ecx, r14d
movzx eax, word [rbp + rcx + 0x1b0]
lea rcx, [rcx + 2]
mov word [rcx + r13 - 2], ax
test ax, ax
jne 0x14005d142
call fcn.140059710
mov esi, eax
mov eax, 0x10624dd3
mul esi
shr edx, 6
imul ecx, edx, 0x3e8
mov edx, 0x23
sub esi, ecx
lea rcx, [rbp + 0x1b0]
call fcn.1400f9cdc
test rax, rax
jne 0x14005d1c5
lea edx, [rax + 0x24]
lea rcx, [rbp + 0x1b0]
call fcn.1400f9cdc
test rax, rax
jne 0x14005d1c5
lea rdx, [rbp + 0x1b0]
xor r9d, r9d
mov r8d, 0x104
mov rcx, r13
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 1
call fcn.1400ef300
jmp 0x14005d261
lea rax, [rbp - 0x7c]
lea r9, [rbp - 0x74]
lea r8, [rbp - 0x78]
lea rdx, [rbp - 0x80]
mov rcx, rdi
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rax
call fcn.1400eb570
mov eax, dword [rbp - 0x7c]
movsd xmm0, qword [0x140183340]
mov dword [rsp + 0x80], esi
mov dword [rsp + 0x78], r14d
mov dword [rsp + 0x70], r14d
movsd qword [rsp + 0x68], xmm0
mov dword [rsp + 0x60], eax
mov eax, dword [rbp - 0x74]
lea r8, [0x140181e34]
mov dword [rsp + 0x58], eax
mov eax, dword [rbp - 0x78]
or r9d, 0xffffffff
mov dword [rsp + 0x50], eax
mov eax, dword [rbp - 0x80]
mov edx, 0x104
mov dword [rsp + 0x48], eax
mov eax, dword [rbx]
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x38], eax
lea rax, [rbp + 0x1b0]
mov dword [rsp + 0x30], 0xffffffff
mov rcx, r13
mov dword [rsp + 0x28], 0xffffffff
mov qword [rsp + 0x20], rax
call fcn.1400b6530
or rax, 0xffffffffffffffff
inc rax
cmp word [r13 + rax*2], r14w
jne 0x14005d265
test rax, rax
je 0x14005d382
lea rax, [rbp - 0x70]
lea r8, [rbp - 0x60]
lea rdx, str._s_s._s
lea rcx, [rbp + 0x1b0]
mov r9, r13
mov qword [rsp + 0x20], rax
call fcn.1400f98c8
mov edx, 0x7f02
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
mov qword [rsp + 0x30], r14
lea rdx, [rbp + 0x1b0]
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0xffffffff
call fcn.1400a6570
test eax, eax
jne 0x14005d2e9
lea ecx, [rax + 0x30]
call qword [sym.imp.USER32.dll_MessageBeep]
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
inc dword [rbx]
lea r9, [0x140208860]
lea rdx, str.ShowAfterSave
lea rcx, str.Capture
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x14005d34a
lea rax, [rbp + 0x1b0]
mov r9, r12
mov r8d, r15d
mov qword [rsp + 0x28], rax
mov rdx, rbx
mov rcx, rdi
mov dword [rsp + 0x20], 3
call fcn.14005f060
jmp 0x14005d382
mov rcx, qword [0x1401fbb00]
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x14005d382
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x1b0]
mov r8d, InitCommonControls
call fcn.1400ed200
mov rcx, qword [0x1401fbb00]
lea rdx, [rbp - 0x60]
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov r13, qword [rsp + 0x6e8]
mov rsi, qword [rsp + 0x730]
mov r14, qword [rsp + 0x6e0]
mov rcx, qword [rbp + 0x5c0]
xor rcx, rsp
call fcn.1400f9a80
add rsp, 0x6f0
pop r15
pop r12
pop rdi
pop rbx
pop rbp
ret