Function at 0x41cb30
Capabilities:
Set environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x54]
sub esp, 0x54
push 0xffffffffffffffff
push 0x47c972
mov eax, dword fs:[0]
push eax
sub esp, 0x1fc
push ebx
push esi
push edi
mov eax, dword [0x4bb27c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
push esi
mov dword [ebp + 0x40], esi
push esi
mov dword [ebp - 4], esi
push str.HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlSession_ManagerEnvironment
mov byte [ebp - 4], 2
call fcn.00439f50
add esp, 0xc
test al, al
je 0x41cdac
push 1
push str.HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlSession_ManagerEnvironment
call fcn.0041c610
add esp, 8
push 2
push str.HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlSession_ManagerEnvironment
call fcn.0041c610
add esp, 8
push 2
lea eax, [ebp + 0x20]
push str.HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlSession_ManagerEnvironment
push eax
call fcn.00439a80
add esp, 0xc
mov byte [ebp - 4], 3
mov dword [ebp + 0x38], esi
mov edi, edi
mov ecx, dword [ebp + 0x24]
test ecx, ecx
je 0x41cd83
mov eax, dword [ebp + 0x28]
sub eax, ecx
sar eax, 3
cmp esi, eax
jae 0x41cd83
mov eax, dword [ecx + esi*8]
sub eax, 0x10
push eax
call fcn.00403120
lea edi, [eax + 0x10]
add esp, 4
mov dword [ebp + 0x30], edi
mov edx, dword [0x4be0cc]
mov eax, dword [edx + 0xc]
mov ecx, 0x4be0cc
mov byte [ebp - 4], 4
call eax
add eax, 0x10
mov dword [ebp + 0x34], eax
push edi
lea ecx, [ebp + 0x34]
mov byte [ebp - 4], 5
call fcn.0041c4a0
lea ecx, [ebp + 0x34]
push ecx
lea edx, [ebp + 0x50]
push edx
call fcn.00432830
mov eax, dword [eax]
add esp, 8
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
mov eax, dword [ebp + 0x50]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cc55
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x41cd34
push str.CNUpdateUtilities::StartProcessEnvVarsUpdated
lea ecx, [ebp + 0x44]
call fcn.004031f0
push 0x48dbdc
lea ecx, [ebp + 0x3c]
mov byte [ebp - 4], 6
call fcn.004031f0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
mov byte [ebp - 4], 7
call ebx
push eax
lea ecx, [ebp + 0x4c]
push ecx
call fcn.00435510
add esp, 0xc
mov esi, eax
mov byte [ebp - 4], 8
call ebx
test eax, eax
jle 0x41ccac
and eax, 0xffff
or eax, 0x80070000
lea edx, [ebp + 0x44]
push edx
push 0xac
lea ecx, [ebp + 0x3c]
push ecx
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.0041fce0
lea ecx, [ebp - 0x48]
call fcn.0041dd40
mov eax, dword [ebp + 0x4c]
add eax, 0xfffffff0
mov byte [ebp - 4], 7
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41ccee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x3c]
add eax, 0xfffffff0
mov byte [ebp - 4], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cd11
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x44]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cd34
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x34]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cd57
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cd77
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add dword [ebp + 0x38], 1
mov esi, dword [ebp + 0x38]
jmp 0x41cbc0
test ecx, ecx
mov byte [ebp - 4], 2
je 0x41cdac
mov edx, dword [ebp + 0x30]
push edx
mov edx, dword [ebp + 0x28]
lea eax, [ebp + 0x20]
push eax
push edx
push ecx
call fcn.0041c570
mov eax, dword [ebp + 0x24]
add esp, 0x10
push eax
call fcn.004657f0
add esp, 4
cmp byte [ebp + 0x68], 0
je 0x41cdcc
mov ecx, dword [ebp + 0x60]
push ecx
lea edx, [ebp + 0x50]
push edx
call fcn.004222e0
add esp, 8
or dword [ebp + 0x40], 1
mov byte [ebp - 4], 9
jmp 0x41cde4
push 0x497188
lea ecx, [ebp + 0x4c]
call fcn.004031f0
or dword [ebp + 0x40], 2
mov dword [ebp - 4], 0xa
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00403120
add eax, 0x10
add esp, 4
mov dword [ebp + 0x48], eax
test byte [ebp + 0x40], 2
mov dword [ebp - 4], 0xc
je 0x41ce28
mov eax, dword [ebp + 0x4c]
and dword [ebp + 0x40], 0xfffffffd
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ce28
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test byte [ebp + 0x40], 1
mov byte [ebp - 4], 0xd
je 0x41ce51
mov eax, dword [ebp + 0x50]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ce51
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp + 0x64]
mov eax, dword [ebp + 0x60]
lea ecx, [ebp + 0x48]
push ecx
mov ecx, dword [ebp + 0x5c]
push edx
push eax
call fcn.00431d80
mov eax, dword [ebp + 0x48]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ce88
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x54
mov esp, ebp
pop ebp
ret