Function at 0x417e13
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 0x417e45
call fcn.00408063
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [eax], 0x16
call fcn.00407fcc
add esp, 0x14
or eax, 0xffffffff
jmp 0x417eb3
push esi
mov esi, dword [eax]
cmp esi, ebx
push edi
mov dword [ebp - 4], esi
je 0x417ea3
push 0x3d
push esi
call fcn.004181a4
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
mov dword [ebp - 0x14], edi
je 0x417ea3
cmp esi, edi
je 0x417ea3
xor eax, eax
cmp byte [edi + 1], bl
sete al
mov dword [ebp - 8], eax
mov eax, dword [0x41e048]
cmp eax, dword [0x41e04c]
jne 0x417e89
call fcn.00417db9
mov dword [0x41e048], eax
cmp eax, ebx
jne 0x417eed
cmp dword [ebp + 0xc], ebx
je 0x417eb6
cmp dword [0x41e050], ebx
je 0x417eb6
call fcn.0041779f
test eax, eax
je 0x417eed
call fcn.00408063
mov dword [eax], 0x16
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
jne 0x418077
push 4
call fcn.00409ff9
cmp eax, ebx
pop ecx
mov dword [0x41e048], eax
je 0x417eae
mov dword [eax], ebx
cmp dword [0x41e050], ebx
jne 0x417eed
push 4
call fcn.00409ff9
cmp eax, ebx
pop ecx
mov dword [0x41e050], eax
je 0x417eae
mov dword [eax], ebx
mov esi, dword [0x41e048]
cmp esi, ebx
mov dword [ebp - 0x10], esi
je 0x417eae
sub edi, dword [ebp - 4]
push dword [ebp - 4]
call fcn.00417d67
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x417f6f
cmp dword [esi], ebx
je 0x417f6f
lea esi, [esi + edi*4]
mov eax, dword [esi]
cmp eax, dword [0x41e04c]
jb 0x417f25
cmp eax, dword [0x41fbf4]
jbe 0x417f2c
push eax
call fcn.00409d43
pop ecx
cmp dword [ebp - 8], ebx
jne 0x417f4c
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x417fc2
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 0x417f40
cmp edi, 0x3fffffff
jae 0x417fc2
push 4
push edi
push dword [0x41e048]
call fcn.0041327b
add esp, 0xc
cmp eax, ebx
je 0x417fc2
jmp 0x417fbd
cmp dword [ebp - 8], ebx
jne 0x418069
cmp edi, ebx
jge 0x417f7e
neg edi
lea eax, [edi + 2]
cmp eax, edi
jl 0x417eae
cmp eax, 0x3fffffff
jae 0x417eae
push eax
push 4
push dword [0x41e048]
call fcn.0041327b
add esp, 0xc
cmp eax, ebx
je 0x417eae
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 [0x41e048], eax
cmp dword [ebp + 0xc], ebx
je 0x418053
mov edi, dword [ebp - 4]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x417fd3
sub eax, edx
add eax, 2
push 1
push eax
call fcn.00409eef
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x418053
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x417ff4
sub eax, edx
push edi
add eax, 2
push eax
push esi
call fcn.004092d9
add esp, 0xc
test eax, eax
je 0x41801c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00407f26
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 0x41804c
or dword [ebp - 0xc], 0xffffffff
call fcn.00408063
mov dword [eax], 0x2a
push esi
call fcn.00409d43
pop ecx
cmp dword [ebp - 8], ebx
je 0x418061
push dword [ebp - 4]
call fcn.00409d43
pop ecx
mov eax, dword [ebp - 0xc]
jmp 0x417eb1
push dword [ebp - 4]
call fcn.00409d43
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
xor eax, eax
jmp 0x417eb1