Function at 0x180040b60
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0xf0]
sub rsp, 0x1f0
mov rax, qword [0x1800e23b0]
xor rax, rsp
mov qword [rbp + 0xe0], rax
xor edi, edi
lea rcx, [rbp + 0xc0]
call fcn.1800407d0
nop
mov dword [0x1800fbc08], edi
mov dword [0x1800fbc18], edi
movabs rbx, 0xd80958fc74e988a6
mov qword [0x180100a88], rbx
call fcn.180067770
mov ecx, dword [rax]
mov dword [0x1800fbc18], edi
movabs rax, 0x3fef770d40960d5a
mov qword [0x180100a88], rax
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x20], ecx
mov rax, qword [rsp + 0x20]
mov qword [0x1800fbce0], rax
mov qword [0x1800fbce8], rdi
mov dword [0x1800fbc08], 2
call fcn.180067770
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x28], xmm0
movsd xmm1, qword [rax + 0x10]
movsd qword [rsp + 0x38], xmm1
mov dword [0x1800fbc08], edi
mov dword [0x1800fbc18], edi
mov qword [0x180100a88], rbx
call fcn.180067770
mov ebx, dword [rax]
mov dword [0x1800fbc18], edi
movabs rax, 0x997abd671d25ca0b
mov qword [0x180100a88], rax
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x20], ebx
mov rax, qword [rsp + 0x20]
mov qword [0x1800fbce0], rax
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x20], 1
mov rax, qword [rsp + 0x20]
mov qword [0x1800fbce8], rax
mov dword [0x1800fbc08], 2
call fcn.180067770
cmp dword [rax], edi
je 0x180040ccb
mov dword [0x1800fbc18], edi
movabs rax, 0x9a9112a0fe9a4713
mov qword [0x180100a88], rax
mov qword [rsp + 0x20], rdi
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x20]
mov qword [0x1800fbce0], rax
mov qword [0x1800fbce8], rdi
mov dword [0x1800fbc08], 2
call fcn.180067770
mov dword [0x1800fbc18], edi
movabs rax, 0xafbd61cc738d9eb9
mov qword [0x180100a88], rax
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x20], ebx
mov rax, qword [rsp + 0x20]
mov qword [0x1800fbce0], rax
mov qword [0x1800fbce8], rdi
mov dword [0x1800fbc08], 2
call fcn.180067770
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
movsd xmm1, qword [rax + 0x10]
movsd qword [rsp + 0x50], xmm1
lea rcx, str.APPDATA
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xorps xmm0, xmm0
movups xmmword [rbp + 0xa0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xb0], xmm1
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x180040d50
mov rdx, rax
lea rcx, [rbp + 0xa0]
call fcn.18003cca0
nop
mov r8d, 0x1a
lea rdx, str.KaitoITSUKITELEPORTS.ini
lea rcx, [rbp + 0xa0]
call fcn.180053c10
xorps xmm0, xmm0
movups xmmword [rbp + 0x80], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x90], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x80], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x90], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rbp + 0xb8]
cmp rdx, 0x10
jb 0x180040e00
inc rdx
mov rcx, qword [rbp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180040dfb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180040dfb
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 + 0xb0], xmm0
mov byte [rbp + 0xa0], 0
lea rcx, [rsp + 0x60]
call fcn.180052180
nop
lea rdx, [rbp + 0x80]
cmp qword [rbp + 0x98], 0x10
cmovae rdx, qword [rbp + 0x80]
mov r8d, 8
lea rcx, [rsp + 0x78]
call fcn.1800528b0
xor r8d, r8d
test rax, rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x60]
je 0x180040e6c
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 0x180040e7a
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 + 0x60]
movsxd rcx, dword [rax + 4]
test byte [rsp + rcx + 0x70], 6
je 0x180040f6b
lea rdx, [rbp + 0x80]
cmp qword [rbp + 0x98], 0x10
cmovae rdx, qword [rbp + 0x80]
mov r8d, 2
lea rcx, [rsp + 0x78]
call fcn.1800528b0
xor r8d, r8d
test rax, rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x60]
je 0x180040ed8
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 0x180040ee6
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 + 0x78]
call fcn.180052660
test rax, rax
jne 0x180040f13
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x60]
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 + 0x80]
cmp qword [rbp + 0x98], 0x10
cmovae rdx, qword [rbp + 0x80]
mov r8d, 8
lea rcx, [rsp + 0x78]
call fcn.1800528b0
xor r8d, r8d
test rax, rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x60]
je 0x180040f5d
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 0x180040f6b
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 - 8], 0
je 0x18004107d
lea rdx, [0x18007ff10]
lea rcx, [rsp + 0x70]
call fcn.180052ab0
lea rdx, [rbp + 0xc0]
cmp qword [rbp + 0xd8], 0x10
cmovae rdx, qword [rbp + 0xc0]
mov r8, qword [rbp + 0xd0]
mov rcx, rax
call fcn.180053290
mov rcx, rax
lea rdx, [0x18007ff10]
call fcn.180052ab0
movss xmm1, dword [rsp + 0x28]
lea rcx, [rsp + 0x70]
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___float____ptr64]
mov rcx, rax
lea rdx, [0x18007ff10]
call fcn.180052ab0
movss xmm1, dword [rsp + 0x30]
lea rcx, [rsp + 0x70]
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___float____ptr64]
mov rcx, rax
lea rdx, [0x18007ff10]
call fcn.180052ab0
movss xmm1, dword [rsp + 0x38]
lea rcx, [rsp + 0x70]
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___float____ptr64]
mov rcx, rax
lea rdx, [0x18007ff10]
call fcn.180052ab0
movss xmm1, dword [rsp + 0x40]
lea rcx, [rsp + 0x70]
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___float____ptr64]
mov rcx, rax
lea rdx, [0x18007ff10]
call fcn.180052ab0
movss xmm1, dword [rsp + 0x48]
lea rcx, [rsp + 0x70]
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___float____ptr64]
mov rcx, rax
lea rdx, [0x18007ff10]
call fcn.180052ab0
movss xmm1, dword [rsp + 0x50]
lea rcx, [rsp + 0x70]
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___float____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]
lea rcx, [rsp + 0x78]
call fcn.180052660
test rax, rax
jne 0x1800410aa
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x60]
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 [0x180100568]
mov rdx, qword [0x180100570]
cmp rcx, rdx
je 0x1800410d0
call fcn.180053050
mov rax, qword [0x180100568]
mov qword [0x180100570], 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.180041270
nop
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb8]
mov dword [rsp + rcx + 0x5c], edx
lea rcx, [rsp + 0x78]
call fcn.180052110
lea rcx, [rbp - 0x80]
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 + 0x98]
cmp rdx, 0x10
jb 0x18004117d
inc rdx
mov rcx, qword [rbp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180041178
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180041178
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 + 0x90], xmm0
mov byte [rbp + 0x80], 0
mov rdx, qword [rbp + 0xd8]
cmp rdx, 0x10
jb 0x1800411d8
inc rdx
mov rcx, qword [rbp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800411d3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800411d3
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 + 0xe0]
xor rcx, rsp
call fcn.180071130
lea r11, [rsp + 0x1f0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret