Function at 0x4d2025
Capabilities:
Set environment variable

Disassembly:
push ecx
push ecx
and dword [esp], 0
push ebp
mov ebp, dword [esp + 0x10]
push edi
test ebp, ebp
jne 0x4d204a
call fcn.004c302f
mov dword [eax], 0x16
call fcn.004c467e
or eax, 0xffffffff
jmp 0x4d20c3
push ebx
mov ebx, dword [ebp]
push esi
test ebx, ebx
je 0x4d20b3
push 0x3d
push ebx
call fcn.004d25ec
mov esi, eax
mov dword [esp + 0x1c], esi
pop ecx
pop ecx
test esi, esi
je 0x4d20b3
cmp ebx, esi
je 0x4d20b3
mov edi, dword [0x529ecc]
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [esp + 0x1c], eax
cmp edi, dword [0x529eec]
jne 0x4d2098
push edi
call fcn.004d228f
mov edi, eax
mov eax, dword [esp + 0x20]
pop ecx
mov dword [0x529ecc], edi
test edi, edi
jne 0x4d210b
cmp dword [esp + 0x20], edi
je 0x4d20c8
cmp dword [0x529ed0], edi
je 0x4d20c8
call fcn.004cf9c5
test eax, eax
je 0x4d2101
call fcn.004c302f
mov dword [eax], 0x16
or eax, 0xffffffff
pop esi
pop ebx
pop edi
pop ebp
pop ecx
pop ecx
ret
test eax, eax
jne 0x4d227b
push 4
call fcn.004c2f1d
mov dword [0x529ecc], eax
pop ecx
test eax, eax
je 0x4d20be
and dword [eax], 0
cmp dword [0x529ed0], 0
jne 0x4d2101
push 4
call fcn.004c2f1d
mov dword [0x529ed0], eax
pop ecx
test eax, eax
je 0x4d20be
and dword [eax], 0
mov edi, dword [0x529ecc]
test edi, edi
je 0x4d20be
mov eax, esi
sub eax, ebx
push eax
push ebx
call fcn.004d22ee
mov esi, eax
pop ecx
pop ecx
test esi, esi
js 0x4d2225
cmp dword [edi], 0
je 0x4d2225
push dword [edi + esi*4]
call fcn.004bbb16
cmp dword [esp + 0x20], 0
pop ecx
jne 0x4d21ec
mov dword [edi + esi*4], ebx
and dword [ebp], 0
mov edi, dword [esp + 0x1c]
cmp dword [esp + 0x20], 0
je 0x4d21cc
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4d2156
sub ecx, edx
push 1
lea eax, [ecx + 2]
push eax
call fcn.004c2ed5
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4d21cc
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4d2177
sub ecx, edx
push ebx
lea eax, [ecx + 2]
push eax
push esi
call fcn.004cc5bd
add esp, 0xc
test eax, eax
jne 0x4d2282
mov eax, esi
xor ecx, ecx
sub eax, ebx
add eax, dword [esp + 0x14]
mov byte [eax], 0
inc eax
test edi, edi
cmovne eax, ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x4d21c5
or dword [esp + 0x10], 0xffffffff
call fcn.004c302f
mov dword [eax], 0x2a
push esi
call fcn.004bbb16
pop ecx
test edi, edi
je 0x4d21db
push ebx
call fcn.004bbb16
and dword [ebp], 0
pop ecx
mov eax, dword [esp + 0x10]
jmp 0x4d20c1
mov eax, dword [edi + esi*4 + 4]
mov dword [edi + esi*4], eax
inc esi
cmp dword [edi + esi*4], 0
jne 0x4d21e4
cmp esi, 0x3fffffff
jae 0x4d2146
push 4
push esi
push dword [0x529ecc]
call fcn.004c2fae
mov edi, dword [esp + 0x28]
add esp, 0xc
test eax, eax
je 0x4d214a
mov dword [0x529ecc], eax
jmp 0x4d214a
mov edi, dword [esp + 0x1c]
test edi, edi
jne 0x4d2270
test esi, esi
jns 0x4d2233
neg esi
lea eax, [esi + 2]
cmp eax, esi
jl 0x4d20be
cmp eax, 0x3fffffff
jae 0x4d20be
push eax
push 4
push dword [0x529ecc]
call fcn.004c2fae
add esp, 0xc
test eax, eax
je 0x4d20be
and dword [eax + esi*4 + 4], 0
mov dword [eax + esi*4], ebx
and dword [ebp], 0
jmp 0x4d221b
push ebx
call fcn.004bbb16
and dword [ebp], 0
pop ecx
xor eax, eax
jmp 0x4d20c1
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004c468e
int3