Function at 0x14005c5e0
Capabilities:
Check if file exists
Read .ini file

Disassembly:
mov rax, rsp
push rbp
push r13
push r14
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
mov rax, qword [0x14011d8d0]
xor rax, rsp
mov qword [rbp + 0x70], rax
call fcn.14005b4b0
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x40]
call fcn.1400598e0
mov byte [rsp + 0x50], 0
xor eax, eax
mov qword [rsp + 0x51], rax
mov byte [rsp + 0x59], al
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
mov rsi, qword [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or r12, 0xffffffffffffffff
test eax, eax
je 0x14005c909
xor r14d, r14d
mov word [rsp + 0x70], r14w
xor edx, edx
mov r8d, 0xfe
lea rcx, [rsp + 0x72]
call sub.MSVCR100.dll_memset
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
lea rdi, [rsp + 0x70]
xor eax, eax
mov ecx, 0x100
rep stosb byte [rdi], al
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 0x80
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, str.InfoFileURLBase
lea rcx, str.Setting
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
mov rcx, r12
lea rdi, [rsp + 0x70]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rsi, rcx
test ecx, ecx
jne 0x14005c76e
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x14005c7f0
cmp dword [rdx + 0x10], eax
jge 0x14005c740
cmp dword [rbx - 0xc], eax
jge 0x14005c733
mov ecx, 0x80070057
call fcn.140001000
int3
mov dword [rbx - 0x10], r14d
mov word [rbx], r14w
jmp 0x14005c7f0
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14005c757
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
jmp 0x14005c7f0
mov r13d, dword [rbx - 0x10]
lea rdi, [rsp + 0x70]
sub rdi, rbx
sar rdi, 1
test ecx, ecx
jns 0x14005c78c
mov ecx, 0x80070057
call fcn.140001000
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, esi
or eax, ecx
jge 0x14005c7ae
mov edx, esi
lea rcx, [rsp + 0x30]
call fcn.140001c20
mov rbx, qword [rsp + 0x30]
movsxd rax, esi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp rdi, r13
lea r13, [rax + rax]
mov r9, r13
ja 0x14005c7d3
lea r8, [rbx + rdi*2]
call qword [sym.imp.MSVCR100.dll_memmove_s]
jmp 0x14005c7de
lea r8, [rsp + 0x70]
call qword [sym.imp.MSVCR100.dll_memcpy_s]
cmp esi, dword [rbx - 0xc]
jg 0x14005c8fe
mov dword [rbx - 0x10], esi
mov word [r13 + rbx], r14w
mov r8d, dword [rbx - 0x10]
test r8d, r8d
je 0x14005c858
lea rcx, [rbx - 0x18]
mov rdi, qword [rsp + 0x38]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x14005c858
cmp dword [rdi + 0x10], 0
jl 0x14005c84b
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x14005c84b
call fcn.140001b90
mov rbx, rax
mov ecx, r12d
lock xadd dword [rdi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x14005c83b
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + 8]
lea rax, [rbx + 0x18]
mov qword [rsp + 0x38], rax
mov rbx, qword [rsp + 0x30]
jmp 0x14005c858
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.140001e80
lea rcx, [rsp + 0x38]
call fcn.1400596e0
mov edi, eax
test eax, eax
je 0x14005c8e1
lea rcx, [0x14011d880]
mov rdx, qword [0x14011d880]
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x48]
mov ecx, edi
call fcn.14005a0b0
test al, al
je 0x14005c8bc
mov rax, qword [rsp + 0x48]
cmp dword [rax - 0x10], 0
je 0x14005c8bc
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x48]
call fcn.14005a270
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x40]
call fcn.140059540
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14005c8dc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x30]
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14005c909
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x14005c909
mov ecx, 0x80070057
call fcn.140001000
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14005c92a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r12d
dec r12d
test r12d, r12d
jg 0x14005c94a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov al, 1
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.1400cafa0
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop rbp
ret