Function at 0x1084bde
Capabilities:
Impersonate user

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1084c10
test byte [eax + 0x1c], 1
je 0x1084c10
cmp byte [eax + 0x19], 4
jb 0x1084c10
push 0x10080dc
push 0x1c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
push esi
mov esi, dword [ebp + 0x14]
push edi
xor edi, edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
mov byte [ebp - 1], 0
mov byte [ebp - 2], 0
cmp esi, edi
jne 0x1084c40
push 0x1008268
push 0x1e3
push 0x100816c
call fcn.0107b644
or dword [esi], 0xffffffff
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.01084658
cmp eax, edi
mov dword [ebp + 8], eax
jl 0x1084df1
mov esi, dword [sym.imp.ADVAPI32.dll_LogonUserW]
push ebx
lea eax, [ebp - 8]
push eax
push edi
push 8
push dword [ebp + 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call esi
test eax, eax
jne 0x1084dc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0xffff
mov edi, 0x80070000
test eax, eax
jle 0x1084c97
and eax, ebx
or eax, edi
mov dword [ebp + 8], eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1084cc7
test byte [eax + 0x1c], 1
je 0x1084cc7
cmp byte [eax + 0x19], 2
jb 0x1084cc7
push dword [ebp + 8]
push 0x10080dc
push 0x1d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
cmp dword [ebp + 8], 0x8007052e
je 0x1084ce6
cmp dword [ebp + 8], 0x8007051f
je 0x1084ce6
cmp dword [ebp + 8], 0x8007052f
jne 0x1084df0
and dword [ebp + 8], 0
lea eax, [ebp - 8]
push eax
push 3
push 9
push dword [ebp + 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call esi
test eax, eax
jne 0x1084d50
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1084d0f
and eax, ebx
or eax, edi
mov dword [ebp + 8], eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1084df0
test byte [eax + 0x1c], 1
je 0x1084df0
cmp byte [eax + 0x19], 2
jb 0x1084df0
push dword [ebp + 8]
push 0x10080dc
push 0x1e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
jmp 0x1084df0
cmp dword [ebp + 0x10], 0
je 0x1084d9d
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x1084df0
lea eax, [ebp - 1]
push eax
push dword [ebp + 0x10]
mov byte [ebp - 2], 1
call fcn.0107be5e
mov dword [ebp + 8], eax
test eax, eax
jge 0x1084d8e
cmp eax, 0x80070005
jne 0x1084dd9
mov dword [ebp + 8], 0x8078006f
jmp 0x1084dd9
cmp byte [ebp - 1], 0
je 0x1084d9d
mov dword [ebp + 8], 0x8007052e
jmp 0x1084dd9
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1084dc7
test byte [eax + 0x1c], 1
je 0x1084dc7
cmp byte [eax + 0x19], 4
jb 0x1084dc7
push 0x10080dc
push 0x1f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x14]
or dword [ebp - 8], 0xffffffff
cmp byte [ebp - 2], 0
mov dword [ecx], eax
je 0x1084df0
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test eax, eax
jge 0x1084df0
push 0
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_RaiseException]
pop ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
mov esi, dword [sym.imp.ole32.dll_CoTaskMemFree]
or dword [ebp - 8], 0xffffffff
call esi
push dword [ebp - 0x10]
call esi
mov eax, dword [0x111024c]
pop edi
pop esi
cmp eax, 0x111024c
je 0x1084e3a
test byte [eax + 0x1c], 1
je 0x1084e3a
cmp byte [eax + 0x19], 4
jb 0x1084e3a
push 0x10080dc
push 0x20
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov eax, dword [ebp + 8]
leave
ret 0x10