Function at 0x4ac215
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push edi
mov dword [ebp - 0x10], ebx
cmp eax, ebx
jne 0x4ac246
call fcn.004a28c2
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [eax], 0x16
call fcn.004a436d
add esp, 0x14
or eax, 0xffffffff
jmp 0x4ac2b2
push esi
mov esi, dword [eax]
mov dword [ebp - 4], esi
cmp esi, ebx
je 0x4ac2a3
push 0x3d
push esi
call fcn.004acb67
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x4ac2a3
cmp esi, eax
je 0x4ac2a3
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x501130]
sete cl
mov dword [ebp - 8], ecx
cmp eax, dword [0x501134]
jne 0x4ac289
mov edi, eax
call fcn.004ac1b8
mov dword [0x501130], eax
cmp eax, ebx
jne 0x4ac2ed
cmp dword [ebp + 0xc], ebx
je 0x4ac2b6
cmp dword [0x501138], ebx
je 0x4ac2b6
call fcn.004a904b
test eax, eax
je 0x4ac2ed
call fcn.004a28c2
mov dword [eax], 0x16
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
jne 0x4ac45a
push 4
call fcn.004a727a
pop ecx
mov dword [0x501130], eax
cmp eax, ebx
je 0x4ac2ae
mov dword [eax], ebx
cmp dword [0x501138], ebx
jne 0x4ac2ed
push 4
call fcn.004a727a
pop ecx
mov dword [0x501138], eax
cmp eax, ebx
je 0x4ac2ae
mov dword [eax], ebx
mov esi, dword [0x501130]
mov dword [ebp - 0x14], esi
cmp esi, ebx
je 0x4ac2ae
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
call fcn.004ac16b
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x4ac361
cmp dword [esi], ebx
je 0x4ac361
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0049e37d
pop ecx
cmp dword [ebp - 8], ebx
jne 0x4ac33e
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x4ac3b4
mov eax, dword [esi + 4]
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
inc edi
lea esi, [eax + edi*4]
cmp dword [esi], ebx
jne 0x4ac332
cmp edi, 0x3fffffff
jae 0x4ac3b4
push 4
push edi
push dword [0x501130]
call fcn.004a734d
add esp, 0xc
cmp eax, ebx
je 0x4ac3b4
jmp 0x4ac3af
cmp dword [ebp - 8], ebx
jne 0x4ac44c
cmp edi, ebx
jge 0x4ac370
neg edi
lea eax, [edi + 2]
cmp eax, edi
jl 0x4ac2ae
cmp eax, 0x3fffffff
jae 0x4ac2ae
push eax
push 4
push dword [0x501130]
call fcn.004a734d
add esp, 0xc
cmp eax, ebx
je 0x4ac2ae
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x501130], eax
cmp dword [ebp + 0xc], ebx
je 0x4ac431
mov esi, dword [ebp - 4]
push 1
push esi
call fcn.004a8fc0
inc eax
pop ecx
inc eax
push eax
call fcn.004a72ba
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
je 0x4ac431
push esi
push esi
call fcn.004a8fc0
inc eax
pop ecx
inc eax
push eax
push edi
call fcn.004a90e0
add esp, 0xc
test eax, eax
je 0x4ac3fa
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004a4266
add esp, 0x14
mov ecx, dword [ebp - 8]
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x4ac42a
or dword [ebp - 0x10], 0xffffffff
call fcn.004a28c2
mov dword [eax], 0x2a
push edi
call fcn.0049e37d
pop ecx
cmp dword [ebp - 8], ebx
je 0x4ac444
push dword [ebp - 4]
call fcn.0049e37d
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
mov eax, dword [ebp - 0x10]
jmp 0x4ac2b1
push dword [ebp - 4]
call fcn.0049e37d
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
xor eax, eax
jmp 0x4ac2b1