Function at 0x497323
Capabilities:
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x1c0
mov qword [rbp + 0x10], rcx
lea rax, [0x004502e1]
mov qword [rsp + 0x30], rax
lea rax, [0x004501bc]
mov qword [rsp + 0x28], rax
lea rax, [0x00450088]
mov qword [rsp + 0x20], rax
lea rax, [0x0044fbac]
mov r9, rax
mov eax, 0x10
mov r8, rax
mov eax, 0x10
mov r11, rax
lea rax, [rbp - 0xf0]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.00450337
mov eax, 0x78
mov r8, rax
lea rax, [rbp - 0xf0]
mov r11, rax
lea rax, [rbp - 0x78]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
call sub.kernel32.dll_GetEnvironmentStringsW
mov qword [rbp - 0xf8], rax
lea rax, [0x0051dc34]
mov qword [rbp - 0x118], rax
mov eax, 0
mov dword [rbp - 0x110], eax
mov eax, 1
mov dword [rbp - 0x10c], eax
mov eax, 0x10
mov r8, rax
lea rax, [rbp - 0x118]
mov r11, rax
lea rax, [rbp - 0x108]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
mov rax, qword [rbp - 0xf8]
mov qword [rbp - 0x120], rax
mov rax, qword [rbp - 0x120]
movzx ecx, word [rax]
cmp ecx, 0
je 0x497604
mov rax, qword [rbp - 0x120]
mov r11, rax
lea rax, [rbp - 0x130]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.00466fa7
mov eax, 0x10
mov r8, rax
lea rax, [rbp - 0x130]
mov r11, rax
lea rax, [rbp - 0x108]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
lea rax, [rsp + 0x20]
mov ecx, 0x10
mov r8, rcx
lea rcx, [rbp - 0x108]
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
mov eax, 0x3d
mov r11, rax
lea r10, [rsp + 0x20]
mov rcx, r10
mov rdx, r11
call fcn.0045c6b3
mov dword [rbp - 0x134], eax
mov eax, dword [rbp - 0x134]
cmp eax, 0
jle 0x4975dd
lea rax, [rsp + 0x20]
mov ecx, 0x10
mov r8, rcx
lea rcx, [rbp - 0x108]
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
mov eax, dword [rbp - 0x134]
mov r9, rax
mov eax, 0
mov r8, rax
lea r11, [rsp + 0x20]
lea rax, [rbp - 0x158]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.0045adeb
mov eax, 0x10
mov r8, rax
lea rax, [rbp - 0x158]
mov r11, rax
lea rax, [rbp - 0x148]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
mov eax, dword [rbp - 0x134]
add eax, 1
lea rcx, [rsp + 0x20]
mov edx, 0x10
mov r8, rdx
lea rdx, [rbp - 0x108]
mov r11, rdx
mov r10, rcx
mov dword [rbp - 0x17c], eax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
mov eax, dword [rbp - 0x100]
mov r9, rax
mov eax, dword [rbp - 0x17c]
mov r8, rax
lea r11, [rsp + 0x20]
lea rax, [rbp - 0x178]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.0045adeb
mov eax, 0x10
mov r8, rax
lea rax, [rbp - 0x178]
mov r11, rax
lea rax, [rbp - 0x168]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
lea rax, [rbp - 0x168]
mov r8, rax
lea rax, [rbp - 0x148]
mov r11, rax
lea rax, [rbp - 0x78]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.004506ca
mov eax, dword [rbp - 0x100]
movsxd rax, eax
shl rax, 1
mov rcx, qword [rbp - 0x120]
add rcx, rax
add rcx, 2
mov qword [rbp - 0x120], rcx
jmp 0x49740e
mov rax, qword [rbp - 0xf8]
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_FreeEnvironmentStringsW
mov rax, qword [rbp + 0x10]
mov ecx, 0x78
mov r8, rcx
lea rcx, [rbp - 0x78]
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
leave
ret