Function at 0x4ceb40
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x16
push 0
push 0
dec ecx
jne 0x4ceb48
push ecx
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0x8c]
mov ecx, 0x20
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x8c]
mov edx, dword [0x4c7f78]
call fcn.00406d5c
xor eax, eax
push ebp
push 0x4cefc2
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x8d], 0
xor eax, eax
push ebp
push 0x4cef7c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x28], 0
jge 0x4ceba9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4cef86
mov edx, dword [ebp - 0x74]
mov eax, 0x4cefe4
call fcn.004068e0
test eax, eax
jne 0x4cebc7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4cef86
lea eax, [ebp - 0x98]
push eax
mov ecx, 2
mov edx, 1
mov eax, dword [ebp - 0x74]
call fcn.004065c8
mov eax, dword [ebp - 0x98]
lea edx, [ebp - 0x94]
call fcn.00418604
mov eax, dword [ebp - 0x94]
mov edx, 0x4ceff4
call fcn.004065c0
je 0x4cec10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4cef86
lea eax, [ebp - 0x9c]
push eax
xor ecx, ecx
mov edx, 0x4cefe4
mov eax, dword [ebp - 0x74]
call fcn.004c506c
mov eax, dword [ebp - 0x9c]
lea edx, [ebp - 0xc]
call fcn.00418604
mov eax, dword [ebp - 0xc]
mov edx, 0x4cf008
call fcn.004065c0
jne 0x4cec4d
mov ebx, 0x80000000
jmp 0x4ced97
mov eax, dword [ebp - 0xc]
mov edx, 0x4cf020
call fcn.004065c0
jne 0x4cec66
mov ebx, 0x81000000
jmp 0x4ced97
mov eax, dword [ebp - 0xc]
mov edx, 0x4cf03c
call fcn.004065c0
jne 0x4cec7f
mov ebx, 0x82000000
jmp 0x4ced97
mov eax, dword [ebp - 0xc]
mov edx, 0x4cf058
call fcn.004065c0
jne 0x4cec98
mov ebx, 0x80000001
jmp 0x4ced97
mov eax, dword [ebp - 0xc]
mov edx, 0x4cf070
call fcn.004065c0
jne 0x4cecb1
mov ebx, 0x81000001
jmp 0x4ced97
mov eax, dword [ebp - 0xc]
mov edx, 0x4cf08c
call fcn.004065c0
jne 0x4cecca
mov ebx, 0x82000001
jmp 0x4ced97
mov eax, dword [ebp - 0xc]
mov edx, 0x4cf0a8
call fcn.004065c0
jne 0x4cece3
mov ebx, 0x80000002
jmp 0x4ced97
mov eax, dword [ebp - 0xc]
mov edx, 0x4cf0c0
call fcn.004065c0
jne 0x4cecfc
mov ebx, 0x81000002
jmp 0x4ced97
mov eax, dword [ebp - 0xc]
mov edx, 0x4cf0dc
call fcn.004065c0
jne 0x4ced15
mov ebx, 0x82000002
jmp 0x4ced97
mov eax, dword [ebp - 0xc]
mov edx, 0x4cf0f8
call fcn.004065c0
jne 0x4ced2b
mov ebx, 0x80000003
jmp 0x4ced97
mov eax, dword [ebp - 0xc]
mov edx, 0x4cf10c
call fcn.004065c0
jne 0x4ced41
mov ebx, 0x81000003
jmp 0x4ced97
mov eax, dword [ebp - 0xc]
mov edx, 0x4cf124
call fcn.004065c0
jne 0x4ced57
mov ebx, 0x82000003
jmp 0x4ced97
mov eax, dword [ebp - 0xc]
mov edx, 0x4cf13c
call fcn.004065c0
jne 0x4ced6d
mov ebx, 0x80000005
jmp 0x4ced97
mov eax, dword [ebp - 0xc]
mov edx, 0x4cf154
call fcn.004065c0
jne 0x4ced83
mov ebx, 0x81000005
jmp 0x4ced97
mov eax, dword [ebp - 0xc]
mov edx, 0x4cf170
call fcn.004065c0
jne 0x4ced97
mov ebx, 0x82000005
lea eax, [ebp - 4]
push eax
mov edx, dword [ebp - 0x74]
mov eax, 0x4cefe4
call fcn.004068e0
mov edx, eax
inc edx
mov ecx, 0x7fffffff
mov eax, dword [ebp - 0x74]
call fcn.004065c8
lea edx, [ebp - 8]
mov eax, dword [ebp - 0x70]
call fcn.004ca75c
mov eax, dword [ebp - 0x28]
cmp eax, 4
ja case.default.0x4cedcf
jmp dword [eax*4 + 0x4cedd6]
mov eax, dword [ebp - 0x2c]
mov edx, 0x4cf18c
call fcn.004065c0
je 0x4cee13
push 0xffffffffffffffff
push 0xffffffffffffffff
mov eax, dword [ebp - 0x2c]
call fcn.004193b4
cmp edx, 0xffffffff
jne 0x4cee0d
cmp eax, 0xffffffff
je case.default.0x4cedcf
push 0xffffffffffffffff
push 0xffffffffffffffff
mov eax, dword [ebp - 0x2c]
call fcn.004193b4
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.004c0fd4
mov byte [ebp - 0x8d], al
jmp case.default.0x4cedcf
lea edx, [ebp - 0xa0]
mov eax, dword [ebp - 0x2c]
call fcn.004ca75c
mov eax, dword [ebp - 0xa0]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.004c0c08
mov byte [ebp - 0x8d], al
jmp case.default.0x4cedcf
lea edx, [ebp - 0xa4]
mov eax, dword [ebp - 0x2c]
call fcn.004ca75c
mov eax, dword [ebp - 0xa4]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.004c0d48
mov byte [ebp - 0x8d], al
jmp case.default.0x4cedcf
lea edx, [ebp - 0xa8]
mov eax, dword [ebp - 0x2c]
call fcn.004ca75c
mov eax, dword [ebp - 0xa8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.004c0e54
mov byte [ebp - 0x8d], al
jmp case.default.0x4cedcf
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.004c10a0
mov byte [ebp - 0x8d], al
lea edx, [ebp - 0xac]
mov eax, dword [ebp - 4]
call fcn.004186cc
mov edx, dword [ebp - 0xac]
mov eax, 0x4cf1a0
call fcn.004068e0
test eax, eax
jg 0x4cef1c
mov eax, ebx
cdq
cmp edx, 0
jne 0x4ceefc
cmp eax, 0x80000000
je 0x4cef1c
mov eax, ebx
cdq
cmp edx, 0
jne 0x4cef0b
cmp eax, 0x81000000
je 0x4cef1c
mov eax, ebx
cdq
cmp edx, 0
jne 0x4cef23
cmp eax, 0x82000000
jne 0x4cef23
call fcn.004c815c
jmp 0x4cef72
lea edx, [ebp - 0xb0]
mov eax, dword [ebp - 4]
call fcn.004186cc
mov edx, dword [ebp - 0xb0]
mov eax, 0x4cf1bc
call fcn.004068e0
test eax, eax
jle 0x4cef72
call fcn.004c0268
lea edx, [ebp - 0xb4]
mov eax, dword [ebp - 0x2c]
call fcn.004ca75c
mov eax, dword [ebp - 0xb4]
call fcn.00405e98
push eax
mov eax, dword [ebp - 8]
call fcn.00405e98
push eax
call sub.KERNEL32.DLL_SetEnvironmentVariableW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4cef86
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cefc9
lea eax, [ebp - 0xb4]
mov edx, 9
call fcn.00405e04
lea eax, [ebp - 0x8c]
mov edx, dword [0x4c7f78]
call fcn.00406bf0
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405e04
ret