Function at 0x46c5e6
Capabilities:
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x1c0
mov qword [rbp + 0x10], rcx
lea rax, [0x00428fc3]
mov qword [rsp + 0x30], rax
lea rax, [0x00428e9e]
mov qword [rsp + 0x28], rax
lea rax, [0x00428d6a]
mov qword [rsp + 0x20], rax
lea rax, [0x0042888e]
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.00429019
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, [0x0050c3c0]
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 0x46c8c7
mov rax, qword [rbp - 0x120]
mov r11, rax
lea rax, [rbp - 0x130]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.0043f1a1
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.0043528d
mov dword [rbp - 0x134], eax
mov eax, dword [rbp - 0x134]
cmp eax, 0
jle 0x46c8a0
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.004339c5
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.004339c5
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.004293ac
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 0x46c6d1
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