Function at 0x140084e90
Capabilities:
Check if file exists
Get file size
Read .ini file
Read file on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x4c8]
sub rsp, 0x5a0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x14024a080]
xor rax, rsp
mov qword [rbp + 0x490], rax
movaps xmm0, xmmword [str.B:lwclient64configkvdisk.dat]
movaps xmmword [rbp - 0x20], xmm0
movaps xmm1, xmmword [0x1401f29a0]
movaps xmmword [rbp - 0x10], xmm1
movaps xmm0, xmmword [0x1401f29b0]
movaps xmmword [rbp], xmm0
movaps xmm1, xmmword [0x1401f29c0]
movaps xmmword [rbp + 0x10], xmm1
xor edx, edx
mov r8d, 0x150
lea rcx, [rbp + 0x20]
call fcn.140159570
movaps xmm0, xmmword [str.B:lwclient64configconfig.ini]
movaps xmmword [rbp + 0x170], xmm0
movaps xmm1, xmmword [0x1401f29e0]
movaps xmmword [rbp + 0x180], xmm1
movaps xmm0, xmmword [0x1401f29f0]
movaps xmmword [rbp + 0x190], xmm0
movaps xmm1, xmmword [0x1401f2a00]
movaps xmmword [rbp + 0x1a0], xmm1
xor edx, edx
mov r8d, 0x150
lea rcx, [rbp + 0x1b0]
call fcn.140159570
movzx eax, word [0x14024ae90]
mov word [rbp - 0x20], ax
mov word [rbp + 0x170], ax
xor edx, edx
mov r8d, 0x190
lea rcx, [rbp + 0x300]
call fcn.140159570
lea rax, [rbp + 0x170]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xc8
lea r9, [rbp + 0x300]
lea r8, [rbp + 0x300]
lea rdx, str.serverip
lea rcx, str.config
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rcx, [rbp + 0x300]
mov rdi, 0xffffffffffffffff
mov rax, rdi
inc rax
cmp word [rcx + rax*2], 0
jne 0x140084fc6
cmp rax, 1
jae 0x140084fdd
xor al, al
jmp 0x140085355
xor r12d, r12d
mov ebx, r12d
lea rcx, [rbp - 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne sil
test eax, eax
jne 0x14008500e
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
cmp rbx, 0xc8
jb 0x140084fe3
test sil, sil
je 0x140084fd6
movdqa xmm0, xmmword [0x140201f00]
movdqu xmmword [rbp - 0x30], xmm0
mov byte [rbp - 0x40], r12b
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 3]
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400850df
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test eax, eax
je 0x1400850c1
lea ecx, [rbx + 0x1000]
mov eax, 0xfffff000
and rcx, rax
call fcn.1400c7368
mov r14, rax
mov dword [rsp + 0x68], r12d
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x68]
mov r8d, ebx
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400850b7
cmp dword [rsp + 0x68], ebx
jne 0x1400850b7
mov r8d, ebx
mov rdx, r14
lea rcx, [rbp - 0x40]
call fcn.1400776a0
mov rcx, r14
call fcn.1400c7360
jmp 0x1400850d6
mov qword [rbp - 0x30], r12
lea rax, [rbp - 0x40]
cmp qword [rbp - 0x28], 0x10
cmovae rax, qword [rbp - 0x40]
mov byte [rax], 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rbx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0x10
cmovae rbx, qword [rbp - 0x40]
mov esi, dword [rbx + 4]
cmp dword [rbx + 0x14], 0
je 0x1400850fe
xor sil, sil
jmp 0x140085348
xor eax, eax
mov qword [rbp - 0x48], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x68], rax
lea r14, vtable.ygx_kservice::msg::CMD_KSVR_CLI_QUERYALLGAMESVRDRIVER_response.0
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x60], r12
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x50], r12
call fcn.14000ca70
mov dword [rbp - 0x48], r12d
mov r8d, dword [rbx + 0x28]
cmp rsi, 0x2c
jb 0x1400853a8
lea rax, [r8 + 0x2c]
cmp rax, rsi
ja 0x140085385
lea rdx, [rbx + 0x2c]
lea rcx, [rbp - 0x70]
call fcn.1400e0390
test al, al
jne 0x140085169
xor sil, sil
mov rcx, qword [rbp - 0x50]
jmp 0x1400852e1
cmp dword [rbp - 0x58], 0
jne 0x14008517b
mov sil, 1
mov rcx, qword [rbp - 0x50]
jmp 0x1400852e1
movdqa xmm0, xmmword [0x140201ef0]
movdqu xmmword [rbp - 0x80], xmm0
mov word [rsp + 0x70], r12w
lea rax, [rbp + 0x300]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140085195
mov r8, rdi
lea rdx, [rbp + 0x300]
lea rcx, [rsp + 0x70]
call fcn.14007dc20
nop
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.14007ca40
cmp qword [rax + 0x18], 0x10
jb 0x1400851cd
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov r15d, eax
lea rcx, [rsp + 0x48]
call fcn.1400779e0
nop
lea rcx, [rsp + 0x70]
call fcn.14007dbb0
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x140085200
lea rbx, [rcx + 8]
mov rdx, rcx
jmp 0x140085206
mov rbx, r12
mov rdx, r12
movsxd rax, dword [rbp - 0x58]
shl rax, 3
lea rdi, [rax + 8]
add rdi, rdx
test rdx, rdx
cmove rdi, rax
cmp rbx, rdi
je 0x1400852de
lea r13, vtable.ygx_kservice::msg::CMD_KSVR_CLI_QUERYALLGAMESVRDRIVER_response_GameDiskInfo.0
nop dword [rax]
xor eax, eax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov r14, qword [rbx]
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], r12
mov dword [rbp - 0x74], r12d
test byte [r14 + 8], 1
je 0x14008526f
mov rsi, qword [r14 + 8]
and rsi, 0xfffffffffffffffe
lea rcx, [rsp + 0x78]
call fcn.140077950
mov rdx, rsi
mov rcx, rax
call fcn.1400eeb30
movsd xmm0, qword [r14 + 0x10]
movsd qword [rbp - 0x80], xmm0
mov ecx, dword [r14 + 0x18]
mov dword [rbp - 0x78], ecx
cmp dword [rbp - 0x80], r15d
jne 0x1400852b7
call fcn.14016a098
mov dword [rsp + 0x68], eax
mov rdx, qword [0x14025a900]
cmp qword [0x14025a908], rdx
je 0x1400852ac
mov dword [rdx], eax
add qword [0x14025a900], 4
jmp 0x1400852b7
lea r8, [rsp + 0x68]
call fcn.14008a320
nop
mov qword [rsp + 0x70], r13
lea rcx, [rsp + 0x78]
call fcn.140077610
add rbx, 8
cmp rbx, rdi
jne 0x140085230
mov rcx, qword [rbp - 0x50]
lea r14, vtable.ygx_kservice::msg::CMD_KSVR_CLI_QUERYALLGAMESVRDRIVER_response.0
mov sil, 1
mov qword [rbp - 0x70], r14
test rcx, rcx
je 0x140085330
cmp qword [rbp - 0x60], 0
jne 0x140085330
lea r14, [rcx + 8]
movsxd rdi, dword [rcx]
test rdi, rdi
jle 0x14008531f
mov rbx, r12
mov rcx, qword [r14 + rbx*8]
test rcx, rcx
je 0x140085313
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
inc rbx
cmp rbx, rdi
jl 0x140085300
mov rcx, qword [rbp - 0x50]
movsxd rax, dword [rbp - 0x54]
lea rdx, [rax*8 + 8]
call fcn.1400c7360
mov qword [rbp - 0x50], r12
lea rcx, [rbp - 0x68]
call fcn.140077610
lea rax, vtable.google::protobuf::MessageLite.0
mov qword [rbp - 0x70], rax
lea rcx, [rbp - 0x40]
call fcn.1400779e0
movzx eax, sil
mov rcx, qword [rbp + 0x490]
xor rcx, rsp
call fcn.1400c7300
lea r11, [rsp + 0x5a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea rdx, str.package_out_of_range
lea rcx, [rsp + 0x70]
call fcn.14007bad0
lea rdx, [0x140248408]
lea rcx, [rsp + 0x70]
call fcn.140158fa0
int3
lea rdx, str.package_position_over_range
lea rcx, [rsp + 0x48]
call fcn.14007bb40
lea rdx, [0x140248628]
lea rcx, [rsp + 0x48]
call fcn.140158fa0
int3