Function at 0x4032c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x563148
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x5c2ff4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x44
lea eax, [ebp - 0x74]
mov dword [ebp - 0x10], 0
push 0
push eax
mov dword [ebp - 0x14], 0
call fcn.00548ce0
add esp, 0xc
xorps xmm0, xmm0
movups xmmword [ebp - 0x30], xmm0
push 0
push str.Progman
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.shell32.dll
mov dword [ebp - 0x18], 0
call esi
push str.advapi32.dll
mov ebx, eax
call esi
mov edi, eax
test ebx, ebx
je 0x40350d
test edi, edi
je 0x40350a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.IsUserAnAdmin
push ebx
mov dword [ebp - 0x74], 0x44
call esi
push str.CreateProcessWithTokenW
push edi
mov dword [ebp - 0x1c], eax
call esi
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x403381
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
call esi
push edi
call esi
jmp 0x403518
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x403370
call eax
test eax, eax
je 0x403370
push 0
push str.Progman
call dword [sym.imp.USER32.dll_FindWindowW]
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 0x18]
push 0
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x403370
lea ecx, [ebp - 0x10]
push ecx
push 0x2000000
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push dword [ebp - 0x1c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x403370
lea eax, [ebp - 0x14]
push eax
push 1
push 3
push 0
push 0x2000000
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x403370
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00402920
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov edx, dword [ecx - 0xc]
mov ecx, dword [ebp + 8]
mov esi, dword [ecx]
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x74]
push ecx
push 0
push eax
push 0x400
push edx
lea ecx, [ebp + 0xc]
call fcn.00402ec0
push eax
push esi
push 0
push dword [ebp - 0x14]
call dword [ebp - 0x20]
mov esi, dword [ebp + 0xc]
mov dword [ebp + 8], eax
push dword [esi - 8]
push esi
call fcn.0054d047
add esp, 8
test eax, eax
js 0x403500
cmp eax, dword [esi - 8]
jg 0x403500
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40348a
push eax
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
cmp dword [ebp + 8], 0
jne 0x4034c7
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
call esi
push edi
call esi
lea ecx, [ebp + 0xc]
xor esi, esi
call fcn.00401d20
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push dword [ebp - 0x30]
call esi
push dword [ebp - 0x2c]
call esi
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
call esi
push edi
call esi
lea ecx, [ebp + 0xc]
mov esi, 1
call fcn.00401d20
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.00403030
push ebx
jmp 0x403512
test edi, edi
je 0x403518
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8