Function at 0x4206d9
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 0x42070b
call fcn.004082fb
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [eax], 0x16
call fcn.00408264
add esp, 0x14
or eax, 0xffffffff
jmp 0x420779
push esi
mov esi, dword [eax]
cmp esi, ebx
push edi
mov dword [ebp - 4], esi
je 0x420769
push 0x3d
push esi
call fcn.00420a6a
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
mov dword [ebp - 0x14], edi
je 0x420769
cmp esi, edi
je 0x420769
xor eax, eax
cmp byte [edi + 1], bl
sete al
mov dword [ebp - 8], eax
mov eax, dword [0x4306c0]
cmp eax, dword [0x4306c4]
jne 0x42074f
call fcn.0042067f
mov dword [0x4306c0], eax
cmp eax, ebx
jne 0x4207b3
cmp dword [ebp + 0xc], ebx
je 0x42077c
cmp dword [0x4306c8], ebx
je 0x42077c
call fcn.004200a3
test eax, eax
je 0x4207b3
call fcn.004082fb
mov dword [eax], 0x16
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
jne 0x42093d
push 4
call fcn.0040daf8
cmp eax, ebx
pop ecx
mov dword [0x4306c0], eax
je 0x420774
mov dword [eax], ebx
cmp dword [0x4306c8], ebx
jne 0x4207b3
push 4
call fcn.0040daf8
cmp eax, ebx
pop ecx
mov dword [0x4306c8], eax
je 0x420774
mov dword [eax], ebx
mov esi, dword [0x4306c0]
cmp esi, ebx
mov dword [ebp - 0x10], esi
je 0x420774
sub edi, dword [ebp - 4]
push dword [ebp - 4]
call fcn.0042062d
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x420835
cmp dword [esi], ebx
je 0x420835
lea esi, [esi + edi*4]
mov eax, dword [esi]
cmp eax, dword [0x4306c4]
jb 0x4207eb
cmp eax, dword [0x431110]
jbe 0x4207f2
push eax
call fcn.0040d9a1
pop ecx
cmp dword [ebp - 8], ebx
jne 0x420812
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x420888
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 0x420806
cmp edi, 0x3fffffff
jae 0x420888
push 4
push edi
push dword [0x4306c0]
call fcn.00418e5e
add esp, 0xc
cmp eax, ebx
je 0x420888
jmp 0x420883
cmp dword [ebp - 8], ebx
jne 0x42092f
cmp edi, ebx
jge 0x420844
neg edi
lea eax, [edi + 2]
cmp eax, edi
jl 0x420774
cmp eax, 0x3fffffff
jae 0x420774
push eax
push 4
push dword [0x4306c0]
call fcn.00418e5e
add esp, 0xc
cmp eax, ebx
je 0x420774
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 [0x4306c0], eax
cmp dword [ebp + 0xc], ebx
je 0x420919
mov edi, dword [ebp - 4]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x420899
sub eax, edx
add eax, 2
push 1
push eax
call fcn.0040dce0
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x420919
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4208ba
sub eax, edx
push edi
add eax, 2
push eax
push esi
call fcn.0040e961
add esp, 0xc
test eax, eax
je 0x4208e2
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004081be
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 0x420912
or dword [ebp - 0xc], 0xffffffff
call fcn.004082fb
mov dword [eax], 0x2a
push esi
call fcn.0040d9a1
pop ecx
cmp dword [ebp - 8], ebx
je 0x420927
push dword [ebp - 4]
call fcn.0040d9a1
pop ecx
mov eax, dword [ebp - 0xc]
jmp 0x420777
push dword [ebp - 4]
call fcn.0040d9a1
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
xor eax, eax
jmp 0x420777