Function at 0x1084c1b
Capabilities:
Impersonate user

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1084c4d
test byte [eax + 0x1c], 1
je 0x1084c4d
cmp byte [eax + 0x19], 4
jb 0x1084c4d
push 0x10080cc
push 0x1c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
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 0x1084c7d
push 0x1008258
push 0x1e3
push 0x100815c
call fcn.0107b4be
or dword [esi], 0xffffffff
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.01084695
cmp eax, edi
mov dword [ebp + 8], eax
jl 0x1084e2e
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 0x1084e04
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0xffff
mov edi, 0x80070000
test eax, eax
jle 0x1084cd4
and eax, ebx
or eax, edi
mov dword [ebp + 8], eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1084d04
test byte [eax + 0x1c], 1
je 0x1084d04
cmp byte [eax + 0x19], 2
jb 0x1084d04
push dword [ebp + 8]
push 0x10080cc
push 0x1d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
cmp dword [ebp + 8], 0x8007052e
je 0x1084d23
cmp dword [ebp + 8], 0x8007051f
je 0x1084d23
cmp dword [ebp + 8], 0x8007052f
jne 0x1084e2d
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 0x1084d8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1084d4c
and eax, ebx
or eax, edi
mov dword [ebp + 8], eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1084e2d
test byte [eax + 0x1c], 1
je 0x1084e2d
cmp byte [eax + 0x19], 2
jb 0x1084e2d
push dword [ebp + 8]
push 0x10080cc
push 0x1e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
jmp 0x1084e2d
cmp dword [ebp + 0x10], 0
je 0x1084dda
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x1084e2d
lea eax, [ebp - 1]
push eax
push dword [ebp + 0x10]
mov byte [ebp - 2], 1
call fcn.0107bcd8
mov dword [ebp + 8], eax
test eax, eax
jge 0x1084dcb
cmp eax, 0x80070005
jne 0x1084e16
mov dword [ebp + 8], 0x8078006f
jmp 0x1084e16
cmp byte [ebp - 1], 0
je 0x1084dda
mov dword [ebp + 8], 0x8007052e
jmp 0x1084e16
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1084e04
test byte [eax + 0x1c], 1
je 0x1084e04
cmp byte [eax + 0x19], 4
jb 0x1084e04
push 0x10080cc
push 0x1f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
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 0x1084e2d
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test eax, eax
jge 0x1084e2d
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 [0x111124c]
pop edi
pop esi
cmp eax, 0x111124c
je 0x1084e77
test byte [eax + 0x1c], 1
je 0x1084e77
cmp byte [eax + 0x19], 4
jb 0x1084e77
push 0x10080cc
push 0x20
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov eax, dword [ebp + 8]
leave
ret 0x10