Function at 0x180047410
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x260]
sub rsp, 0x360
mov rax, qword [0x1800e23b0]
xor rax, rsp
mov qword [rbp + 0x250], rax
xor esi, esi
mov dword [0x1800fbc18], esi
movabs rax, 0x50fac3a3e030a6e1
mov qword [0x180100a88], rax
mov qword [rsp + 0x20], rsi
mov eax, dword [0x180100464]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x20]
mov qword [0x1800fbce0], rax
mov dword [0x1800fbc08], 1
call fcn.180067770
mov dword [0x1800fbc18], esi
movabs rax, 0x6d0de6a7b5da71f8
mov qword [0x180100a88], rax
mov qword [rsp + 0x20], rsi
mov eax, dword [0x180100464]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x20]
mov qword [0x1800fbce0], rax
mov dword [0x1800fbc08], 1
call fcn.180067770
mov rdx, qword [rax]
xorps xmm0, xmm0
movups xmmword [rbp + 0x70], xmm0
mov qword [rbp + 0x80], rsi
mov qword [rbp + 0x88], rsi
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp byte [rdx + r8], sil
jne 0x1800474e6
lea rcx, [rbp + 0x70]
call fcn.18003cca0
nop
mov dword [0x1800fbc18], esi
movabs rax, 0x388eb2b86c73b6b3
mov qword [0x180100a88], rax
mov qword [rsp + 0x20], rsi
mov eax, dword [0x180100464]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x20]
mov qword [0x1800fbce0], rax
lea rax, [rbp + 0xb0]
mov qword [0x1800fbce8], rax
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x20], 0xd
mov rax, qword [rsp + 0x20]
mov qword [0x1800fbcf0], rax
mov dword [0x1800fbc08], 3
call fcn.180067770
mov dword [0x1800fbc18], esi
movabs rax, 0x6f79b93b0a8e4133
mov qword [0x180100a88], rax
lea rax, [rbp + 0xb0]
mov qword [0x1800fbce0], rax
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x20], 0xd
mov rax, qword [rsp + 0x20]
mov qword [0x1800fbce8], rax
mov dword [0x1800fbc08], 2
call fcn.180067770
cmp dword [rax], 0
je 0x1800475ec
mov dword [0x1800fbc18], esi
movabs rax, 0xc82630132081bb6f
mov qword [0x180100a88], rax
lea rax, [rbp + 0xb0]
mov qword [0x1800fbce0], rax
mov dword [0x1800fbc08], 1
call fcn.180067770
mov rdi, qword [rax]
jmp 0x1800475f3
lea rdi, [0x1800777f8]
mov r9, rdi
lea r8, [0x180079a1c]
mov edx, 0x64
lea rcx, [rbp + 0x1e0]
call fcn.180054720
lea rcx, str.APPDATA
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xorps xmm0, xmm0
movups xmmword [rbp + 0x90], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xa0], xmm1
inc rbx
cmp byte [rax + rbx], 0
jne 0x180047630
mov r8, rbx
mov rdx, rax
lea rcx, [rbp + 0x90]
call fcn.18003cca0
nop
mov r8d, 0x18
lea rdx, str.KaitoITSUKIRIDJOIN.ini
lea rcx, [rbp + 0x90]
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 + 0xa8]
cmp rdx, 0x10
jb 0x1800476d6
inc rdx
mov rcx, qword [rbp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800476d1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800476d1
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 + 0xa0], xmm0
mov byte [rbp + 0x90], 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 0x180047739
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 0x180047747
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 0x180047826
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 0x18004779c
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 0x1800477aa
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 0x1800477d7
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 0x180047818
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 0x180047826
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 0x18004787c
lea rdx, [rbp + 0x70]
cmp qword [rbp + 0x88], 0x10
cmovae rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x80]
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 rdx, rdi
lea rcx, [rsp + 0x40]
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]
lea rcx, [rsp + 0x48]
call fcn.180052660
test rax, rax
jne 0x1800478a9
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 [0x180100610]
mov rdx, qword [0x180100618]
cmp rcx, rdx
je 0x1800478cf
call fcn.180053050
mov rax, qword [0x180100610]
mov qword [0x180100618], 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.1800470d0
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 0x180047977
inc rdx
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180047972
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180047972
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 + 0x88]
cmp rdx, 0x10
jb 0x1800479c9
inc rdx
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800479c4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800479c4
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 + 0x250]
xor rcx, rsp
call fcn.180071130
lea r11, [rsp + 0x360]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret