Function at 0x418c33
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 0x418c65
call fcn.004092b9
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [eax], 0x16
call fcn.00409222
add esp, 0x14
or eax, 0xffffffff
jmp 0x418cd3
push esi
mov esi, dword [eax]
cmp esi, ebx
push edi
mov dword [ebp - 4], esi
je 0x418cc3
push 0x3d
push esi
call fcn.00418fc4
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
mov dword [ebp - 0x14], edi
je 0x418cc3
cmp esi, edi
je 0x418cc3
xor eax, eax
cmp byte [edi + 1], bl
sete al
mov dword [ebp - 8], eax
mov eax, dword [0x41f084]
cmp eax, dword [0x41f088]
jne 0x418ca9
call fcn.00418bd9
mov dword [0x41f084], eax
cmp eax, ebx
jne 0x418d0d
cmp dword [ebp + 0xc], ebx
je 0x418cd6
cmp dword [0x41f08c], ebx
je 0x418cd6
call fcn.004185c9
test eax, eax
je 0x418d0d
call fcn.004092b9
mov dword [eax], 0x16
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
jne 0x418e97
push 4
call fcn.0040caaa
cmp eax, ebx
pop ecx
mov dword [0x41f084], eax
je 0x418cce
mov dword [eax], ebx
cmp dword [0x41f08c], ebx
jne 0x418d0d
push 4
call fcn.0040caaa
cmp eax, ebx
pop ecx
mov dword [0x41f08c], eax
je 0x418cce
mov dword [eax], ebx
mov esi, dword [0x41f084]
cmp esi, ebx
mov dword [ebp - 0x10], esi
je 0x418cce
sub edi, dword [ebp - 4]
push dword [ebp - 4]
call fcn.00418b87
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x418d8f
cmp dword [esi], ebx
je 0x418d8f
lea esi, [esi + edi*4]
mov eax, dword [esi]
cmp eax, dword [0x41f088]
jb 0x418d45
cmp eax, dword [0x420c34]
jbe 0x418d4c
push eax
call fcn.0040c7f4
pop ecx
cmp dword [ebp - 8], ebx
jne 0x418d6c
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x418de2
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 0x418d60
cmp edi, 0x3fffffff
jae 0x418de2
push 4
push edi
push dword [0x41f084]
call fcn.00414b0c
add esp, 0xc
cmp eax, ebx
je 0x418de2
jmp 0x418ddd
cmp dword [ebp - 8], ebx
jne 0x418e89
cmp edi, ebx
jge 0x418d9e
neg edi
lea eax, [edi + 2]
cmp eax, edi
jl 0x418cce
cmp eax, 0x3fffffff
jae 0x418cce
push eax
push 4
push dword [0x41f084]
call fcn.00414b0c
add esp, 0xc
cmp eax, ebx
je 0x418cce
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 [0x41f084], eax
cmp dword [ebp + 0xc], ebx
je 0x418e73
mov edi, dword [ebp - 4]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x418df3
sub eax, edx
add eax, 2
push 1
push eax
call fcn.0040c9a0
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x418e73
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x418e14
sub eax, edx
push edi
add eax, 2
push eax
push esi
call fcn.0040c469
add esp, 0xc
test eax, eax
je 0x418e3c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040917c
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 0x418e6c
or dword [ebp - 0xc], 0xffffffff
call fcn.004092b9
mov dword [eax], 0x2a
push esi
call fcn.0040c7f4
pop ecx
cmp dword [ebp - 8], ebx
je 0x418e81
push dword [ebp - 4]
call fcn.0040c7f4
pop ecx
mov eax, dword [ebp - 0xc]
jmp 0x418cd1
push dword [ebp - 4]
call fcn.0040c7f4
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
xor eax, eax
jmp 0x418cd1