Function at 0x45a490
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 0x45a4b9
push edi
call fcn.00475750
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 0x45a6ab
mov esi, eax
mov dword [esp + 0x14], eax
mov eax, dword [esi]
test eax, eax
je 0x45a6ab
jmp 0x45a4e0
cmp ebx, eax
jae 0x45a4f2
mov cl, byte [ebx]
mov byte [edi], cl
inc ebx
inc edi
cmp ebx, eax
jb 0x45a4e4
mov dword [esp + 0x10], ebx
mov esi, dword [esi + 4]
movzx eax, byte [esi + 0x17]
mov ebp, edi
cmp eax, 3
ja case.default.0x45a504
jmp dword [eax*4 + 0x45a6d0]
mov eax, esi
call fcn.00401150
cmp dword [0x4aae84], 0
jne 0x45a5c9
cmp dword [esi + 0xc], 0
jne 0x45a5c9
cmp dword [0x4adddc], esi
jne 0x45a535
test edi, edi
jne 0x45a58e
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 0x45a58a
mov dword [0x4adddc], 0
test edi, edi
je 0x45a584
mov eax, dword [0x4aae64]
test eax, eax
je 0x45a577
mov ecx, dword [esi + 0x18]
push ecx
push str.An_environment_variable_is_being_accessed__see_NoEnv.
push eax
push 0x4acd80
xor ecx, ecx
call fcn.0042f0d0
mov ecx, dword [esi + 0x18]
call fcn.00473b40
jmp 0x45a68a
dec eax
jmp 0x45a68a
test edi, edi
je 0x45a5bc
cmp byte [esi + 0x17], 0
jne 0x45a599
mov eax, dword [esi + 0xc]
jmp 0x45a59b
mov eax, esi
test byte [eax + 0x15], 4
je 0x45a5a8
mov eax, esi
call fcn.0042f200
mov byte [edi], 0
mov dword [0x4adddc], 0
xor eax, eax
jmp 0x45a68a
mov dword [0x4adddc], esi
xor eax, eax
jmp 0x45a68a
mov ebx, dword [esi + 0xc]
test edi, edi
jne 0x45a5db
mov eax, ebx
mov ebx, dword [esp + 0x10]
jmp 0x45a68a
test ebx, ebx
jne 0x45a604
movzx eax, byte [esi + 0x17]
neg eax
sbb eax, eax
and eax, esi
test byte [eax + 0x15], 4
je 0x45a5f6
mov eax, esi
call fcn.0042f200
mov ebx, dword [esp + 0x10]
mov byte [edi], 0
xor eax, eax
jmp 0x45a68a
mov ecx, dword [esi + 8]
cmp edi, ecx
jne 0x45a613
mov eax, ebx
mov ebx, dword [esp + 0x10]
jmp 0x45a68a
cmp ebx, 0x186a0
jae 0x45a638
mov al, byte [ecx]
test al, al
je 0x45a62c
inc ecx
mov byte [ebp], al
mov al, byte [ecx]
inc ebp
test al, al
jne 0x45a621
mov eax, ebx
mov ebx, dword [esp + 0x10]
mov byte [ebp], 0
jmp 0x45a68a
push ebx
push ecx
push edi
call fcn.0048dd80
mov byte [ebx + edi], 0
mov eax, ebx
mov ebx, dword [esp + 0x1c]
add esp, 0xc
jmp 0x45a68a
mov ecx, dword [esi + 0xc]
push edi
call fcn.00475750
jmp 0x45a68a
mov ecx, edi
call fcn.00404140
cmp eax, 0xffffffff
jne 0x45a668
xor eax, eax
test edi, edi
je 0x45a68a
mov byte [eax + edi], 0
jmp 0x45a68a
test edi, edi
je 0x45a679
mov byte [edi], 0
xor eax, eax
jmp 0x45a68a
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 0x45a4e0
mov al, byte [ebx]
test al, al
je 0x45a6c0
mov ecx, ebx
sub ecx, edi
mov byte [edi], al
mov al, byte [ecx + edi + 1]
inc edi
test al, al
jne 0x45a6b5
mov byte [edi], 0
lea eax, [edi + 1]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4