Function at 0x427bf1
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0xc], ebx
jne 0x427c23
call fcn.0040cdb8
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [eax], 0x16
call fcn.0040f2a9
add esp, 0x14
or eax, 0xffffffff
jmp 0x427c91
push esi
mov esi, dword [eax]
cmp esi, ebx
push edi
mov dword [ebp - 4], esi
je 0x427c81
push 0x3d
push esi
call fcn.00424b87
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
mov dword [ebp - 0x14], edi
je 0x427c81
cmp esi, edi
je 0x427c81
xor eax, eax
cmp byte [edi + 1], bl
sete al
mov dword [ebp - 8], eax
mov eax, dword [0x443fe4]
cmp eax, dword [0x443fe8]
jne 0x427c67
call fcn.00427b97
mov dword [0x443fe4], eax
cmp eax, ebx
jne 0x427ccb
cmp dword [ebp + 0xc], ebx
je 0x427c94
cmp dword [0x443fec], ebx
je 0x427c94
call fcn.004252d5
test eax, eax
je 0x427ccb
call fcn.0040cdb8
mov dword [eax], 0x16
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
jne 0x427e55
push 4
call fcn.0040abd3
cmp eax, ebx
pop ecx
mov dword [0x443fe4], eax
je 0x427c8c
mov dword [eax], ebx
cmp dword [0x443fec], ebx
jne 0x427ccb
push 4
call fcn.0040abd3
cmp eax, ebx
pop ecx
mov dword [0x443fec], eax
je 0x427c8c
mov dword [eax], ebx
mov esi, dword [0x443fe4]
cmp esi, ebx
mov dword [ebp - 0x10], esi
je 0x427c8c
sub edi, dword [ebp - 4]
push dword [ebp - 4]
call fcn.00427b45
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x427d4d
cmp dword [esi], ebx
je 0x427d4d
lea esi, [esi + edi*4]
mov eax, dword [esi]
cmp eax, dword [0x443fe8]
jb 0x427d03
cmp eax, dword [0x444784]
jbe 0x427d0a
push eax
call fcn.0040a7ec
pop ecx
cmp dword [ebp - 8], ebx
jne 0x427d2a
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x427da0
mov eax, dword [esi + 4]
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
inc edi
lea esi, [eax + edi*4]
cmp dword [esi], ebx
jne 0x427d1e
cmp edi, 0x3fffffff
jae 0x427da0
push 4
push edi
push dword [0x443fe4]
call fcn.00414027
add esp, 0xc
cmp eax, ebx
je 0x427da0
jmp 0x427d9b
cmp dword [ebp - 8], ebx
jne 0x427e47
cmp edi, ebx
jge 0x427d5c
neg edi
lea eax, [edi + 2]
cmp eax, edi
jl 0x427c8c
cmp eax, 0x3fffffff
jae 0x427c8c
push eax
push 4
push dword [0x443fe4]
call fcn.00414027
add esp, 0xc
cmp eax, ebx
je 0x427c8c
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 [0x443fe4], eax
cmp dword [ebp + 0xc], ebx
je 0x427e31
mov edi, dword [ebp - 4]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x427db1
sub eax, edx
add eax, 2
push 1
push eax
call fcn.00414231
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x427e31
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x427dd2
sub eax, edx
push edi
add eax, 2
push eax
push esi
call fcn.0041b055
add esp, 0xc
test eax, eax
je 0x427dfa
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040f203
add esp, 0x14
mov ecx, dword [ebp - 8]
mov eax, esi
sub eax, edi
add eax, dword [ebp - 0x14]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x427e2a
or dword [ebp - 0xc], 0xffffffff
call fcn.0040cdb8
mov dword [eax], 0x2a
push esi
call fcn.0040a7ec
pop ecx
cmp dword [ebp - 8], ebx
je 0x427e3f
push dword [ebp - 4]
call fcn.0040a7ec
pop ecx
mov eax, dword [ebp - 0xc]
jmp 0x427c8f
push dword [ebp - 4]
call fcn.0040a7ec
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
xor eax, eax
jmp 0x427c8f