Function at 0x1800422f0
Capabilities:
Query environment variable
Read .ini file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x208]
sub rsp, 0x308
mov qword [rbp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x1802a8008]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
mov r14, r9
mov r15, r8
mov r12, rdx
mov rsi, rcx
mov qword [rbp + 0x58], rdx
mov qword [rbp + 0x60], r8
mov qword [rbp + 0x68], r9
xor r13d, r13d
mov dword [rsp + 0x30], r13d
lea rcx, str.APPDATA
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov qword [rbp + 0xa8], 0xf
mov qword [rbp + 0xa0], r13
mov byte [rbp + 0x90], r13b
or rdi, 0xffffffffffffffff
cmp byte [rax], r13b
jne 0x180042379
mov r8d, r13d
jmp 0x18004238a
mov r8, rdi
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x180042380
mov rdx, rax
lea rcx, [rbp + 0x90]
call fcn.18003d620
nop
lea r8, str..exFilLocatini_files_
lea rdx, [rbp + 0x90]
lea rcx, [rbp + 0xd0]
call fcn.1800a97a0
nop
mov r8, r12
mov rdx, rax
lea rcx, [rbp + 0xb0]
call fcn.1800a9b10
nop
lea r8, str..ini
mov rdx, rax
lea rcx, [rbp + 0x70]
call fcn.180035800
nop
mov rax, qword [rbp + 0xc8]
cmp rax, 0x10
jb 0x18004243c
inc rax
mov rcx, qword [rbp + 0xb0]
cmp rax, 0x1000
jb 0x180042437
test cl, 0x1f
je 0x180042407
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180042417
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x180042427
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x180042434
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.1801e6174
mov qword [rbp + 0xc8], 0xf
mov qword [rbp + 0xc0], r13
mov byte [rbp + 0xb0], 0
mov rax, qword [rbp + 0xe8]
cmp rax, 0x10
jb 0x1800424b5
inc rax
mov rcx, qword [rbp + 0xd0]
cmp rax, 0x1000
jb 0x1800424b0
test cl, 0x1f
je 0x180042480
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180042490
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x1800424a0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x1800424ad
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.1801e6174
mov qword [rbp + 0xe8], 0xf
mov qword [rbp + 0xe0], r13
mov byte [rbp + 0xd0], 0
lea rax, [0x180000000]
lea rax, [rax + 0x205df8]
mov qword [rsp + 0x40], rax
lea rcx, [rbp - 0x10]
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], 2
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x40], rax
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x3c], edx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x50]
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 [rsp + 0x50], rax
mov byte [rbp - 0x34], 0
mov byte [rbp - 0x3f], 0
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp - 0x30], r13
mov rax, qword [0x180329f20]
mov qword [rbp - 0x3c], rax
mov qword [rbp - 0x48], r13
lea rdx, [rbp + 0x70]
cmp qword [rbp + 0x88], 0x10
cmovae rdx, qword [rbp + 0x70]
mov r9d, 0x40
lea r8d, [r9 - 0x3f]
lea rcx, [rsp + 0x50]
call fcn.18003f940
test rax, rax
jne 0x1800425c4
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 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 [rsp + 0x40]
movsxd rcx, dword [rax + 4]
mov ebx, dword [rsp + rcx + 0x50]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x40], rax
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x3c], edx
lea rcx, [rsp + 0x50]
call fcn.18003f330
lea rcx, [rsp + 0x58]
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 - 0x10]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
test bl, 6
je 0x18004274e
lea rax, [0x180000000]
lea rax, [rax + 0x204778]
mov qword [rsp + 0x40], rax
lea rcx, [rbp - 0x18]
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], 6
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 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 [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rbx, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x40], rbx
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x3c], edx
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x48]
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 [rsp + 0x48], rax
mov byte [rbp - 0x3c], 0
mov byte [rbp - 0x47], 0
lea rcx, [rsp + 0x48]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp - 0x38], r13
mov rax, qword [0x180329f20]
mov qword [rbp - 0x44], rax
mov qword [rbp - 0x50], r13
lea rdx, [rbp + 0x70]
cmp qword [rbp + 0x88], 0x10
cmovae rdx, qword [rbp + 0x70]
mov r9d, 0x40
lea r8d, [r9 - 0x3e]
lea rcx, [rsp + 0x48]
call fcn.18003f940
test rax, rax
jne 0x18004270e
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 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 [rsp + 0x40]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x40], rbx
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x3c], edx
lea rcx, [rsp + 0x48]
call fcn.18003f330
lea rcx, [rsp + 0x50]
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 - 0x18]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rax, [rbp + 0x70]
cmp qword [rbp + 0x88], 0x10
cmovae rax, qword [rbp + 0x70]
cmp qword [r14 + 0x18], 0x10
jb 0x18004276b
mov rdx, qword [r14]
jmp 0x18004276e
mov rdx, r14
cmp qword [r15 + 0x18], 0x10
jb 0x18004277a
mov rcx, qword [r15]
jmp 0x18004277d
mov rcx, r15
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xff
lea r9, [rbp + 0xf0]
lea r8, [0x180204475]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov qword [rsi + 0x18], 0xf
mov qword [rsi + 0x10], r13
cmp qword [rsi + 0x18], 0x10
jb 0x1800427b6
mov rax, qword [rsi]
jmp 0x1800427b9
mov rax, rsi
mov byte [rax], 0
cmp byte [rbp + 0xf0], 0
jne 0x1800427ca
mov rdi, r13
jmp 0x1800427da
lea rax, [rbp + 0xf0]
inc rdi
cmp byte [rax + rdi], 0
jne 0x1800427d1
mov r8, rdi
lea rdx, [rbp + 0xf0]
mov rcx, rsi
call fcn.18003d620
nop
mov rax, qword [rbp + 0x88]
cmp rax, 0x10
jb 0x18004284a
inc rax
mov rcx, qword [rbp + 0x70]
cmp rax, 0x1000
jb 0x180042845
test cl, 0x1f
je 0x180042815
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180042825
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x180042835
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x180042842
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.1801e6174
mov qword [rbp + 0x88], 0xf
mov qword [rbp + 0x80], r13
mov byte [rbp + 0x70], 0
mov rax, qword [rbp + 0xa8]
cmp rax, 0x10
jb 0x1800428c0
inc rax
mov rcx, qword [rbp + 0x90]
cmp rax, 0x1000
jb 0x1800428bb
test cl, 0x1f
je 0x18004288b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x18004289b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x1800428ab
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x1800428b8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.1801e6174
mov qword [rbp + 0xa8], 0xf
mov qword [rbp + 0xa0], r13
mov byte [rbp + 0x90], 0
mov rcx, r12
call fcn.18003d070
nop
mov rcx, r15
call fcn.18003d070
nop
mov rcx, r14
call fcn.18003d070
mov rax, rsi
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.1801e6190
add rsp, 0x308
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret