Function at 0x429210
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 0x429242
call fcn.0040cf35
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [eax], 0x16
call fcn.0040f449
add esp, 0x14
or eax, 0xffffffff
jmp 0x4292b0
push esi
mov esi, dword [eax]
cmp esi, ebx
push edi
mov dword [ebp - 4], esi
je 0x4292a0
push 0x3d
push esi
call fcn.004295a1
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
mov dword [ebp - 0x14], edi
je 0x4292a0
cmp esi, edi
je 0x4292a0
xor eax, eax
cmp byte [edi + 1], bl
sete al
mov dword [ebp - 8], eax
mov eax, dword [0x443fc4]
cmp eax, dword [0x443fc8]
jne 0x429286
call fcn.004291b6
mov dword [0x443fc4], eax
cmp eax, ebx
jne 0x4292ea
cmp dword [ebp + 0xc], ebx
je 0x4292b3
cmp dword [0x443fcc], ebx
je 0x4292b3
call fcn.004281db
test eax, eax
je 0x4292ea
call fcn.0040cf35
mov dword [eax], 0x16
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
jne 0x429474
push 4
call fcn.0040adbf
cmp eax, ebx
pop ecx
mov dword [0x443fc4], eax
je 0x4292ab
mov dword [eax], ebx
cmp dword [0x443fcc], ebx
jne 0x4292ea
push 4
call fcn.0040adbf
cmp eax, ebx
pop ecx
mov dword [0x443fcc], eax
je 0x4292ab
mov dword [eax], ebx
mov esi, dword [0x443fc4]
cmp esi, ebx
mov dword [ebp - 0x10], esi
je 0x4292ab
sub edi, dword [ebp - 4]
push dword [ebp - 4]
call fcn.00429164
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x42936c
cmp dword [esi], ebx
je 0x42936c
lea esi, [esi + edi*4]
mov eax, dword [esi]
cmp eax, dword [0x443fc8]
jb 0x429322
cmp eax, dword [0x444764]
jbe 0x429329
push eax
call fcn.0040a9d8
pop ecx
cmp dword [ebp - 8], ebx
jne 0x429349
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x4293bf
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 0x42933d
cmp edi, 0x3fffffff
jae 0x4293bf
push 4
push edi
push dword [0x443fc4]
call fcn.004141c7
add esp, 0xc
cmp eax, ebx
je 0x4293bf
jmp 0x4293ba
cmp dword [ebp - 8], ebx
jne 0x429466
cmp edi, ebx
jge 0x42937b
neg edi
lea eax, [edi + 2]
cmp eax, edi
jl 0x4292ab
cmp eax, 0x3fffffff
jae 0x4292ab
push eax
push 4
push dword [0x443fc4]
call fcn.004141c7
add esp, 0xc
cmp eax, ebx
je 0x4292ab
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 [0x443fc4], eax
cmp dword [ebp + 0xc], ebx
je 0x429450
mov edi, dword [ebp - 4]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4293d0
sub eax, edx
add eax, 2
push 1
push eax
call fcn.004143d1
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x429450
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4293f1
sub eax, edx
push edi
add eax, 2
push eax
push esi
call fcn.0041b4f5
add esp, 0xc
test eax, eax
je 0x429419
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040f3a3
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 0x429449
or dword [ebp - 0xc], 0xffffffff
call fcn.0040cf35
mov dword [eax], 0x2a
push esi
call fcn.0040a9d8
pop ecx
cmp dword [ebp - 8], ebx
je 0x42945e
push dword [ebp - 4]
call fcn.0040a9d8
pop ecx
mov eax, dword [ebp - 0xc]
jmp 0x4292ae
push dword [ebp - 4]
call fcn.0040a9d8
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
xor eax, eax
jmp 0x4292ae