Function at 0x14005da70
Capabilities:
Read .ini file

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x160
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x1b0], rbx
mov rax, qword [0x14011d8d0]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov r13, rdx
mov rdi, rcx
xor r14b, r14b
call fcn.14005b4b0
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x38]
call fcn.1400598e0
xor r12d, r12d
mov word [rsp + 0x50], r12w
xor edx, edx
mov r8d, 0xfe
lea rcx, [rsp + 0x52]
call sub.MSVCR100.dll_memset
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x80
lea r9, [rsp + 0x50]
lea r8, str.error
mov rdx, rdi
lea rcx, str.UserOption
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov r15d, eax
lea rcx, [0x14011d880]
mov rdx, qword [0x14011d880]
call qword [rdx + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x50]
lea rax, [rsp + 0x50]
lea edx, [r12 + 1]
or rbp, 0xffffffffffffffff
test rax, 0xffffffffffff0000
jne 0x14005db88
movzx edi, cx
xor edx, edx
mov ecx, edi
call fcn.1400017e0
test rax, rax
je 0x14005dc84
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140001f70
mov rbx, qword [rsp + 0x30]
jmp 0x14005dc84
xor eax, eax
mov rcx, rbp
lea rdi, [rsp + 0x50]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x14005dc01
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x14005dc84
cmp dword [rdx + 0x10], eax
jge 0x14005dbd4
cmp dword [rbx - 0xc], eax
jge 0x14005dbc7
mov ecx, 0x80070057
call fcn.140001000
int3
mov dword [rbx - 0x10], r12d
mov word [rbx], r12w
jmp 0x14005dc84
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14005dbea
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 0x14005dc84
mov r12d, dword [rbx - 0x10]
lea rsi, [rsp + 0x50]
sub rsi, rbx
sar rsi, 1
test ecx, ecx
jns 0x14005dc1f
mov ecx, 0x80070057
call fcn.140001000
int3
mov ecx, edx
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14005dc3e
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140001c20
mov rbx, qword [rsp + 0x30]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp rsi, r12
lea r12, [rax + rax]
mov r9, r12
ja 0x14005dc63
lea r8, [rbx + rsi*2]
call qword [sym.imp.MSVCR100.dll_memmove_s]
jmp 0x14005dc6e
lea r8, [rsp + 0x50]
call qword [sym.imp.MSVCR100.dll_memcpy_s]
cmp edi, dword [rbx - 0xc]
jg 0x14005dd0d
mov dword [rbx - 0x10], edi
xor eax, eax
mov word [r12 + rbx], ax
xor r12d, r12d
xor eax, eax
lea rdi, str.error
mov rsi, rbx
mov ecx, 6
repe cmpsw word [rsi], word [rdi]
je 0x14005dc9f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
je 0x14005dcbc
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCR100.dll__wtoi]
mov dword [r13], eax
mov r14b, 1
jmp 0x14005dcc0
mov dword [r13], r12d
movzx edi, r14b
test r15d, r15d
mov eax, 1
cmovne edi, eax
lea rdx, [rbx - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14005dcea
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rax, qword [rsp + 0x38]
lea rdx, [rax - 0x18]
lock xadd dword [rdx + 0x10], ebp
dec ebp
test ebp, ebp
jg 0x14005dd07
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
movzx eax, dil
jmp 0x14005dd18
mov ecx, 0x80070057
call fcn.140001000
nop
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400cafa0
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x160
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret