Function at 0x180019e30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x300]
sub rsp, 0x400
mov rax, qword [0x1800a3690]
xor rax, rsp
mov qword [rbp + 0x2f0], rax
xor r14d, r14d
mov dword [rsp + 0x30], r14d
lea rcx, [rbp + 0x1c0]
call fcn.180019910
nop
lea r8, str.League_of_LegendsConfiggame.cfg
lea rdx, [rbp + 0x1c0]
lea rcx, [rbp - 0x68]
call fcn.18001cc90
nop
lea rcx, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x18001a4f5
test al, 1
jne 0x18001a4f5
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp + 0x1e0]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae rdx, qword [rbp - 0x68]
lea rcx, [rbp + 0x1e0]
call fcn.180016530
mov rax, qword [rbp + 0x1e0]
movsxd rcx, dword [rax + 4]
lea r15, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x1e0], r15
mov rax, qword [rbp + 0x1e0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x1dc], edx
cmp qword [rbp + 0x270], r14
je 0x18001a4a3
mov qword [rsp + 0x78], r14
mov qword [rbp - 0x78], r14
mov qword [rbp - 0x70], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x78], r14b
xor edx, edx
mov r8d, 0xe8
lea rcx, [rbp + 0xd0]
call sub.VCRUNTIME140.dll_memset
lea r12, [0x180000000]
lea rax, [r12 + 0x94ab0]
mov qword [rbp + 0xd0], rax
lea rcx, [rbp + 0x158]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x30], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0xd8]
lea rcx, [rbp + 0xd0]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rbp + 0xd0]
movsxd rcx, dword [rax + 4]
lea r13, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx + 0xd0], r13
mov rax, qword [rbp + 0xd0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx + 0xcc], edx
lea rcx, [rbp + 0xd8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + 0xd8], rax
mov qword [rbp + 0x140], r14
mov dword [rbp + 0x148], 4
mov rax, qword [rbp + 0x1e0]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x1e0]
add rcx, rax
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
movzx r8d, al
lea rdx, [rsp + 0x78]
lea rcx, [rbp + 0x1e0]
call fcn.1800167a0
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
test byte [rdx + rax + 0x10], 6
jne 0x18001a135
nop word [rax + rax]
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 0x10
setae sil
mov rbx, qword [rsp + 0x78]
cmovae rcx, rbx
mov qword [rsp + 0x20], reloc.WS2_32.dll_listen
lea r9, str.DX11BetaTest
mov rdi, qword [rbp - 0x78]
mov rdx, rdi
call fcn.180005fd0
cmp rax, 0xffffffffffffffff
je 0x18001a08e
lea rdx, str.DX11BetaTest0
lea rcx, [rbp + 0xd0]
call fcn.18001ce10
jmp 0x18001a0e1
lea rcx, [rsp + 0x78]
test sil, sil
cmovne rcx, rbx
mov qword [rsp + 0x20], reloc.WS2_32.dll_sendto
lea r9, str.PreferDX9LegacyMode
mov rdx, rdi
call fcn.180005fd0
lea rcx, [rbp + 0xd0]
cmp rax, 0xffffffffffffffff
je 0x18001a0cd
lea rdx, str.PreferDX9LegacyMode1
call fcn.18001ce10
jmp 0x18001a0e1
lea rdx, [rsp + 0x78]
test sil, sil
cmovne rdx, rbx
mov r8, rdi
call fcn.18001d440
lea rdx, [0x18001cfe0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rax, qword [rbp + 0x1e0]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x1e0]
add rcx, rax
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
movzx r8d, al
lea rdx, [rsp + 0x78]
lea rcx, [rbp + 0x1e0]
call fcn.1800167a0
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
test byte [rdx + rax + 0x10], 6
je 0x18001a040
lea rcx, [rbp + 0x1f0]
call fcn.180015f60
test rax, rax
jne 0x18001a168
mov rax, qword [rbp + 0x1e0]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x1e0]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x40]
call sub.VCRUNTIME140.dll_memset
lea rbx, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae rbx, qword [rbp - 0x68]
lea rax, [r12 + 0x94aa8]
mov qword [rbp - 0x40], rax
lea rcx, [rbp + 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x30], 3
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x40]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea rdi, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x40], rdi
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x44], edx
lea rax, [rbp - 0x38]
mov qword [rsp + 0x70], rax
lea rcx, [rbp - 0x38]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp - 0x38], rax
mov byte [rbp + 0x44], 0
mov byte [rbp + 0x39], 0
lea rcx, [rbp - 0x38]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0x48], r14
mov rax, qword [0x1800a4bf0]
mov qword [rbp + 0x3c], rax
mov qword [rbp + 0x30], r14
mov r8d, reloc.WS2_32.dll_select
mov rdx, rbx
lea rcx, [rbp - 0x38]
call fcn.180016640
test rax, rax
jne 0x18001a259
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x40]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x40], rdi
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x44], edx
cmp qword [rbp + 0x48], 0
je 0x18001a3c4
mov qword [rsp + 0x38], r14
mov rcx, r14
mov qword [rsp + 0x48], rcx
mov r9d, reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x50], r9
mov byte [rsp + 0x38], cl
mov dword [rsp + 0x30], ntohs
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov edx, dword [rbp + 0x148]
mov eax, edx
and al, 0x22
cmp al, 2
je 0x18001a2ea
mov rax, qword [rbp + 0x118]
mov r8, qword [rax]
test r8, r8
je 0x18001a2ea
mov rax, qword [rbp + 0xf8]
mov rdx, qword [rax]
cmp r8, qword [rbp + 0x140]
cmovb r8, qword [rbp + 0x140]
sub r8, rdx
jmp 0x18001a324
test dl, 4
jne 0x18001a31a
mov rax, qword [rbp + 0x110]
mov r10, qword [rax]
test r10, r10
je 0x18001a31a
mov rax, qword [rbp + 0xf0]
mov rdx, qword [rax]
mov rax, qword [rbp + 0x128]
movsxd r8, dword [rax]
sub r8, rdx
add r8, r10
jmp 0x18001a324
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x18001a33d
lea rcx, [rsp + 0x38]
call fcn.180012510
mov r9, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x38]
cmp r9, 0x10
cmovae rdx, qword [rsp + 0x38]
mov r8, rcx
lea rcx, [rbp - 0x40]
call fcn.18001d440
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x18001a399
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001a394
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001a394
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18007ca3c
lea rcx, [rbp - 0x38]
call fcn.180015f60
test rax, rax
jne 0x18001a3c4
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x40]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x40], rdi
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x44], edx
lea rcx, [rbp - 0x38]
call fcn.180015a10
lea rcx, [rbp - 0x30]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x68]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rax, qword [rbp + 0xd0]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0xd0], r13
mov rax, qword [rbp + 0xd0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx + 0xcc], edx
lea rcx, [rbp + 0xd8]
call fcn.18001e9c0
lea rcx, [rbp + 0xe0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x158]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 0x10
jb 0x18001a492
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001a48d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001a48d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18007ca3c
mov qword [rbp - 0x78], r14
mov qword [rbp - 0x70], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x78], 0
mov rax, qword [rbp + 0x1e0]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x1e0], r15
mov rax, qword [rbp + 0x1e0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x1dc], edx
lea rcx, [rbp + 0x1f0]
call fcn.180015a10
lea rcx, [rbp + 0x1f8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x290]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 8
jb 0x18001a538
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001a533
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001a533
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18007ca3c
mov qword [rbp - 0x58], r14
mov qword [rbp - 0x50], 7
mov word [rbp - 0x68], r14w
mov rdx, qword [rbp + 0x1d8]
cmp rdx, 8
jb 0x18001a592
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x1c0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001a58d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001a58d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18007ca3c
mov rcx, qword [rbp + 0x2f0]
xor rcx, rsp
call fcn.18007c9f0
lea r11, [rsp + 0x400]
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