Function at 0x472680
Capabilities:
Acquire debug privileges

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6821a9
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0xd0
mov eax, dword [0x79cac4]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x44], edx
mov esi, ecx
mov dword [ebp - 0x54], esi
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x60], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x5c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 2
push 0
mov dword [ebp - 0x68], eax
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x64], eax
cmp byte [ebx + 0x10], 0
mov dword [ebp - 4], 0
mov byte [ebp - 0x39], 0
mov dword [ebp - 0x40], 0xffffffff
mov dword [ebp - 0x4c], 0xffffffff
mov dword [ebp - 0x50], 0
mov byte [ebp - 4], 1
je 0x47275c
lea eax, [ebp - 0x50]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4729ae
mov ecx, dword [ebp - 0x50]
mov edx, str.SeDebugPrivilege
call fcn.00471e50
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x40], esi
cmp esi, 0xffffffff
je 0x4729c0
mov esi, dword [ebp - 0x54]
lea ecx, [ebp - 0x48]
call fcn.00474350
mov byte [ebp - 4], 2
cmp dword [ebp - 0x48], 0
je 0x4729d2
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
test esi, esi
jne 0x4727ca
mov dword [ebp - 0x58], esi
mov eax, 0x16
mov dword [ebp - 0xa8], 1
mov word [ebp - 0xb0], ax
mov byte [ebp - 4], 4
mov eax, 8
movups xmm0, xmmword [ebp - 0xb0]
push 0x76b26c
mov word [ebp - 0xa0], ax
movups xmmword [ebp - 0xd0], xmm0
call edi
mov dword [ebp - 0x98], eax
test eax, eax
je 0x4729f3
jmp 0x4727dc
push esi
call edi
mov esi, eax
mov dword [ebp - 0x58], esi
test esi, esi
je 0x4729fd
jmp 0x47277f
movups xmm0, xmmword [ebp - 0xa0]
mov eax, 8
push 0
movups xmmword [ebp - 0xe0], xmm0
mov word [ebp - 0x90], ax
call edi
mov dword [ebp - 0x88], eax
push dword [ebp - 0x44]
mov byte [ebp - 4], 6
mov eax, 8
movups xmm0, xmmword [ebp - 0x90]
mov word [ebp - 0x80], ax
movups xmmword [ebp - 0x30], xmm0
call edi
mov dword [ebp - 0x78], eax
test eax, eax
jne 0x47282d
cmp dword [ebp - 0x44], eax
jne 0x472a07
mov byte [ebp - 4], 7
sub esp, 0x10
movups xmm0, xmmword [ebp - 0xd0]
mov eax, dword [ebp - 0x48]
mov ecx, esp
sub esp, 0x10
mov edx, dword [eax]
movups xmmword [ecx], xmm0
mov ecx, esp
sub esp, 0x10
movups xmm0, xmmword [ebp - 0xe0]
movups xmmword [ecx], xmm0
mov ecx, esp
sub esp, 0x10
movups xmm0, xmmword [ebp - 0x30]
movups xmmword [ecx], xmm0
mov ecx, esp
movups xmm0, xmmword [ebp - 0x80]
push esi
push eax
movups xmmword [ecx], xmm0
call dword [edx + 0x7c]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x80]
push eax
call edi
lea eax, [ebp - 0x90]
push eax
call edi
lea eax, [ebp - 0xa0]
push eax
call edi
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 3
push eax
call edi
mov eax, dword [ebp - 0x44]
test eax, eax
js 0x472a11
cmp byte [ebx + 0x10], 0
je 0x4728f8
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, dword [ebp - 0x40]
mov dword [ebp - 0x4c], eax
cmp edi, 0xffffffff
je 0x472a1d
push dword [ebp - 0x54]
lea ecx, [ebp - 0x38]
call fcn.00464940
mov edx, dword [ebp - 0x4c]
lea eax, [ebp - 0x38]
push eax
mov ecx, edi
mov byte [ebp - 4], 8
call fcn.00472050
mov ecx, dword [ebp - 0x5c]
add esp, 4
mov dword [ecx], eax
lea ecx, [ebp - 0x38]
call fcn.00453390
jmp 0x4728fb
mov edi, dword [ebp - 0x40]
push esi
mov byte [ebp - 0x39], 1
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x472953
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x472953
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xffffffff
je 0x472961
push edi
call esi
mov eax, dword [ebp - 0x4c]
cmp eax, 0xffffffff
je 0x47296c
push eax
call esi
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x472976
push eax
call esi
cmp dword [ebp - 0x64], 0
jl 0x47298d
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x68], eax
jne 0x47298d
call dword [sym.imp.ole32.dll_CoUninitialize]
mov al, byte [ebp - 0x39]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00611399
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, str.OpenProcessToken_failed.
call fcn.00472da0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, str.Failed_to_take_processes_snapshot_before_ShellExecute.
call fcn.00472da0
push str.IShellDispatch2_is_NULL
lea ecx, [ebp - 0xbc]
call fcn.0044fe80
push 0x78fd20
lea eax, [ebp - 0xbc]
push eax
call fcn.0064d863
push 0x8007000e
call fcn.00636240
push 0x8007000e
call fcn.0046abb0
push 0x8007000e
call fcn.00636240
mov edx, eax
mov ecx, str.IShellDispatch2.ShellExecute_failed.
call fcn.00472da0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, str.Failed_to_take_processes_snapshot_after_ShellExecute.
call fcn.00472da0
int3