Function at 0x435db0
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56e879
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x5edd38]
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 ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x2c], ebx
mov ecx, ebx
mov dword [ebp - 0x20], 0
push eax
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
push 0x586454
mov dword [ebp - 4], 0
mov word [ebx], ax
call fcn.00408f30
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
push 0xf01ff
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x436007
mov edi, dword [ebp - 0x14]
xor esi, esi
mov dword [ebp - 0x28], esi
test edi, edi
je 0x435e73
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
cmp edi, 0xffffffff
je 0x435e6c
mov esi, edi
mov dword [ebp - 0x28], esi
call fcn.00412510
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x4c
mov dword [ebp - 4], 2
mov dword [ebp - 0x1c], 0x4c
call fcn.0041c49f
mov edi, eax
add esp, 4
mov dword [ebp - 0x30], edi
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 3
push eax
push dword [ebp - 0x1c]
push edi
push 1
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x435f09
push edi
call fcn.0041c2b1
add esp, 4
mov dword [ebp - 4], 4
test esi, esi
je 0x436007
cmp esi, 0xffffffff
je 0x436007
call fcn.00412510
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x436007
push 4
push 0x68
push str.D:DCBCBT_MainImportsOpenChromeChrome_src_basewin_scoped_handle.h
lea ecx, [ebp - 0xe0]
call fcn.00496330
push 0x5845bc
add eax, 8
mov dword [ebp - 0x20], 5
push eax
jmp 0x435ff4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push dword [edi]
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
jne 0x435f7a
push edi
call fcn.0041c2b1
add esp, 4
mov dword [ebp - 4], 5
test esi, esi
je 0x436007
cmp esi, 0xffffffff
je 0x436007
call fcn.00412510
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x436007
push 4
push 0x68
push str.D:DCBCBT_MainImportsOpenChromeChrome_src_basewin_scoped_handle.h
lea ecx, [ebp - 0xe0]
call fcn.00496330
push 0x5845bc
add eax, 8
mov dword [ebp - 0x20], 9
push eax
jmp 0x435ff4
mov edx, dword [ebp - 0x18]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x24], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x435f85
sub ecx, dword [ebp - 0x24]
sar ecx, 1
push ecx
push edx
mov ecx, ebx
call fcn.00408f30
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call fcn.0041c2b1
add esp, 4
mov dword [ebp - 4], 6
test esi, esi
je 0x436007
cmp esi, 0xffffffff
je 0x436007
call fcn.00412510
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x436007
push 4
push 0x68
push str.D:DCBCBT_MainImportsOpenChromeChrome_src_basewin_scoped_handle.h
lea ecx, [ebp - 0xe0]
call fcn.00496330
push 0x5845bc
mov dword [ebp - 0x20], 0x11
lea ecx, [eax + 8]
push ecx
call fcn.0047a5e0
add esp, 8
lea ecx, [ebp - 0xe0]
call fcn.004965b0
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.00401682
mov esp, ebp
pop ebp
ret