Function at 0x180040f50
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 - 0x218]
sub rsp, 0x318
mov rax, qword [0x1802943b0]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov r15, r9
mov r14, r8
mov r12, rdx
mov rsi, rcx
mov qword [rbp + 0x60], rcx
mov qword [rbp + 0x60], rdx
mov qword [rbp + 0x68], r8
mov qword [rbp + 0x70], r9
xor r13d, r13d
mov dword [rsp + 0x40], r13d
lea rcx, str.APPDATA
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov qword [rbp + 0x98], r13
mov qword [rbp + 0xa8], r13
mov qword [rbp + 0xb0], 0xf
mov byte [rbp + 0x98], r13b
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x180040fe0
mov rdx, rax
lea rcx, [rbp + 0x98]
call fcn.18003be70
nop
movabs rax, 0x7fffffffffffffff
mov rcx, qword [rbp + 0xa8]
sub rax, rcx
cmp rax, 0x17
jb 0x180041369
lea r9, [rbp + 0x98]
cmp qword [rbp + 0xb0], 0x10
cmovae r9, qword [rbp + 0x98]
mov qword [rsp + 0x30], 0x17
lea rax, str..exFilLocatini_files_
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rbp + 0xd8]
call fcn.180035b60
nop
mov rdx, r12
lea rcx, [rbp + 0xd8]
call fcn.1800adff0
mov qword [rbp + 0xb8], r13
xorps xmm0, xmm0
movdqu xmmword [rbp + 0xc8], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0xb8], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0xc8], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rdx, str..ini
lea rcx, [rbp + 0xb8]
call fcn.180035df0
mov qword [rbp + 0x78], r13
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x88], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x78], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x88], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rcx, [rbp + 0xb8]
call fcn.18003bcb0
nop
lea rcx, [rbp + 0xd8]
call fcn.18003bcb0
lea rdx, [rbp + 0x78]
cmp qword [rbp + 0x90], 0x10
cmovae rdx, qword [rbp + 0x78]
mov dword [rsp + 0x20], 1
mov r9d, 0x40
lea r8d, [r9 - 0x3f]
lea rcx, [rsp + 0x50]
call fcn.1800ac520
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x50], rax
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x4c], edx
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
mov edi, dword [rsp + rcx + 0x60]
lea rcx, [rsp + 0x50]
call fcn.18003f7e0
test dil, 6
je 0x180041291
lea rdi, [rbp + 0x78]
cmp qword [rbp + 0x90], 0x10
cmovae rdi, qword [rbp + 0x78]
lea rax, [0x1802077a0]
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 8]
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 + 0x40], 0x1e
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
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 + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x50], rax
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x4c], edx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x58]
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 + 0x58], rax
mov byte [rbp - 0x2c], 0
mov byte [rbp - 0x37], 0
lea rcx, [rsp + 0x58]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp - 0x28], r13
mov rax, qword [0x18031c260]
mov qword [rbp - 0x34], rax
mov qword [rbp - 0x40], r13
mov r9d, 0x40
lea r8d, [r9 - 0x3e]
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.18003df90
test rax, rax
jne 0x18004125f
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x50]
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 + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x50], rax
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x4c], edx
lea rcx, [rsp + 0x50]
call fcn.18003ce80
lea rax, [rbp + 0x78]
cmp qword [rbp + 0x90], 0x10
cmovae rax, qword [rbp + 0x78]
mov rdx, r15
cmp qword [r15 + 0x18], 0x10
jb 0x1800412af
mov rdx, qword [r15]
mov rcx, r14
cmp qword [r14 + 0x18], 0x10
jb 0x1800412bc
mov rcx, qword [r14]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xff
lea r9, [rbp + 0x100]
lea r8, [0x1802074e5]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov qword [rsi], r13
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], 0xf
mov byte [rsi], 0
lea rax, [rbp + 0x100]
inc rbx
cmp byte [rax + rbx], 0
jne 0x1800412f6
mov r8, rbx
lea rdx, [rbp + 0x100]
mov rcx, rsi
call fcn.18003be70
nop
lea rcx, [rbp + 0x78]
call fcn.18003bcb0
nop
lea rcx, [rbp + 0x98]
call fcn.18003bcb0
nop
mov rcx, r12
call fcn.18003bcb0
nop
mov rcx, r14
call fcn.18003bcb0
nop
mov rcx, r15
call fcn.18003bcb0
mov rax, rsi
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.1801e62c0
add rsp, 0x318
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.18003bd20
nop
int3