Function at 0x4bdd8f
Capabilities:
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x1c0
mov qword [rbp + 0x10], rcx
lea rax, [0x00460293]
mov qword [rsp + 0x30], rax
lea rax, [0x0046016e]
mov qword [rsp + 0x28], rax
lea rax, [0x0046003a]
mov qword [rsp + 0x20], rax
lea rax, [0x0045fb5e]
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.004602e9
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, [0x005507d4]
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 0x4be070
mov rax, qword [rbp - 0x120]
mov r11, rax
lea rax, [rbp - 0x130]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.00476f59
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.0046c665
mov dword [rbp - 0x134], eax
mov eax, dword [rbp - 0x134]
cmp eax, 0
jle 0x4be049
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.0046ad9d
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.0046ad9d
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.0046067c
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 0x4bde7a
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