Function at 0x14005eae0
Capabilities:
Read .ini file

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x50
or rax, 0xffffffffffffffff
nop
inc rax
cmp word [rcx + rax*2], 0
jne 0x14005eaf0
test rax, rax
je 0x14005eb36
lea rax, [rbp - 0xc]
lea r9, [rbp + 0x28]
lea r8, [rbp + 0x30]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x10]
lea rdx, str._d__d__f__f__d_
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
call fcn.1400fb8b4
mov eax, dword [rbp - 0xc]
jmp 0x14005ebe5
lea r9, [0x140208860]
lea rdx, str.CustSelX
lea rcx, [0x140186170]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea r9, [0x140208860]
lea rdx, str.CustSelY
lea rcx, [0x140186170]
xor r8d, r8d
mov dword [rbp + 0x30], eax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea r9, [0x140208860]
lea r8, [0x140186b90]
lea rdx, str.CustSelW
lea rcx, [0x140186170]
mov dword [rbp + 0x28], eax
call fcn.1400ee4b0
lea r9, [0x140208860]
lea r8, [0x140186b98]
lea rdx, str.CustSelH
lea rcx, [0x140186170]
movss dword [rbp + 0x38], xmm0
call fcn.1400ee4b0
lea r9, [0x140208860]
lea rdx, str.CustUnit
lea rcx, [0x140186170]
xor r8d, r8d
movss dword [rbp - 0x10], xmm0
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [rbp - 0xc], eax
mov ecx, dword [rbp + 0x30]
cvttss2si ebx, dword [rbp + 0x38]
cvttss2si edi, dword [rbp - 0x10]
xor r9d, r9d
test ecx, ecx
cmovg r9d, ecx
mov ecx, dword [rbp + 0x28]
xor r10d, r10d
test ecx, ecx
mov dword [rbp + 0x30], r9d
cmovg r10d, ecx
mov dword [rbp + 0x28], r10d
test eax, eax
je 0x14005ed72
mov rcx, qword [0x1401fbae0]
lea rax, [rbp - 4]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rbp - 8]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call fcn.1400eb570
mov eax, dword [rbp - 8]
mov ecx, dword [rbp - 4]
test eax, eax
mov edx, 0x48
cmove eax, edx
test ecx, ecx
cmove ecx, edx
mov edx, dword [rbp - 0xc]
cmp edx, 1
jne 0x14005ecef
movsd xmm5, qword [0x140186e00]
movsd xmm4, qword [0x140183398]
movd xmm0, dword [rbp + 0x30]
movd xmm3, eax
movd xmm2, ecx
movss xmm1, dword [rbp + 0x38]
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm5
cvtdq2pd xmm3, xmm3
cvtps2pd xmm1, xmm1
cvtdq2pd xmm2, xmm2
mulsd xmm0, xmm3
divsd xmm1, xmm5
addsd xmm0, xmm4
cvttsd2si r9d, xmm0
movd xmm0, dword [rbp + 0x28]
cvtdq2pd xmm0, xmm0
mov dword [rbp + 0x30], r9d
divsd xmm0, xmm5
mulsd xmm1, xmm3
addsd xmm1, xmm4
cvttsd2si ebx, xmm1
mulsd xmm0, xmm2
addsd xmm0, xmm4
cvttsd2si r10d, xmm0
movss xmm0, dword [rbp - 0x10]
cvtps2pd xmm0, xmm0
mov dword [rbp + 0x28], r10d
divsd xmm0, xmm5
mulsd xmm0, xmm2
addsd xmm0, xmm4
cvttsd2si edi, xmm0
jmp 0x14005ed72
cmp edx, 2
jne 0x14005ed6a
movsd xmm4, qword [0x140183398]
movd xmm0, dword [rbp + 0x30]
movss xmm1, dword [rbp + 0x38]
movd xmm3, eax
movd xmm2, ecx
cvtdq2pd xmm0, xmm0
cvtps2pd xmm1, xmm1
cvtdq2pd xmm3, xmm3
cvtdq2pd xmm2, xmm2
mulsd xmm0, xmm3
mulsd xmm1, xmm3
addsd xmm0, xmm4
addsd xmm1, xmm4
cvttsd2si r9d, xmm0
cvttsd2si ebx, xmm1
movd xmm0, dword [rbp + 0x28]
mov dword [rbp + 0x30], r9d
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm2
addsd xmm0, xmm4
cvttsd2si r10d, xmm0
movss xmm0, dword [rbp - 0x10]
cvtps2pd xmm0, xmm0
mov dword [rbp + 0x28], r10d
mulsd xmm0, xmm2
addsd xmm0, xmm4
cvttsd2si edi, xmm0
jmp 0x14005ed72
mov r10d, dword [rbp + 0x28]
mov r9d, dword [rbp + 0x30]
mov eax, dword [0x1402094bc]
lea ecx, [rbx + r9]
lea edx, [rdi + r10]
cmp r9d, eax
mov r8d, eax
mov dword [0x1401fbc4c], 1
cmovl r8d, r9d
mov r9d, dword [0x1402094b8]
cmp r10d, r9d
mov r11d, r9d
mov dword [0x140209490], r8d
cmovl r11d, r10d
cmp ecx, eax
cmovl eax, ecx
cmp edx, r9d
mov dword [0x140209494], r11d
cmovl r9d, edx
mov dword [0x140209498], eax
sub eax, r8d
cdq
mov dword [0x14020949c], r9d
xor eax, edx
sub eax, edx
test eax, eax
jle 0x14005ede7
sub r9d, r11d
mov eax, r9d
cdq
xor eax, edx
sub eax, edx
test eax, eax
jg 0x14005edfd
lea rcx, [0x140209490]
mov dword [0x1401fbc4c], 0
call fcn.1400f2810
add rsp, 0x50
pop rdi
pop rbx
pop rbp
ret