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

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0xba8]
sub rsp, 0xc90
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14024a080]
xor rax, rsp
mov qword [rbp + 0xb80], rax
mov rdi, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x170]
call fcn.140159570
mov r8d, 0x104
lea rdx, [rbp + 0x170]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rbp + 0x170]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x140082291
lea rcx, [rbp + 0x170]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
movdqa xmm0, xmmword [0x140201ef0]
movdqu xmmword [rsp + 0x68], xmm0
xor r14d, r14d
mov word [rsp + 0x58], r14w
lea rax, [rbp + 0x170]
mov rsi, 0xffffffffffffffff
mov r8, rsi
nop dword [rax]
inc r8
cmp word [rax + r8*2], r14w
jne 0x1400822c0
lea rdx, [rbp + 0x170]
lea rcx, [rsp + 0x58]
call fcn.14007dc20
nop
mov r8d, reloc.WS2_32.dll_setsockopt
lea rdx, str.gamepatchQconfig.ini
lea rcx, [rsp + 0x58]
call fcn.14007ddb0
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400826c8
lea rcx, [rbp - 0x10]
call fcn.1400812f0
nop
lea r9, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae r9, qword [rsp + 0x58]
xor r8d, r8d
lea rdx, [0x1401f25d8]
lea rcx, str.main
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [rbp - 0x10], eax
movdqa xmm0, xmmword [0x140201ef0]
movdqu xmmword [rbp - 0x20], xmm0
mov word [rbp - 0x30], r14w
movdqu xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x50], r14w
lea r8, [rbp - 0x30]
lea rdx, [rbp - 0x50]
mov ecx, eax
call fcn.14007c210
movdqa xmm0, xmmword [0x140201ef0]
movdqu xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x38], r14w
lea rax, [rbp + 0x170]
mov r8, rsi
inc r8
cmp word [rax + r8*2], 0
jne 0x140082390
lea rdx, [rbp + 0x170]
lea rcx, [rsp + 0x38]
call fcn.14007dc20
nop
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x10]
call fcn.140081f30
movzx ebx, al
lea rcx, [rsp + 0x38]
call fcn.14007dbb0
test bl, bl
je 0x140082416
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rdx, qword [rbp - 0x50]
mov r8, qword [rbp - 0x40]
lea rcx, [rbp + 0x58]
call fcn.14007dc20
mov rax, qword [rdi + 8]
cmp qword [rdi + 0x10], rax
je 0x140082407
lea rdx, [rbp - 0x10]
mov rcx, rax
call fcn.14008af70
add qword [rdi + 8], 0xb8
jmp 0x140082416
lea r8, [rbp - 0x10]
mov rdx, rax
mov rcx, rdi
call fcn.14008a4d0
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x380]
call fcn.140159570
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rax, qword [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x104
lea r9, [rbp + 0x380]
lea r8, [rbp + 0x380]
lea rdx, str.RelationGid
lea rcx, str.main
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rax, [rbp + 0x380]
inc rsi
cmp word [rax + rsi*2], 0
jne 0x140082471
cmp rsi, 1
jb 0x140082672
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], r14
movdqa xmm0, xmmword [0x140201ef0]
movdqu xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x38], r14w
mov r8, rsi
lea rdx, [rbp + 0x380]
lea rcx, [rsp + 0x38]
call fcn.14007dc20
nop
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x38]
call fcn.14007bbf0
nop
lea rcx, [rsp + 0x38]
call fcn.14007dbb0
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rbp - 0x80]
cmp rbx, rsi
je 0x140082667
nop word [rax + rax]
mov qword [rbp - 0x60], r14
mov qword [rbp - 0x58], 7
mov word [rbp - 0x70], r14w
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], r14w
lea rcx, [rbp + 0xb0]
call fcn.1400812f0
nop
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14008252f
mov rcx, qword [rbx]
call fcn.14016b548
mov ecx, eax
lea r8, [rbp - 0x70]
lea rdx, [rsp + 0x38]
call fcn.14007c210
lea rcx, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae rcx, qword [rbp - 0x70]
mov rax, qword [rbp - 0x60]
cmp word [rcx + rax*2 - 2], 0x5c
je 0x140082574
mov r8d, 1
lea rdx, [0x1401f191c]
lea rcx, [rbp - 0x70]
call fcn.14007ddb0
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0xb0]
call fcn.140081f30
test al, al
je 0x1400825f8
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140082595
mov rcx, qword [rbx]
call fcn.14016b548
mov dword [rbp + 0xb0], eax
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rdx, qword [rsp + 0x38]
mov r8, qword [rsp + 0x48]
lea rcx, [rbp + 0x118]
call fcn.14007dc20
mov rax, qword [rdi + 8]
cmp qword [rdi + 0x10], rax
je 0x1400825e5
lea rdx, [rbp + 0xb0]
mov rcx, rax
call fcn.14008af70
add qword [rdi + 8], 0xb8
jmp 0x1400825f8
lea r8, [rbp + 0xb0]
mov rdx, rax
mov rcx, rdi
call fcn.14008a4d0
nop
lea rcx, [rbp + 0x158]
call fcn.14007f870
mov edx, 0x48
mov rcx, qword [rbp + 0x158]
call fcn.1400c7360
lea rcx, [rbp + 0x138]
call fcn.1400779e0
lea rcx, [rbp + 0x118]
call fcn.14007dbb0
lea rcx, [rbp + 0xf8]
call fcn.14007dbb0
lea rcx, [rbp + 0xd8]
call fcn.14007dbb0
nop
lea rcx, [rsp + 0x38]
call fcn.14007dbb0
nop
lea rcx, [rbp - 0x70]
call fcn.14007dbb0
add rbx, 0x20
cmp rbx, rsi
jne 0x1400824f0
lea rcx, [rsp + 0x78]
call fcn.14007db20
nop
lea rcx, [rbp - 0x50]
call fcn.14007dbb0
nop
lea rcx, [rbp - 0x30]
call fcn.14007dbb0
nop
lea rcx, [rbp + 0x98]
call fcn.14007f870
mov edx, 0x48
mov rcx, qword [rbp + 0x98]
call fcn.1400c7360
lea rcx, [rbp + 0x78]
call fcn.1400779e0
lea rcx, [rbp + 0x58]
call fcn.14007dbb0
lea rcx, [rbp + 0x38]
call fcn.14007dbb0
lea rcx, [rbp + 0x18]
call fcn.14007dbb0
nop
lea rcx, [rsp + 0x58]
call fcn.14007dbb0
mov rcx, qword [rbp + 0xb80]
xor rcx, rsp
call fcn.1400c7300
lea r11, [rsp + 0xc90]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret