Function at 0x960ce0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push esi
push edi
push 0x207
lea eax, [esp + 0x1d]
push 0
push eax
mov byte [esp + 0x24], 0
call fcn.00a7ffb0
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
add esp, 0xc
push 0
push 0
push 0xae906c
call esi
mov edi, eax
test edi, edi
je 0x960f81
add edi, 0xa
lea ecx, [edi + 0x10]
push 1
push ecx
mov dword [esp + 0x1c], edi
call fcn.00a7b9f8
mov ebx, eax
add esp, 8
mov dword [esp + 0x10], ebx
test ebx, ebx
je 0x960f81
push edi
push ebx
push 0xae906c
call esi
test eax, eax
je 0x960f78
cmp byte [ebx], 0
je 0x960f78
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x960d73
sub eax, edx
cmp eax, edi
jae 0x960d91
push 0xaeacac
mov esi, ebx
call fcn.009653e0
add esp, 4
jmp 0x960d96
mov byte [edi + ebx - 1], 0x3b
push 0x3b
push ebx
call fcn.00a7baf4
mov esi, eax
add esp, 8
mov dword [esp + 0xc], esi
test esi, esi
je 0x960f78
jmp 0x960db5
mov esi, dword [esp + 0xc]
push 0x208
lea edx, [esp + 0x1c]
push ebx
push edx
mov byte [esi], 0
call fcn.00a7b9de
mov eax, ebx
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x960dd0
sub eax, edx
cmp eax, 0x208
jb 0x960de7
mov byte [esp + 0x21f], cl
cmp byte [esp + 0x18], 0
je 0x960f2f
xor ecx, ecx
lea edi, [esp + 0x18]
call fcn.0095a6d0
test eax, eax
je 0x960f2f
xor ebx, ebx
cmp byte [esp + 0x18], bl
je 0x960f2b
push 1
push 0x44
call fcn.00a7b9f8
mov edi, eax
add esp, 8
test edi, edi
je 0x960f2b
xor esi, esi
lea eax, [esp + 0x18]
push eax
mov dword [edi + 8], esi
mov dword [edi + 4], esi
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 0x105
add eax, 0x10
push 1
push eax
call fcn.00a7b9f8
add esp, 8
mov dword [edi], eax
cmp eax, esi
jne 0x960e63
push edi
call fcn.00a78fec
add esp, 4
jmp 0x960f27
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [edi + 0x10], esi
mov dword [edi + 0x20], esi
mov dword [edi + 0x18], esi
mov dword [edi + 0x2c], esi
mov eax, dword [0xbfc924]
cmp eax, esi
jne 0x960e9f
mov dword [0xbfc924], edi
mov dword [edi + 0x20], edi
mov edx, dword [0xbfc924]
mov dword [edx + 0x30], 1
jmp 0x960f27
mov esi, dword [eax + 0x20]
test esi, esi
je 0x960ec8
mov eax, dword [esi]
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x960eba
mov eax, esi
jmp 0x960ef8
cmp eax, 1
jl 0x960ec3
mov eax, esi
jmp 0x960ef8
mov eax, dword [0xbfc924]
mov ebx, eax
test eax, eax
je 0x960f05
mov edi, edi
mov ecx, dword [edi]
test ecx, ecx
je 0x960eef
mov eax, dword [ebx]
test eax, eax
je 0x960eef
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x960eef
mov dword [edi + 0x2c], 1
mov eax, ebx
mov ebx, dword [ebx + 0x18]
test ebx, ebx
jne 0x960ed0
test eax, eax
jne 0x960f96
mov eax, dword [0xbfc924]
mov dword [eax + 0x1c], edi
mov dword [eax + 0x24], edi
mov dword [0xbfc924], edi
mov edx, dword [eax + 0x30]
inc edx
mov dword [edi + 0x30], edx
mov dword [edi + 0x18], eax
test ebx, ebx
jne 0x960f27
mov eax, dword [0xbfc924]
mov dword [eax + 0x20], edi
mov esi, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add esi, 1
je 0x960f61
cmp byte [esi], 0
je 0x960f61
mov edi, dword [esp + 0x14]
push edi
push esi
push ebx
call fcn.00a7b9de
mov eax, esi
add esp, 0xc
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x960f50
sub eax, edx
cmp edi, eax
ja 0x960f61
mov byte [edi + ebx - 1], cl
push 0x3b
push ebx
call fcn.00a7baf4
add esp, 8
mov dword [esp + 0xc], eax
test eax, eax
jne 0x960db1
push ebx
call fcn.00a78fec
add esp, 4
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00a78f21
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x1c], eax
mov dword [edi + 0x24], eax
mov ecx, dword [eax + 0x18]
mov dword [eax + 0x18], edi
mov dword [edi + 0x18], ecx
test ecx, ecx
je 0x960faf
mov dword [ecx + 0x1c], edi
mov dword [ecx + 0x24], edi
mov eax, dword [0xbfc924]
inc dword [eax + 0x30]
jmp 0x960f1f