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

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x838]
sub rsp, 0x930
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x180332088]
xor rax, rsp
mov qword [rbp + 0x820], rax
mov rbx, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1f0]
call fcn.180233580
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x20]
call fcn.180233580
mov qword [rsp + 0x50], 7
xor esi, esi
mov qword [rsp + 0x48], rsi
mov word [rsp + 0x38], si
xor r8d, r8d
lea rdi, [0x1802abc2c]
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.18005c660
nop
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], rsi
mov word [rbp - 0x48], si
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp - 0x48]
call fcn.18005c660
nop
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], rsi
mov word [rbp - 0x68], si
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp - 0x68]
call fcn.18005c660
nop
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], rsi
mov word [rsp + 0x78], si
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x78]
call fcn.18005c660
nop
lea r8d, [rsi + 0x2c]
lea rdx, [rbp + 0x1f0]
call fcn.180067f80
lea rcx, [rbp + 0x1f0]
sub rcx, 2
nop word [rax + rax]
lea rcx, [rcx + 2]
cmp word [rcx], 0
jne 0x18005dd20
mov eax, dword [0x1802abc78]
mov dword [rcx], eax
lea rcx, [rbp + 0x1f0]
sub rcx, 2
nop dword [rax]
lea rcx, [rcx + 2]
cmp word [rcx], 0
jne 0x18005dd40
movups xmm1, xmmword [0x1802abf08]
movups xmmword [rcx], xmm1
mov edx, dword [0x1802abf18]
mov dword [rcx + 0x10], edx
lea rcx, [rbp + 0x1f0]
sub rcx, 2
nop dword [rax + rax]
lea rcx, [rcx + 2]
cmp word [rcx], 0
jne 0x18005dd70
mov dword [rcx], eax
lea rax, [rbp + 0x1f0]
sub rax, 2
nop word [rax + rax]
lea rax, [rax + 2]
cmp word [rax], 0
jne 0x18005dd90
movups xmmword [rax], xmm1
mov dword [rax + 0x10], edx
lea rcx, [rbp + 0x1f0]
sub rcx, 2
nop dword [rax + rax]
lea rcx, [rcx + 2]
cmp word [rcx], 0
jne 0x18005ddb0
movsd xmm0, qword [str..ini]
movsd qword [rcx], xmm0
movzx eax, word [0x1802abc88]
mov word [rcx + 8], ax
lea rax, [rbp + 0x1f0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x104
lea r9, [rbp - 0x20]
mov r8, rdi
lea rdx, str.CfgUserPath
lea rcx, str.Globals
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rcx, [rbp - 0x20]
or rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x18005de10
test eax, eax
jle 0x18005de96
lea rcx, [rbp - 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18005de96
cmp word [rbp - 0x20], 0
jne 0x18005de38
mov r8, rsi
jmp 0x18005de4b
lea rax, [rbp - 0x20]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x18005de40
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x38]
call fcn.18005c660
cmp word [rbp - 0x20], 0
jne 0x18005de65
mov r8, rsi
jmp 0x18005de7b
lea rax, [rbp - 0x20]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x18005de70
lea rcx, [rbx + 0x20]
lea rdx, [rbp - 0x20]
call fcn.18005c660
mov byte [rbx + 0xb], 1
cmp byte [rbx + 0xc], 0
je 0x18005e291
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x400]
call fcn.180233580
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x610]
call fcn.180233580
lea rcx, [rbx + 0x80]
cmp qword [rcx + 0x18], 8
jb 0x18005decf
mov rcx, qword [rcx]
lea rdx, [rbp + 0x610]
nop word [rax + rax]
movzx eax, word [rcx]
mov word [rdx], ax
lea rcx, [rcx + 2]
lea rdx, [rdx + 2]
test ax, ax
jne 0x18005dee0
lea r9, str.WanNengWBInfo.ini
lea r8, [rbp + 0x610]
lea rdx, [0x1802abef8]
lea rcx, [rbp + 0x400]
call fcn.18005c530
lea rax, [rbp + 0x400]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x104
lea r9, [rbp - 0x20]
mov r8, rdi
lea rdx, str.CfgUserPath
lea rcx, str.AppInfo
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rcx, [rbp - 0x20]
or rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x18005df50
test eax, eax
jle 0x18005dfd6
lea rcx, [rbp - 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18005dfd6
cmp word [rbp - 0x20], 0
jne 0x18005df78
mov r8, rsi
jmp 0x18005df8b
lea rax, [rbp - 0x20]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x18005df80
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x48]
call fcn.18005c660
cmp word [rbp - 0x20], 0
jne 0x18005dfa4
mov r8, rsi
jmp 0x18005dfbb
lea rax, [rbp - 0x20]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x18005dfb0
lea rcx, [rbx + 0x20]
lea rdx, [rbp - 0x20]
call fcn.18005c660
mov byte [rbx + 0xb], 1
cmp byte [rbx + 0xc], 0
je 0x18005e291
lea r8, [rbx + 0xa0]
cmp qword [r8 + 0x18], 8
jb 0x18005dfe7
mov r8, qword [r8]
lea r9, str.WanNengWBInfo.ini
lea rdx, [0x1802abef8]
lea rcx, [rbp + 0x400]
call fcn.18005c530
lea rax, [rbp + 0x400]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x104
lea r9, [rbp - 0x20]
mov r8, rdi
lea rdx, str.CfgUserPath
lea rcx, str.AppInfo
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rcx, [rbp - 0x20]
or rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x18005e040
test eax, eax
jle 0x18005e0c6
lea rcx, [rbp - 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18005e0c6
cmp word [rbp - 0x20], 0
jne 0x18005e068
mov r8, rsi
jmp 0x18005e07b
lea rax, [rbp - 0x20]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x18005e070
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x68]
call fcn.18005c660
cmp word [rbp - 0x20], 0
jne 0x18005e094
mov r8, rsi
jmp 0x18005e0ab
lea rax, [rbp - 0x20]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x18005e0a0
lea rcx, [rbx + 0x20]
lea rdx, [rbp - 0x20]
call fcn.18005c660
mov byte [rbx + 0xb], 1
cmp byte [rbx + 0xc], 0
je 0x18005e291
mov qword [rsp + 0x20], rdi
lea r9, str.CfgUserPath
lea r8, str.AppInfo
lea rdx, [rsp + 0x58]
call fcn.18005f900
nop
lea rcx, [rsp + 0x58]
mov rdi, qword [rsp + 0x70]
cmp rdi, 8
cmovae rcx, qword [rsp + 0x58]
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x18005e100
test eax, eax
jle 0x18005e16f
lea rcx, [rsp + 0x58]
cmp rdi, 8
cmovae rcx, qword [rsp + 0x58]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18005e16a
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x78]
call fcn.18005cbe0
lea rcx, [rbx + 0x20]
lea rax, [rsp + 0x58]
cmp rcx, rax
je 0x18005e15c
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x58]
call fcn.18005cbe0
mov byte [rbx + 0xb], 1
cmp byte [rbx + 0xc], 0
je 0x18005e260
mov rdi, qword [rsp + 0x70]
cmp byte [rbx + 0xc], 0
je 0x18005e265
cmp byte [rbx + 0xb], 0
je 0x18005e265
lea r8, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae r8, qword [rbp - 0x48]
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rcx, qword [rsp + 0x38]
mov r9, qword [rbp - 0x38]
mov rdx, qword [rsp + 0x48]
call fcn.18005c450
test eax, eax
je 0x18005e1b8
mov byte [rbx + 0xd], 1
lea r8, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae r8, qword [rbp - 0x68]
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rcx, qword [rsp + 0x38]
mov r9, qword [rbp - 0x58]
call fcn.18005c450
test eax, eax
je 0x18005e1e8
mov byte [rbx + 0xd], 1
lea r8, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae r8, qword [rsp + 0x78]
lea rcx, [rsp + 0x38]
mov rbx, qword [rsp + 0x50]
cmp rbx, 8
cmovae rcx, qword [rsp + 0x38]
mov r9, qword [rbp - 0x78]
call fcn.18005c450
test eax, eax
je 0x18005e265
mov edi, 1
cmp rbx, rdi
jae 0x18005e232
mov r8, rdx
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.18005c9a0
lea rax, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rax, qword [rsp + 0x38]
mov word [rax], di
mov qword [rsp + 0x48], rdi
lea rax, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rax, qword [rsp + 0x38]
mov word [rax + 2], si
mov rdi, qword [rsp + 0x70]
cmp rdi, 8
jb 0x18005e27e
lea r8, [rdi + 1]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.18005cac0
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rsi
mov word [rsp + 0x58], si
mov r8, qword [rbp - 0x70]
cmp r8, 8
jb 0x18005e2ad
inc r8
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x78]
call fcn.18005cac0
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], rsi
mov word [rsp + 0x78], si
mov r8, qword [rbp - 0x50]
cmp r8, 8
jb 0x18005e2d8
inc r8
mov rdx, qword [rbp - 0x68]
lea rcx, [rbp - 0x68]
call fcn.18005cac0
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], rsi
mov word [rbp - 0x68], si
mov r8, qword [rbp - 0x30]
cmp r8, 8
jb 0x18005e302
inc r8
mov rdx, qword [rbp - 0x48]
lea rcx, [rbp - 0x48]
call fcn.18005cac0
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], rsi
mov word [rbp - 0x48], si
mov rbx, qword [rsp + 0x50]
cmp rbx, 8
jb 0x18005e330
lea r8, [rbx + 1]
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.18005cac0
mov rcx, qword [rbp + 0x820]
xor rcx, rsp
call fcn.1802037a0
lea r11, [rsp + 0x930]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret