Function at 0x465a83
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51c738
mov eax, dword fs:[0]
push eax
mov eax, 0x18cc
call fcn.004d9200
mov eax, dword [0x577014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x1880], edi
mov ebx, ecx
mov dword [ebp - 0x188c], ebx
mov dword [ebp - 0x1888], ebx
xor eax, eax
mov dword [ebp - 0x1888], ebx
mov dword [ebp - 0x1898], eax
mov dword [ebp - 0x1894], eax
mov dword [ebp - 0x1890], eax
lea edx, [ebp - 0x1898]
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x187c]
call fcn.0042c68a
mov byte [ebp - 4], 1
cmp dword [ebp - 0x187c], 0
jge 0x465b9a
cmp dword [ebp - 0x1878], 0
mov eax, 0x1384
mov edi, dword [ebp - 0x1874]
cmovne eax, dword [ebp - 0x1878]
push eax
push dword [ebp - 0x187c]
push ecx
mov esi, esp
lea ecx, [edi - 0x10]
mov dword [ebp - 0x188c], esi
call fcn.004070e7
add eax, 0x10
lea ecx, [ebp - 0x18b4]
mov dword [esi], eax
call fcn.00406620
lea eax, [ebp - 0x18b4]
mov byte [ebp - 4], 2
push eax
mov ecx, ebx
call fcn.0040121b
mov ecx, dword [ebp - 0x18ac]
lea ecx, [ecx - 0x10]
call fcn.00407189
lea ecx, [edi - 0x10]
call fcn.00407189
mov eax, dword [ebp - 0x1898]
test eax, eax
je 0x465eb9
mov ecx, dword [ebp - 0x1890]
sub ecx, eax
and ecx, 0xfffffffc
push ecx
push eax
call fcn.00405cbf
pop ecx
pop ecx
jmp 0x465eb9
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x1874]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov edx, str.SeDebugPrivilege
lea ecx, [ebp - 0x187c]
call fcn.0040124a
mov ecx, dword [ebp - 0x1874]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov eax, dword [ebp - 0x1894]
xor ecx, ecx
mov edx, dword [ebp - 0x1898]
sub eax, edx
sar eax, 2
mov dword [ebp - 0x18a4], ecx
mov dword [ebp - 0x1888], eax
test eax, eax
je 0x465e9f
xor ebx, ebx
push dword [edx + ecx*4]
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x18bc], esi
mov byte [ebp - 4], 3
test esi, esi
jne 0x465c1a
mov byte [ebp - 4], bl
jmp 0x465e7a
push 0x820
lea eax, [ebp - 0x830]
push ebx
push eax
call fcn.004d9f30
add esp, 0xc
lea eax, [ebp - 0x830]
push 0x410
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
test eax, eax
jne 0x465c56
push esi
mov byte [ebp - 4], bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x465e7a
lea eax, [ebp - 0x830]
push eax
lea ecx, [ebp - 0x1884]
call fcn.00406fea
lea eax, [ebp - 0x1884]
mov ecx, edi
push eax
lea eax, [ebp - 0x18cc]
push eax
call fcn.00409a0d
mov ebx, dword [ebp - 0x18c4]
cmp byte [ebx + 0xd], 0
jne 0x465c9b
lea edx, [ebx + 0x10]
lea ecx, [ebp - 0x1884]
call fcn.004090c0
test al, al
jns 0x465c9d
mov ebx, dword [edi]
mov ecx, dword [ebp - 0x1884]
mov edi, dword [edi]
lea ecx, [ecx - 0x10]
call fcn.00407189
cmp ebx, edi
jne 0x465d0f
lea ecx, [ebp - 0x18b0]
call fcn.004a927e
mov edi, eax
lea eax, [ebp - 0x830]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x189c]
call fcn.00406fea
mov ebx, dword [ebp - 0x1880]
lea eax, [ebp - 0x189c]
push edi
push eax
mov ecx, ebx
mov byte [ebp - 4], 5
call fcn.004ad5c2
mov ecx, eax
call fcn.004adb3d
mov ecx, dword [ebp - 0x189c]
lea ecx, [ecx - 0x10]
call fcn.00407189
lea ecx, [ebp - 0x18b0]
call fcn.004ad684
jmp 0x465d15
mov ebx, dword [ebp - 0x1880]
xor eax, eax
mov dword [ebp - 0x187c], eax
mov dword [ebp - 0x1878], eax
mov dword [ebp - 0x1874], eax
lea eax, [ebp - 0x187c]
mov byte [ebp - 4], 6
push eax
mov edx, esi
lea ecx, [ebp - 0x18d8]
call fcn.0042c750
pop ecx
mov ecx, dword [ebp - 0x18d0]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov edi, dword [ebp - 0x187c]
jmp 0x465e51
push 0x820
lea eax, [ebp - 0x1870]
push 0
push eax
call fcn.004d9f30
add esp, 0xc
lea eax, [ebp - 0x1870]
push 0x410
push eax
push dword [edi]
push esi
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
test eax, eax
je 0x465e48
push 0x820
lea eax, [ebp - 0x1050]
push 0
push eax
call fcn.004d9f30
add esp, 0xc
lea eax, [ebp - 0x1050]
push 0x410
push eax
lea eax, [ebp - 0x1870]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea eax, [ebp - 0x830]
push eax
lea ecx, [ebp - 0x18a0]
call fcn.00406fea
lea eax, [ebp - 0x18a0]
mov byte [ebp - 4], 7
push eax
mov ecx, ebx
call fcn.004ad5c2
push ecx
mov ebx, eax
mov ecx, esp
lea eax, [ebp - 0x1050]
push eax
call fcn.00406fea
lea ecx, [ebp - 0x18a8]
call fcn.004297db
pop ecx
push eax
mov ecx, ebx
mov byte [ebp - 4], 8
call fcn.00409159
mov ebx, eax
lea eax, [ebp - 0x1050]
push eax
call fcn.004ddaa2
pop ecx
push eax
lea eax, [ebp - 0x1050]
mov ecx, ebx
push eax
call fcn.00406efb
mov ecx, dword [ebp - 0x18a8]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x18a0]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov ebx, dword [ebp - 0x1880]
add edi, 4
cmp edi, dword [ebp - 0x1878]
jne 0x465d5b
lea ecx, [ebp - 0x187c]
call fcn.004a9173
xor ebx, ebx
push esi
mov byte [ebp - 4], bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x1880]
mov ecx, dword [ebp - 0x18a4]
mov edx, dword [ebp - 0x1898]
inc ecx
mov dword [ebp - 0x18a4], ecx
cmp ecx, dword [ebp - 0x1888]
jb 0x465bf3
mov ebx, dword [ebp - 0x188c]
and dword [ebx], 0
lea ecx, [ebx + 8]
and dword [ebx + 4], 0
call fcn.0040687a
lea ecx, [ebp - 0x1898]
call fcn.004a9173
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d818b
leave
ret