Function at 0x46c9e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52a288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
push 0
push 0
lea ecx, [ebp - 0x68]
call fcn.004072e0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x68]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00477ca0
add esp, 8
push 0x7fff
lea ecx, [ebp - 0x50]
call fcn.0046d3b0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x54], 8
jb 0x46ca64
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x14], edx
jmp 0x46ca6a
lea eax, [ebp - 0x68]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jbe 0x46cb8c
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
sub edx, 1
cmp dword [ebp - 0x18], edx
jae 0x46cb8c
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x4c]
jb 0x46cac6
push 0x132
push 0x5353d8
push str.index____used
call fcn.00465360
add esp, 0xc
mov edx, dword [ebp - 0x48]
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov word [edx + ecx*2], ax
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
push 0
push 0
lea ecx, [ebp - 0x80]
call fcn.00407040
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x80]
push ecx
mov edx, dword [ebp - 0x30]
push edx
call fcn.00478380
add esp, 8
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x14], 0
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.00407040
lea edx, [ebp - 0x80]
push edx
mov ecx, dword [ebp + 8]
call fcn.00416490
mov eax, dword [ebp - 0x10]
or eax, 1
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0x80]
call fcn.00407040
mov byte [ebp - 4], 0
movzx ecx, byte [ebp - 0x44]
test ecx, ecx
je 0x46cb6f
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
push eax
call fcn.004ba0bc
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x68]
call fcn.004072e0
mov eax, dword [ebp + 8]
jmp 0x46cc30
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 0
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.00407040
mov eax, dword [0x5523c8]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00406f60
mov edx, dword [ebp - 0x10]
or edx, 1
mov dword [ebp - 0x10], edx
mov byte [ebp - 4], 0
movzx eax, byte [ebp - 0x44]
test eax, eax
je 0x46cbe7
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
push edx
call fcn.004ba0bc
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x68]
call fcn.004072e0
mov eax, dword [ebp + 8]
jmp 0x46cc30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret