Function at 0x14005f980
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 - 0x100]
sub rsp, 0x200
mov rax, qword [0x14011b088]
xor rax, rsp
mov qword [rbp + 0xf8], rax
lea rcx, str.appdata
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rsi, rax
mov rbx, 0xffffffffffffffff
mov rdi, rbx
nop word [rax + rax]
inc rdi
cmp byte [rax + rdi], 0
jne 0x14005f9d0
call fcn.140074a54
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rdi
lea r8, [rsp + 0x30]
mov edx, eax
lea rcx, [rbp + 0xd8]
call fcn.14005e4e0
nop
call fcn.140074a54
lea rcx, str.pain
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], 4
lea r8, [rsp + 0x30]
mov edx, eax
lea rcx, [rsp + 0x48]
call fcn.14005e4e0
nop
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0xd8]
call fcn.14005e710
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14005fa80
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005fa7a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005fa7a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c8f38
nop
mov byte [rbp + 0xa8], 0
xor esi, esi
mov qword [rbp + 0xb0], rsi
lea rcx, [rbp + 0xa8]
call fcn.1400637d0
lea rcx, [rbp + 0xa8]
call fcn.1400637d0
nop
lea rax, [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov byte [rsp + 0x30], sil
xor eax, eax
mov qword [rsp + 0x38], rax
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.140063360
mov byte [rsp + 0x30], 3
xorps xmm0, xmm0
movups xmmword [rbp + 0xb8], xmm0
lea ecx, [rsi + 0x20]
call fcn.1400c8b00
mov rdi, rax
lea rax, [rbp + 0xa0]
mov qword [rbp + 0xb8], rax
mov qword [rbp + 0xc0], rdi
mov qword [rdi], rsi
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
lea rdx, str.Enter_your_token
inc rbx
cmp byte [rdx + rbx], 0
jne 0x14005fb10
mov r8, rbx
mov rcx, rdi
call fcn.140007c90
test rdi, rdi
jne 0x14005fb44
mov r8d, 0x4c6e
lea rdx, str.C:UserswhatwDocumentsGitHubPain_Patek_Loaderjson.h
lea rcx, str.obj___nullptr
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
nop
mov qword [rsp + 0x38], rdi
lea rcx, [rsp + 0x30]
call fcn.1400637d0
lea rcx, [rsp + 0x30]
call fcn.1400637d0
nop
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x78], rsi
mov qword [rbp - 0x80], reloc.WS2_32.dll_ntohs
mov r8d, 6
lea rdx, str.Loader
lea rcx, [rsp + 0x68]
call fcn.140007c90
lea rdx, [rsp + 0x68]
lea rcx, [rbp + 0xa8]
call fcn.14006cb40
mov rbx, rax
mov qword [rbp + 0xb8], rsi
mov qword [rbp + 0xc8], rsi
mov qword [rbp + 0xd0], reloc.WS2_32.dll_ntohs
mov r8d, 8
lea rdx, str.Password
lea rcx, [rbp + 0xb8]
call fcn.140007c90
lea rdx, [rbp + 0xb8]
mov rcx, rbx
call fcn.14006cb40
mov rbx, rax
lea rcx, [rsp + 0x30]
call fcn.1400637d0
movzx edx, byte [rbx]
movzx ecx, byte [rsp + 0x30]
mov byte [rbx], cl
mov byte [rsp + 0x30], dl
mov rcx, qword [rbx + 8]
mov rdx, qword [rsp + 0x38]
mov qword [rbx + 8], rdx
mov qword [rsp + 0x38], rcx
mov rcx, rbx
call fcn.1400637d0
nop
lea rcx, [rsp + 0x30]
call fcn.1400637d0
movzx edx, byte [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.140063360
nop
lea rax, [rsp + 0x30]
mov qword [rbp + 0xb8], rax
mov byte [rsp + 0x30], 0
xor eax, eax
mov qword [rsp + 0x38], rax
movsxd rbx, dword [0x14011b3f8]
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.140063360
mov byte [rsp + 0x30], 5
mov qword [rsp + 0x38], rbx
lea rcx, [rsp + 0x30]
call fcn.1400637d0
nop
lea rcx, [rsp + 0x30]
call fcn.1400637d0
nop
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x78], rsi
mov qword [rbp - 0x80], reloc.WS2_32.dll_ntohs
mov r8d, 6
lea rdx, str.Loader
lea rcx, [rsp + 0x68]
call fcn.140007c90
lea rdx, [rsp + 0x68]
lea rcx, [rbp + 0xa8]
call fcn.14006cb40
mov rbx, rax
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], reloc.WS2_32.dll_ntohs
mov r8d, reloc.WS2_32.dll_ntohs
lea rdx, str.Injection_Delay
lea rcx, [rsp + 0x48]
call fcn.140007c90
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.14006cb40
mov rbx, rax
lea rcx, [rsp + 0x30]
call fcn.1400637d0
movzx edx, byte [rbx]
movzx ecx, byte [rsp + 0x30]
mov byte [rbx], cl
mov byte [rsp + 0x30], dl
mov rcx, qword [rbx + 8]
mov rdx, qword [rsp + 0x38]
mov qword [rbx + 8], rdx
mov qword [rsp + 0x38], rcx
mov rcx, rbx
call fcn.1400637d0
nop
lea rcx, [rsp + 0x30]
call fcn.1400637d0
movzx edx, byte [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.140063360
nop
lea rax, [rsp + 0x30]
mov qword [rbp + 0xb8], rax
mov byte [rsp + 0x30], 0
xor eax, eax
mov qword [rsp + 0x38], rax
movzx ebx, byte [0x14011b3f4]
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.140063360
mov byte [rsp + 0x30], 4
mov byte [rsp + 0x40], bl
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x30]
call fcn.1400637d0
nop
lea rcx, [rsp + 0x30]
call fcn.1400637d0
nop
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], reloc.WS2_32.dll_ntohs
mov r8d, 6
lea rdx, str.Loader
lea rcx, [rsp + 0x48]
call fcn.140007c90
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0xa8]
call fcn.14006cb40
mov rbx, rax
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x78], rsi
mov qword [rbp - 0x80], reloc.WS2_32.dll_ntohs
mov r8d, reloc.WS2_32.dll_recv
lea rdx, str.Inject_On_Launch
lea rcx, [rsp + 0x68]
call fcn.140007c90
lea rdx, [rsp + 0x68]
mov rcx, rbx
call fcn.14006cb40
mov rbx, rax
lea rcx, [rsp + 0x30]
call fcn.1400637d0
movzx edx, byte [rbx]
movzx ecx, byte [rsp + 0x30]
mov byte [rbx], cl
mov byte [rsp + 0x30], dl
mov rcx, qword [rbx + 8]
mov rdx, qword [rsp + 0x38]
mov qword [rbx + 8], rdx
mov qword [rsp + 0x38], rcx
mov rcx, rbx
call fcn.1400637d0
nop
lea rcx, [rsp + 0x30]
call fcn.1400637d0
movzx edx, byte [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.140063360
nop
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp + 0xd8]
cmp qword [rbp + 0xf0], 8
cmovae rdx, qword [rbp + 0xd8]
lea rcx, [rbp - 0x70]
call fcn.14006cd80
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rbx, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x70], rbx
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x74], edx
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x70]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::good_void_const___ptr64]
test al, al
je 0x14005ff31
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0xa8]
call fcn.140061d90
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0x10
jb 0x14005fee3
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.14006d5f0
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x14005ff31
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005ff2b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005ff2b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c8f38
nop
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x70], rbx
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x74], edx
lea rcx, [rbp - 0x68]
call fcn.1400070c0
lea rcx, [rbp - 0x60]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x38]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rbp + 0xa8]
call fcn.1400637d0
movzx edx, byte [rbp + 0xa8]
lea rcx, [rbp + 0xb0]
call fcn.140063360
nop
mov rdx, qword [rbp + 0xf0]
cmp rdx, 8
jb 0x14005ffd7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xd8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005ffd2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005ffd2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c8f38
mov rcx, qword [rbp + 0xf8]
xor rcx, rsp
call fcn.1400c8ae0
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret