Function at 0x1800470d0
Capabilities:
Query environment variable

Disassembly:
push rbp
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x1800e23b0]
xor rax, rsp
mov qword [rbp + 0x90], rax
lea rcx, str.APPDATA
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xorps xmm0, xmm0
movups xmmword [rbp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x60], xmm1
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x180047115
mov rdx, rax
lea rcx, [rbp + 0x50]
call fcn.18003cca0
nop
mov r8d, 0x18
lea rdx, str.KaitoITSUKIRIDJOIN.ini
lea rcx, [rbp + 0x50]
call fcn.180053c10
xorps xmm0, xmm0
movups xmmword [rbp + 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x80], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x80], xmm1
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rbp + 0x68]
cmp rdx, 0x10
jb 0x1800471b7
inc rdx
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800471b2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800471b2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800714d0
movdqa xmm0, xmmword [0x1800da640]
movdqu xmmword [rbp + 0x60], xmm0
mov byte [rbp + 0x50], 0
lea rcx, [rsp + 0x30]
call fcn.180052180
nop
lea rdx, [rbp + 0x70]
cmp qword [rbp + 0x88], 0x10
cmovae rdx, qword [rbp + 0x70]
mov r8d, 1
lea rcx, [rsp + 0x48]
call fcn.1800528b0
xor r8d, r8d
test rax, rax
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x30]
je 0x180047217
add rcx, rax
xor edx, edx
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool____ptr64]
jmp 0x180047225
add rcx, rax
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov rcx, qword [rsp + 0x30]
movsxd rax, dword [rcx + 4]
test byte [rsp + rax + 0x40], 6
je 0x18004725d
lea rdx, str.File_not_found.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.180052ab0
lea rdx, [0x180052c80]
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 rcx, qword [rsp + 0x30]
xorps xmm0, xmm0
movups xmmword [rbp + 0x50], xmm0
movdqa xmm1, xmmword [0x1800da640]
movdqu xmmword [rbp + 0x60], xmm1
mov byte [rbp + 0x50], 0
cmp qword [rbp - 0x38], 0
je 0x180047331
movsxd rax, dword [rcx + 4]
test byte [rsp + rax + 0x40], 1
jne 0x1800472ff
nop dword [rax + rax]
movsxd rax, dword [rcx + 4]
lea rcx, [rsp + 0x30]
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, [rbp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.1800530e0
mov rax, qword [0x180100618]
cmp rax, qword [0x180100620]
je 0x1800472dc
lea rdx, [rbp + 0x50]
mov rcx, rax
call fcn.180054ef0
add qword [0x180100618], 0x20
jmp 0x1800472ef
lea r8, [rbp + 0x50]
mov rdx, rax
lea rcx, [0x180100610]
call fcn.1800536f0
mov rcx, qword [rsp + 0x30]
movsxd rax, dword [rcx + 4]
test byte [rsp + rax + 0x40], 1
je 0x180047290
lea rcx, [rsp + 0x48]
call fcn.180052660
test rax, rax
jne 0x18004732c
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x30]
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]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rbp + 0x68]
cmp rdx, 0x10
jb 0x180047374
inc rdx
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004736a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18004736a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800714d0
mov rcx, qword [rsp + 0x30]
movsxd rax, dword [rcx + 4]
lea rcx, vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rax + 0x30], rcx
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb8]
mov dword [rsp + rcx + 0x2c], edx
lea rcx, [rsp + 0x48]
call fcn.180052110
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_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]
nop
mov rdx, qword [rbp + 0x88]
cmp rdx, 0x10
jb 0x1800473f8
inc rdx
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800473f3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800473f3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800714d0
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.180071130
add rsp, 0x1a0
pop rbp
ret