Function at 0x459450
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 0x459479
push edi
call fcn.00475a70
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 0x45966f
mov esi, eax
mov dword [esp + 0x14], eax
mov eax, dword [esi]
test eax, eax
je 0x45966f
jmp 0x4594a0
cmp ebx, eax
jae 0x4594b2
mov cl, byte [ebx]
mov byte [edi], cl
inc ebx
inc edi
cmp ebx, eax
jb 0x4594a4
mov dword [esp + 0x10], ebx
mov esi, dword [esi + 4]
movzx eax, byte [esi + 0x17]
mov ebp, edi
cmp eax, 3
ja case.default.0x4594c4
jmp dword [eax*4 + 0x45969c]
mov eax, esi
call fcn.00401150
cmp dword [0x4ab408], 0
jne 0x459589
cmp dword [esi + 0xc], 0
jne 0x459589
cmp dword [0x4ad3f4], esi
jne 0x4594f5
test edi, edi
jne 0x45954e
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 0x45954a
mov dword [0x4ad3f4], 0
test edi, edi
je 0x459544
mov eax, dword [0x4ab3e4]
test eax, eax
je 0x459537
mov ecx, dword [esi + 0x18]
push ecx
push str.An_environment_variable_is_being_accessed__see_NoEnv.
push eax
push 0x4ac390
xor ecx, ecx
call fcn.0042e2e0
mov ecx, dword [esi + 0x18]
call fcn.00473ce0
jmp 0x45964e
dec eax
jmp 0x45964e
test edi, edi
je 0x45957c
cmp byte [esi + 0x17], 0
jne 0x459559
mov eax, dword [esi + 0xc]
jmp 0x45955b
mov eax, esi
test byte [eax + 0x15], 4
je 0x459568
mov eax, esi
call fcn.0042e410
mov byte [edi], 0
mov dword [0x4ad3f4], 0
xor eax, eax
jmp 0x45964e
mov dword [0x4ad3f4], esi
xor eax, eax
jmp 0x45964e
mov ebx, dword [esi + 0xc]
test edi, edi
jne 0x45959b
mov eax, ebx
mov ebx, dword [esp + 0x10]
jmp 0x45964e
test ebx, ebx
jne 0x4595c4
movzx eax, byte [esi + 0x17]
neg eax
sbb eax, eax
and eax, esi
test byte [eax + 0x15], 4
je 0x4595b6
mov eax, esi
call fcn.0042e410
mov ebx, dword [esp + 0x10]
mov byte [edi], 0
xor eax, eax
jmp 0x45964e
mov ecx, dword [esi + 8]
cmp edi, ecx
jne 0x4595d3
mov eax, ebx
mov ebx, dword [esp + 0x10]
jmp 0x45964e
cmp ebx, 0x186a0
jae 0x4595f8
mov al, byte [ecx]
test al, al
je 0x4595ec
inc ecx
mov byte [ebp], al
mov al, byte [ecx]
inc ebp
test al, al
jne 0x4595e1
mov eax, ebx
mov ebx, dword [esp + 0x10]
mov byte [ebp], 0
jmp 0x45964e
push ebx
push ecx
push edi
call fcn.0048e0f0
mov byte [ebx + edi], 0
mov eax, ebx
mov ebx, dword [esp + 0x1c]
add esp, 0xc
jmp 0x45964e
mov ecx, dword [esi + 0xc]
push edi
call fcn.00475a70
jmp 0x45964e
push edi
mov ecx, 0x4ac334
call fcn.004040c0
cmp eax, 0xffffffff
jne 0x45962c
xor eax, eax
test edi, edi
je 0x45964e
mov byte [eax + edi], 0
jmp 0x45964e
test edi, edi
je 0x45963d
mov byte [edi], 0
xor eax, eax
jmp 0x45964e
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 0x4594a0
mov al, byte [ebx]
test al, al
je 0x45968b
mov ecx, ebx
sub ecx, edi
lea esp, [esp]
mov byte [edi], al
mov al, byte [ecx + edi + 1]
inc edi
test al, al
jne 0x459680
mov byte [edi], 0
lea eax, [edi + 1]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4