Function at 0x10028689
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x100286da
lea eax, [ebp + 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
movzx eax, byte [eax]
test eax, eax
je 0x100286c0
push 0x25df
push 0x14c4
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
jmp 0x100286d5
push 0
push 0
push 0x877
push 0
push 1
push 0
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
jmp 0x10028836
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax]
test eax, eax
je 0x1002882c
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jne 0x1002875d
mov dword [ebp - 0xc], 1
jmp 0x10028761
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
sub eax, 8
mov ecx, dword [ebp - 8]
cmp dword [ecx], eax
jl 0x1002877f
mov dword [ebp - 0x10], 1
jmp 0x10028783
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax]
cmp dword [ebp - 0x10], eax
jl 0x10028796
mov dword [ebp - 0x14], 1
jmp 0x1002879a
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
add eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
cmp eax, dword [ecx]
jge 0x100287b2
mov dword [ebp - 0x60], 1
jmp 0x100287b6
and dword [ebp - 0x60], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jg 0x100287d3
mov dword [ebp - 0x18], 1
jmp 0x100287d7
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 4]
imul eax, dword [eax], 0x86f8
cmp eax, dword [ebp - 0x18]
jne 0x100287ee
mov dword [ebp - 0x1c], 1
jmp 0x100287f2
and dword [ebp - 0x1c], 0
cmp dword [ebp - 0x1c], 0xffffffff
jle 0x10028801
mov dword [ebp - 0x20], 1
jmp 0x10028805
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
imul eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
cmp eax, dword [ecx]
jg 0x1002881e
mov dword [ebp - 0x24], 1
jmp 0x10028822
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
jmp 0x10028836
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov esp, ebp
pop ebp
ret