Function at 0x1800415a0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov rax, qword [0x1800e23b0]
xor rax, rsp
mov qword [rbp + 0xb0], rax
xor esi, esi
lea rcx, [rbp + 0x90]
call fcn.1800407d0
nop
mov dword [0x1800fbc08], esi
mov dword [0x1800fbc18], esi
movabs r15, 0xd80958fc74e988a6
mov qword [0x180100a88], r15
call fcn.180067770
mov ecx, dword [rax]
mov dword [0x1800fbc18], esi
movabs rax, 0x3fef770d40960d5a
mov qword [0x180100a88], rax
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x20], ecx
mov rax, qword [rsp + 0x20]
mov qword [0x1800fbce0], rax
mov qword [0x1800fbce8], rsi
mov dword [0x1800fbc08], 2
call fcn.180067770
lea rcx, str.APPDATA
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xorps xmm0, xmm0
movups xmmword [rbp + 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x80], xmm1
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], 0
jne 0x180041670
mov rdx, rax
lea rcx, [rbp + 0x70]
call fcn.18003cca0
nop
mov r8d, 0x18
lea rdx, str.KaitoITSUKIOUTFITS.ini
lea rcx, [rbp + 0x70]
call fcn.180053c10
xorps xmm0, xmm0
movups xmmword [rbp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x60], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x60], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rbp + 0x88]
cmp rdx, 0x10
jb 0x18004170b
inc rdx
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180041706
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180041706
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 + 0x80], xmm0
mov byte [rbp + 0x70], 0
lea rcx, [rsp + 0x30]
call fcn.180052180
nop
lea rdx, [rbp + 0x50]
cmp qword [rbp + 0x68], 0x10
cmovae rdx, qword [rbp + 0x50]
mov r8d, 8
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 0x18004176b
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 0x180041779
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 rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
test byte [rsp + rcx + 0x40], 6
je 0x180041858
lea rdx, [rbp + 0x50]
cmp qword [rbp + 0x68], 0x10
cmovae rdx, qword [rbp + 0x50]
mov r8d, 2
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 0x1800417ce
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 0x1800417dc
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]
lea rcx, [rsp + 0x48]
call fcn.180052660
test rax, rax
jne 0x180041809
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]
lea rdx, [rbp + 0x50]
cmp qword [rbp + 0x68], 0x10
cmovae rdx, qword [rbp + 0x50]
mov r8d, 8
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 0x18004184a
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 0x180041858
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]
cmp qword [rbp - 0x38], 0
je 0x180041ab7
lea rdx, [rbp + 0x90]
cmp qword [rbp + 0xa8], 0x10
cmovae rdx, qword [rbp + 0x90]
mov r8, qword [rbp + 0xa0]
lea rcx, [rsp + 0x40]
call fcn.180053290
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 edi, esi
movabs r14, 0x67f3780dd425d4fc
nop word [rax + rax]
mov dword [0x1800fbc08], esi
mov dword [0x1800fbc18], esi
mov qword [0x180100a88], r15
call fcn.180067770
mov ecx, dword [rax]
mov dword [0x1800fbc18], esi
mov qword [0x180100a88], r14
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x20], ecx
mov rax, qword [rsp + 0x20]
mov qword [0x1800fbce0], rax
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x20], edi
mov rax, qword [rsp + 0x20]
mov qword [0x1800fbce8], rax
mov dword [0x1800fbc08], 2
call fcn.180067770
mov ebx, dword [rax]
call qword [sym.imp.WINMM.dll_timeGetTime]
inc eax
mov dword [0x1800fd44c], eax
mov rcx, qword [0x1800fd480]
call qword [sym.imp.KERNEL32.dll_SwitchToFiber]
mov edx, ebx
lea rcx, [rsp + 0x40]
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___int____ptr64]
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]
inc edi
cmp edi, 0xf
jl 0x1800418b0
mov edi, esi
movabs r14, 0x4a355e041e004e6
mov dword [0x1800fbc08], esi
mov dword [0x1800fbc18], esi
mov qword [0x180100a88], r15
call fcn.180067770
mov ecx, dword [rax]
mov dword [0x1800fbc18], esi
mov qword [0x180100a88], r14
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x20], ecx
mov rax, qword [rsp + 0x20]
mov qword [0x1800fbce0], rax
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x20], edi
mov rax, qword [rsp + 0x20]
mov qword [0x1800fbce8], rax
mov dword [0x1800fbc08], 2
call fcn.180067770
mov ebx, dword [rax]
call qword [sym.imp.WINMM.dll_timeGetTime]
inc eax
mov dword [0x1800fd44c], eax
mov rcx, qword [0x1800fd480]
call qword [sym.imp.KERNEL32.dll_SwitchToFiber]
mov edx, ebx
lea rcx, [rsp + 0x40]
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___int____ptr64]
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]
inc edi
cmp edi, 0xf
jl 0x180041961
mov edi, esi
movabs r14, 0xe3dd5f2a84b42281
mov dword [0x1800fbc08], esi
mov dword [0x1800fbc18], esi
mov qword [0x180100a88], r15
call fcn.180067770
mov ecx, dword [rax]
mov dword [0x1800fbc18], esi
mov qword [0x180100a88], r14
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x20], ecx
mov rax, qword [rsp + 0x20]
mov qword [0x1800fbce0], rax
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x20], edi
mov rax, qword [rsp + 0x20]
mov qword [0x1800fbce8], rax
mov dword [0x1800fbc08], 2
call fcn.180067770
mov ebx, dword [rax]
call qword [sym.imp.WINMM.dll_timeGetTime]
inc eax
mov dword [0x1800fd44c], eax
mov rcx, qword [0x1800fd480]
call qword [sym.imp.KERNEL32.dll_SwitchToFiber]
mov edx, ebx
lea rcx, [rsp + 0x40]
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___int____ptr64]
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]
inc edi
cmp edi, 0xf
jl 0x180041a12
lea rcx, [rsp + 0x48]
call fcn.180052660
test rax, rax
jne 0x180041ae4
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 [0x180100580]
mov rdx, qword [0x180100588]
cmp rcx, rdx
je 0x180041b0a
call fcn.180053050
mov rax, qword [0x180100580]
mov qword [0x180100588], rax
call qword [sym.imp.WINMM.dll_timeGetTime]
add eax, 0xa
mov dword [0x1800fd44c], eax
mov rcx, qword [0x1800fd480]
call qword [sym.imp.KERNEL32.dll_SwitchToFiber]
call fcn.180041c40
nop
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x30], rax
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 + 0x68]
cmp rdx, 0x10
jb 0x180041bb2
inc rdx
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180041bad
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180041bad
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
mov rdx, qword [rbp + 0xa8]
cmp rdx, 0x10
jb 0x180041c07
inc rdx
mov rcx, qword [rbp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180041c02
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180041c02
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 + 0xb0]
xor rcx, rsp
call fcn.180071130
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret