Function at 0x4216d0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47f360
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x49ffb8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov edx, ecx
lea ecx, [ebp - 0x38]
call fcn.0041c500
cmp dword [eax + 0x14], 8
jb 0x42170c
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push eax
push str.HappyCloudClientUserSid
call esi
test eax, eax
sete bl
cmp dword [ebp - 0x24], 8
jb 0x421730
push dword [ebp - 0x38]
call fcn.0043d98b
add esp, 4
test bl, bl
je 0x4217da
cmp dword [0x4a1a34], 1
jl 0x4217c6
lea ecx, [ebp - 0x18]
call fcn.0041de50
mov dword [ebp - 4], 0
mov ecx, dword [eax + 4]
mov dword [ecx + 8], 1
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x42176d
add esi, 0x10
jmp 0x42176f
xor esi, esi
lea ecx, [ebp - 0x38]
call fcn.00425510
push eax
push ecx
push str.HappyCloud::pUtils::SetChildEnvironmentValues_SetEnvironmentVariableW_failed:
push esi
mov byte [ebp - 4], 1
call fcn.00407740
add esp, 0xc
push eax
call fcn.004079f0
add esp, 8
cmp dword [ebp - 0x24], 0x10
jb 0x4217a5
push dword [ebp - 0x38]
call fcn.0043d98b
add esp, 4
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x38], 0
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.0041dee0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, edi
lea ecx, [ebp - 0x38]
call fcn.0041c500
cmp dword [eax + 0x14], 8
jb 0x4217ec
mov eax, dword [eax]
push eax
push str.HappyCloudClientDataRoot
call esi
test eax, eax
sete bl
cmp dword [ebp - 0x24], 8
jb 0x42180a
push dword [ebp - 0x38]
call fcn.0043d98b
add esp, 4
test bl, bl
je 0x421873
cmp dword [0x4a1a34], 1
jl 0x4217c6
lea ecx, [ebp - 0x18]
call fcn.0041de50
mov dword [ebp - 4], 2
mov ecx, dword [eax + 4]
mov dword [ecx + 8], 1
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x42183f
add esi, 0x10
jmp 0x421841
xor esi, esi
lea ecx, [ebp - 0x38]
call fcn.00425510
push eax
push ecx
push str.HappyCloud::pUtils::SetChildEnvironmentValues_SetEnvironmentVariableW_failed:
push esi
mov byte [ebp - 4], 3
call fcn.00407740
add esp, 0xc
push eax
call fcn.004079f0
add esp, 8
lea ecx, [ebp - 0x38]
call fcn.00404080
jmp 0x4217b7
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x38]
call fcn.0041c500
cmp dword [eax + 0x14], 8
jb 0x421886
mov eax, dword [eax]
push eax
push str.HappyCloudClientProgramDir
call esi
test eax, eax
sete bl
cmp dword [ebp - 0x24], 8
jb 0x4218a4
push dword [ebp - 0x38]
call fcn.0043d98b
add esp, 4
test bl, bl
je 0x421914
cmp dword [0x4a1a34], 1
jl 0x4217c6
lea ecx, [ebp - 0x20]
call fcn.0041de50
mov dword [ebp - 4], 4
mov ecx, dword [eax + 4]
mov dword [ecx + 8], 1
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x4218dd
add esi, 0x10
jmp 0x4218df
xor esi, esi
lea ecx, [ebp - 0x50]
call fcn.00425510
push eax
push ecx
push str.HappyCloud::pUtils::SetChildEnvironmentValues_SetEnvironmentVariableW_failed:
push esi
mov byte [ebp - 4], 5
call fcn.00407740
add esp, 0xc
push eax
call fcn.004079f0
add esp, 8
lea ecx, [ebp - 0x50]
call fcn.00404080
lea ecx, [ebp - 0x20]
jmp 0x4217ba
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret