Function at 0x466c70
Capabilities:
Query environment variable

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
push ebp
shl eax, 4
add eax, dword [edx + 8]
push esi
push edi
mov edi, dword [esp + 0x18]
test ecx, ecx
je 0x466c99
push edi
call fcn.004833c0
lea eax, [eax + edi + 1]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov ebx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x18], ebx
test eax, eax
je 0x466e9a
mov esi, eax
mov dword [esp + 0x10], eax
mov eax, dword [esi]
test eax, eax
je 0x466e9a
jmp 0x466cc0
cmp ebx, eax
jae 0x466cd2
mov cl, byte [ebx]
mov byte [edi], cl
inc ebx
inc edi
cmp ebx, eax
jb 0x466cc4
mov dword [esp + 0x18], ebx
mov esi, dword [esi + 4]
movzx eax, byte [esi + 0x17]
mov ebp, edi
cmp eax, 3
ja case.default.0x466ce4
jmp dword [eax*4 + 0x466ec0]
mov eax, esi
call fcn.004011b0
cmp dword [0x4bb618], 0
jne 0x466dad
cmp dword [esi + 0xc], 0
jne 0x466dad
cmp dword [0x4bd578], esi
jne 0x466d15
test edi, edi
jne 0x466d6e
mov eax, dword [esi + 0x18]
push 0
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x466d6a
mov dword [0x4bd578], 0
test edi, edi
je 0x466d64
mov eax, dword [0x4bb5f4]
test eax, eax
je 0x466d57
mov ecx, dword [esi + 0x18]
push 0
push ecx
push str.An_environment_variable_is_being_accessed__see_NoEnv.
push eax
mov ecx, 0x4bc4c8
call fcn.0043bd80
mov ecx, dword [esi + 0x18]
call fcn.00481210
jmp 0x466e79
dec eax
jmp 0x466e79
test edi, edi
je 0x466da0
cmp byte [esi + 0x17], 0
jne 0x466d79
mov eax, dword [esi + 0xc]
jmp 0x466d7b
mov eax, esi
test byte [eax + 0x15], 4
je 0x466d8c
push esi
mov ecx, 0x4bc4c8
call fcn.0043beb0
mov byte [edi], 0
mov dword [0x4bd578], 0
xor eax, eax
jmp 0x466e79
mov dword [0x4bd578], esi
xor eax, eax
jmp 0x466e79
mov ebx, dword [esi + 0xc]
test edi, edi
jne 0x466dbf
mov eax, ebx
mov ebx, dword [esp + 0x18]
jmp 0x466e79
test ebx, ebx
jne 0x466dec
movzx eax, byte [esi + 0x17]
neg eax
sbb eax, eax
and eax, esi
test byte [eax + 0x15], 4
je 0x466dde
push esi
mov ecx, 0x4bc4c8
call fcn.0043beb0
mov ebx, dword [esp + 0x18]
mov byte [edi], 0
xor eax, eax
jmp 0x466e79
mov ecx, dword [esi + 8]
cmp edi, ecx
jne 0x466dfb
mov eax, ebx
mov ebx, dword [esp + 0x18]
jmp 0x466e79
cmp ebx, 0x186a0
jae 0x466e27
mov al, byte [ecx]
test al, al
je 0x466e1b
lea esp, [esp]
inc ecx
mov byte [ebp], al
mov al, byte [ecx]
inc ebp
test al, al
jne 0x466e10
mov eax, ebx
mov ebx, dword [esp + 0x18]
mov byte [ebp], 0
jmp 0x466e79
push ebx
push ecx
push edi
call fcn.0049b8f0
mov byte [ebx + edi], 0
mov eax, ebx
mov ebx, dword [esp + 0x24]
add esp, 0xc
jmp 0x466e79
mov ecx, dword [esi + 0xc]
push edi
call fcn.004833c0
jmp 0x466e79
mov ecx, edi
call fcn.00404f00
cmp eax, 0xffffffff
jne 0x466e57
xor eax, eax
test edi, edi
je 0x466e79
mov byte [eax + edi], 0
jmp 0x466e79
test edi, edi
je 0x466e68
mov byte [edi], 0
xor eax, eax
jmp 0x466e79
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0x10]
push edx
push edi
call eax
add esp, 8
mov esi, dword [esp + 0x10]
movzx ecx, word [esi + 0xa]
add esi, 0xc
add edi, eax
mov eax, dword [esi]
add ebx, ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], esi
test eax, eax
jne 0x466cc0
mov al, byte [ebx]
test al, al
je 0x466eaf
mov ecx, ebx
sub ecx, edi
mov byte [edi], al
mov al, byte [ecx + edi + 1]
inc edi
test al, al
jne 0x466ea4
mov byte [edi], 0
lea eax, [edi + 1]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8