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

Disassembly:
mov rax, rsp
push rbp
push rdi
push r15
lea rbp, [rax - 0x848]
sub rsp, 0x930
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14004a1a0]
xor rax, rsp
mov qword [rbp + 0x820], rax
mov rbx, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1f0]
call fcn.140017bf0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x20]
call fcn.140017bf0
mov qword [rsp + 0x50], 7
xor r15d, r15d
mov qword [rsp + 0x48], r15
mov word [rsp + 0x38], r15w
xor r8d, r8d
lea rdi, [0x140032910]
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.140003130
nop
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], r15
mov word [rbp - 0x48], r15w
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp - 0x48]
call fcn.140003130
nop
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], r15
mov word [rbp - 0x68], r15w
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp - 0x68]
call fcn.140003130
nop
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], r15
mov word [rsp + 0x78], r15w
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x78]
call fcn.140003130
nop
xor r9d, r9d
lea r8d, [r15 + 0x2c]
lea rdx, [rbp + 0x1f0]
xor ecx, ecx
call fcn.14000a1e0
lea rcx, [rbp + 0x1f0]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], 0
jne 0x140005e93
mov eax, dword [0x140032be0]
mov dword [rcx], eax
lea rcx, [rbp + 0x1f0]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], 0
jne 0x140005eb0
movups xmm1, xmmword [str.WanNengWB]
movups xmmword [rcx], xmm1
mov edx, dword [0x140032b60]
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 0x140005ee0
mov dword [rcx], eax
lea rax, [rbp + 0x1f0]
sub rax, 2
nop word [rax + rax]
lea rax, [rax + 2]
cmp word [rax], 0
jne 0x140005f00
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 0x140005f20
movsd xmm0, qword [str..ini]
movsd qword [rcx], xmm0
movzx eax, word [0x140032bf0]
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.CfgRootPath
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 0x140005f80
test eax, eax
jle 0x140006006
lea rcx, [rbp - 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140006006
cmp word [rbp - 0x20], 0
jne 0x140005fa8
mov r8, r15
jmp 0x140005fbb
lea rax, [rbp - 0x20]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x140005fb0
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x38]
call fcn.140003130
cmp word [rbp - 0x20], 0
jne 0x140005fd5
mov r8, r15
jmp 0x140005feb
lea rax, [rbp - 0x20]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140005fe0
lea rcx, [rbx + 0x40]
lea rdx, [rbp - 0x20]
call fcn.140003130
mov byte [rbx + 0xa], 1
cmp byte [rbx + 0xc], 0
je 0x1400063bf
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x610]
call fcn.140017bf0
lea rcx, [rbx + 0x80]
cmp qword [rcx + 0x18], 8
jb 0x14000602b
mov rcx, qword [rcx]
lea rdx, [rbp + 0x610]
movzx eax, word [rcx]
mov word [rdx], ax
lea rcx, [rcx + 2]
lea rdx, [rdx + 2]
test ax, ax
jne 0x140006032
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x400]
call fcn.140017bf0
lea r9, str.WanNengWBInfo.ini
lea r8, [rbp + 0x610]
lea rdx, str._s_s
lea rcx, [rbp + 0x400]
call fcn.140007fe0
lea rax, [rbp + 0x400]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x104
lea r9, [rbp - 0x20]
mov r8, rdi
lea rdx, str.CfgRootPath
lea rcx, str.AppInfo
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rcx, [rbp - 0x20]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400060b1
test eax, eax
jle 0x140006136
lea rcx, [rbp - 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140006136
cmp word [rbp - 0x20], 0
jne 0x1400060d9
mov r8, r15
jmp 0x1400060ec
lea rax, [rbp - 0x20]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x1400060e1
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x48]
call fcn.140003130
cmp word [rbp - 0x20], 0
jne 0x140006105
mov r8, r15
jmp 0x14000611b
lea rax, [rbp - 0x20]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140006110
lea rcx, [rbx + 0x40]
lea rdx, [rbp - 0x20]
call fcn.140003130
mov byte [rbx + 0xa], 1
cmp byte [rbx + 0xc], 0
je 0x1400063bf
lea r8, [rbx + 0xa0]
cmp qword [r8 + 0x18], 8
jb 0x140006147
mov r8, qword [r8]
lea r9, str.WanNengWBInfo.ini
lea rdx, str._s_s
lea rcx, [rbp + 0x400]
call fcn.140007fe0
lea rax, [rbp + 0x400]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x104
lea r9, [rbp - 0x20]
mov r8, rdi
lea rdx, str.CfgRootPath
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 0x1400061a0
test eax, eax
jle 0x140006226
lea rcx, [rbp - 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140006226
cmp word [rbp - 0x20], 0
jne 0x1400061c8
mov r8, r15
jmp 0x1400061db
lea rax, [rbp - 0x20]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x1400061d0
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x68]
call fcn.140003130
cmp word [rbp - 0x20], 0
jne 0x1400061f4
mov r8, r15
jmp 0x14000620b
lea rax, [rbp - 0x20]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140006200
lea rcx, [rbx + 0x40]
lea rdx, [rbp - 0x20]
call fcn.140003130
mov byte [rbx + 0xa], 1
cmp byte [rbx + 0xc], 0
je 0x1400063bf
mov qword [rsp + 0x20], rdi
lea r9, str.CfgRootPath
lea r8, str.AppInfo
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.140005990
nop
lea rcx, [rsp + 0x58]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x70]
cmp rdi, 8
cmovae rcx, rsi
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], 0
jne 0x140006262
test eax, eax
jle 0x1400062df
lea rcx, [rsp + 0x58]
cmp rdi, 8
cmovae rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400062d5
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x78]
call fcn.140002ff0
lea rcx, [rbx + 0x40]
lea rax, [rsp + 0x58]
cmp rcx, rax
je 0x1400062bc
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x58]
call fcn.140002ff0
mov byte [rbx + 0xa], 1
cmp byte [rbx + 0xc], 0
jne 0x1400062d5
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x58]
jmp 0x140006394
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x58]
cmp byte [rbx + 0xc], 0
je 0x140006394
cmp byte [rbx + 0xa], 0
je 0x140006394
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.140002ee0
test eax, eax
je 0x140006328
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]
mov rdx, qword [rsp + 0x48]
call fcn.140002ee0
test eax, eax
je 0x14000635d
mov byte [rbx + 0xd], 1
lea r8, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae r8, qword [rsp + 0x78]
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rcx, qword [rsp + 0x38]
mov r9, qword [rbp - 0x78]
mov rdx, qword [rsp + 0x48]
call fcn.140002ee0
test eax, eax
je 0x140006394
mov byte [rbx + 0xd], 1
cmp rdi, 8
jb 0x1400063ab
lea r8, [rdi + 1]
mov rdx, rsi
lea rcx, [rsp + 0x58]
call fcn.140003310
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], r15
mov word [rsp + 0x58], r15w
mov r8, qword [rbp - 0x70]
cmp r8, 8
jb 0x1400063db
inc r8
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x78]
call fcn.140003310
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], r15
mov word [rsp + 0x78], r15w
mov r8, qword [rbp - 0x50]
cmp r8, 8
jb 0x140006407
inc r8
mov rdx, qword [rbp - 0x68]
lea rcx, [rbp - 0x68]
call fcn.140003310
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], r15
mov word [rbp - 0x68], r15w
mov r8, qword [rbp - 0x30]
cmp r8, 8
jb 0x140006432
inc r8
mov rdx, qword [rbp - 0x48]
lea rcx, [rbp - 0x48]
call fcn.140003310
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], r15
mov word [rbp - 0x48], r15w
mov r8, qword [rsp + 0x50]
cmp r8, 8
jb 0x140006460
inc r8
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.140003310
mov rcx, qword [rbp + 0x820]
xor rcx, rsp
call fcn.1400131c0
lea r11, [rsp + 0x930]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop rdi
pop rbp
ret