Function at 0x40d9a0
Capabilities:
Acquire debug privileges
Check mutex on windows
Get file attributes
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x23c
mov eax, dword [0x4504f4]
xor eax, esp
mov dword [esp + 0x238], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
push str.SHDownloader
xor edi, edi
push edi
push edi
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esp + 0x1c], eax
cmp eax, edi
je 0x40da01
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40da01
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.00427d7d
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [esp + 0x10]
push ecx
push 0x28
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40dabe
mov esi, dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov ebx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push str.SeShutdownPrivilege
push edi
call esi
test eax, eax
je 0x40da49
push ebx
lea ecx, [esp + 0x18]
call fcn.0040d6e0
add esp, 4
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push str.SeBackupPrivilege
push edi
call esi
test eax, eax
je 0x40da6b
push ebx
lea ecx, [esp + 0x18]
call fcn.0040d6e0
add esp, 4
mov ebx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push str.SeRestorePrivilege
push edi
call esi
test eax, eax
je 0x40da8d
push ebx
lea ecx, [esp + 0x18]
call fcn.0040d6e0
add esp, 4
mov ebx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push str.SeDebugPrivilege
push edi
call esi
test eax, eax
je 0x40daaf
push ebx
lea ecx, [esp + 0x18]
call fcn.0040d6e0
add esp, 4
mov eax, dword [esp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebx
jmp 0x40dac4
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0043dbe0
call fcn.0043d3e0
push 0x206
lea edx, [esp + 0x3e]
xor ecx, ecx
push edi
push edx
mov word [esp + 0x44], cx
call fcn.00429240
add esp, 0xc
push 0x104
lea eax, [esp + 0x3c]
push eax
push str._TEMP_SHSetup.exe
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, eax
je 0x40db32
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
lea edx, [esp + 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x40d9e8
push eax
call ebx
push edi
push edi
push edi
push edi
call dword [sym.imp.USER32.dll_DefWindowProcW]
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], 8
mov dword [esp + 0x1c], 0x20
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
call fcn.0040cc80
push edi
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
call sub.gdiplus.dll_GdiplusStartup
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x24]
push eax
push ecx
call fcn.0040d750
mov edx, dword [esp + 0x28]
add esp, 8
push edx
mov esi, eax
call sub.gdiplus.dll_GdiplusShutdown
call fcn.0040cd40
mov eax, dword [esp + 0x1c]
push eax
call ebx
mov ecx, dword [esp + 0x244]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.00427d7d
mov esp, ebp
pop ebp
ret 0x10