Function at 0x458e50
Capabilities:
Query environment variable

Disassembly:
sub esp, 8
push ebx
push ebp
shl eax, 4
add eax, dword [edx + 8]
push esi
push edi
mov edi, dword [esp + 0x1c]
test ecx, ecx
je 0x458e79
push edi
call fcn.00475090
lea eax, [eax + edi + 1]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
mov ebx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x10], ebx
test eax, eax
je 0x45906b
mov esi, eax
mov dword [esp + 0x14], eax
mov eax, dword [esi]
test eax, eax
je 0x45906b
jmp 0x458ea0
cmp ebx, eax
jae 0x458eb2
mov cl, byte [ebx]
mov byte [edi], cl
inc ebx
inc edi
cmp ebx, eax
jb 0x458ea4
mov dword [esp + 0x10], ebx
mov esi, dword [esi + 4]
movzx eax, byte [esi + 0x17]
mov ebp, edi
cmp eax, 3
ja case.default.0x458ec4
jmp dword [eax*4 + 0x459090]
mov eax, esi
call fcn.00401150
cmp dword [0x4aa394], 0
jne 0x458f89
cmp dword [esi + 0xc], 0
jne 0x458f89
cmp dword [0x4ad2ec], esi
jne 0x458ef5
test edi, edi
jne 0x458f4e
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 0x458f4a
mov dword [0x4ad2ec], 0
test edi, edi
je 0x458f44
mov eax, dword [0x4aa374]
test eax, eax
je 0x458f37
mov ecx, dword [esi + 0x18]
push ecx
push str.An_environment_variable_is_being_accessed__see_NoEnv.
push eax
push 0x4ac290
xor ecx, ecx
call fcn.0042dba0
mov ecx, dword [esi + 0x18]
call fcn.00473390
jmp 0x45904a
dec eax
jmp 0x45904a
test edi, edi
je 0x458f7c
cmp byte [esi + 0x17], 0
jne 0x458f59
mov eax, dword [esi + 0xc]
jmp 0x458f5b
mov eax, esi
test byte [eax + 0x15], 4
je 0x458f68
mov eax, esi
call fcn.0042dcd0
mov byte [edi], 0
mov dword [0x4ad2ec], 0
xor eax, eax
jmp 0x45904a
mov dword [0x4ad2ec], esi
xor eax, eax
jmp 0x45904a
mov ebx, dword [esi + 0xc]
test edi, edi
jne 0x458f9b
mov eax, ebx
mov ebx, dword [esp + 0x10]
jmp 0x45904a
test ebx, ebx
jne 0x458fc4
movzx eax, byte [esi + 0x17]
neg eax
sbb eax, eax
and eax, esi
test byte [eax + 0x15], 4
je 0x458fb6
mov eax, esi
call fcn.0042dcd0
mov ebx, dword [esp + 0x10]
mov byte [edi], 0
xor eax, eax
jmp 0x45904a
mov ecx, dword [esi + 8]
cmp edi, ecx
jne 0x458fd3
mov eax, ebx
mov ebx, dword [esp + 0x10]
jmp 0x45904a
cmp ebx, 0x186a0
jae 0x458ff8
mov al, byte [ecx]
test al, al
je 0x458fec
inc ecx
mov byte [ebp], al
mov al, byte [ecx]
inc ebp
test al, al
jne 0x458fe1
mov eax, ebx
mov ebx, dword [esp + 0x10]
mov byte [ebp], 0
jmp 0x45904a
push ebx
push ecx
push edi
call fcn.0048d6e0
mov byte [ebx + edi], 0
mov eax, ebx
mov ebx, dword [esp + 0x1c]
add esp, 0xc
jmp 0x45904a
mov ecx, dword [esi + 0xc]
push edi
call fcn.00475090
jmp 0x45904a
mov ecx, edi
call fcn.004040c0
cmp eax, 0xffffffff
jne 0x459028
xor eax, eax
test edi, edi
je 0x45904a
mov byte [eax + edi], 0
jmp 0x45904a
test edi, edi
je 0x459039
mov byte [edi], 0
xor eax, eax
jmp 0x45904a
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0x10]
push edx
push edi
call eax
add esp, 8
mov esi, dword [esp + 0x14]
movzx ecx, word [esi + 0xa]
add esi, 0xc
add edi, eax
mov eax, dword [esi]
add ebx, ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], esi
test eax, eax
jne 0x458ea0
mov al, byte [ebx]
test al, al
je 0x459080
mov ecx, ebx
sub ecx, edi
mov byte [edi], al
mov al, byte [ecx + edi + 1]
inc edi
test al, al
jne 0x459075
mov byte [edi], 0
lea eax, [edi + 1]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4