Function at 0x528280
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b5168
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push esi
push edi
mov eax, dword [0x63b404]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.0054fcf0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x1c], 0
push ecx
push 1
push 2
push 0
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x5285ba
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x5285b5
xor eax, eax
mov dword [ebp - 0x80], 0
mov word [ebp - 0x42], ax
xorps xmm0, xmm0
push 0
push dword [ebp - 0x14]
mov eax, 1
movlpd qword [ebp - 0x78], xmm0
mov word [ebp - 0x54], ax
lea eax, [ebp - 0x18]
push eax
movlpd qword [ebp - 0x70], xmm0
movlpd qword [ebp - 0x68], xmm0
movlpd qword [ebp - 0x60], xmm0
movlpd qword [ebp - 0x52], xmm0
movlpd qword [ebp - 0x4a], xmm0
mov dword [ebp - 0x84], 0x44
mov dword [ebp - 0x7c], str.WinSta0Default
mov dword [ebp - 0x58], 0x41
mov dword [ebp - 0x18], 0
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x528514
lea esi, [ebx + 4]
push esi
lea ecx, [ebp - 0x2c]
call fcn.005456c0
push 0x20
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.00546290
push dword [ebp + 8]
lea ecx, [ebp - 0x2c]
call fcn.00546600
lea ecx, [ebp - 0x2c]
mov dword [ebp + 8], 0
call fcn.00546d80
mov ecx, esi
mov dword [ebp - 0x20], eax
call fcn.00549210
mov esi, eax
test esi, esi
je 0x5283d2
mov ecx, esi
call fcn.00546d80
mov ecx, dword [esi]
mov dword [ebp + 8], eax
test ecx, ecx
je 0x5283c0
push 2
push ecx
call fcn.0056f898
add esp, 8
mov dword [esi], 0
push 8
push esi
mov dword [esi + 4], 0
call fcn.0056f898
add esp, 8
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ebp + 8]
push dword [ebp - 0x18]
push 0x430
push 0
push 0
push 0
push dword [ebp - 0x20]
push 0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x528497
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x38]
call edi
push 0xffffffffffffffff
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x3c]
call edi
cmp dword [ebx + 0x18], 0
jne 0x5284f2
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x14]
push 0
push 0x6024bc
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
push dword [ebp + 8]
lea ecx, [ebp - 0x24]
call fcn.00545630
push eax
lea ecx, [ebx + 0x14]
mov byte [ebp - 4], 1
call fcn.00546210
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.00500b70
push str._temp_
lea ecx, [ebp - 0x24]
call fcn.005455a0
push eax
lea ecx, [ebx + 0x14]
mov byte [ebp - 4], 2
call fcn.00546600
lea ecx, [ebp - 0x24]
call fcn.00500b70
jmp 0x5284f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.CreateProcessAsUser_Last_Error_Code:__d
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.005455a0
push esi
push eax
push 0xb7
push str.iWinDrm::glWorkerCommandFromService
push str.d:jenkinsworkspaceclient3.lib.drmlibdrmlib_srciwindrm.cpp
push 0
mov byte [ebp - 4], 3
call fcn.00550890
add esp, 0x18
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00500b70
push 0
push 0
lea eax, [ebp + 8]
push eax
push 0x400
push esi
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x5285a6
push 2
push eax
call fcn.0056f898
add esp, 8
jmp 0x5285a6
push 0x5c
mov dword [ebp - 0x24], 0
mov dword [ebp + 8], 0
mov dword [ebp - 0x20], 0x2d
call fcn.0056f8a6
mov ecx, dword [ebp - 0x20]
add esp, 4
inc ecx
mov dword [ebp - 0x24], eax
push 0xffffffffffffffff
push str.Exe_Command_to_launch_as_user_is_invalid_null
push ecx
push eax
lea eax, [ebp + 8]
push eax
call fcn.00585d85
mov ecx, dword [ebp - 0x20]
xor edx, edx
add esp, 0x14
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x20], ecx
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 4
push eax
push 0xc0
push str.iWinDrm::glWorkerCommandFromService
push str.d:jenkinsworkspaceclient3.lib.drmlibdrmlib_srciwindrm.cpp
push edx
call fcn.00550890
mov dword [ebp - 4], 0xffffffff
add esp, 0x14
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x52859f
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
push dword [ebp - 0x18]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push dword [ebp - 0x14]
call edi
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4