Function at 0x1014d2b
Capabilities:
Impersonate user

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102609e
mov eax, dword fs:[0]
push eax
mov eax, 0x1024
call fcn.01024b80
mov eax, dword [0x102b01c]
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 eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1020], ecx
mov dword [ebp - 0x1014], eax
mov dword [ebp - 0x102c], esi
test eax, eax
jne 0x1014db3
push eax
push 0x54f
push 0x10048ec
push 0x8be
push 0x10045e8
call fcn.0100a7b1
xor eax, eax
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.0100a071
leave
ret 8
test esi, esi
jne 0x1014dc9
push eax
push 0x54f
push 0x10048e0
push 0x8bf
jmp 0x1014d8b
mov eax, dword [0x102b00c]
mov edi, 0x102b00c
mov ebx, 0x200000
cmp eax, edi
je 0x1014df9
test dword [eax + 0x1c], ebx
je 0x1014df9
push ecx
push 0x10045d4
push 0x58
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019984
mov eax, dword [0x102b00c]
mov ecx, dword [ebp - 0x1020]
cmp dword [ecx + 0x2484], 0
jne 0x1014e2b
cmp eax, edi
je 0x1014e23
test dword [eax + 0x1c], ebx
je 0x1014e23
push 0x10045d4
push 0x59
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100904c
xor eax, eax
inc eax
jmp 0x1014d97
cmp eax, edi
je 0x1014e46
test dword [eax + 0x1c], ebx
je 0x1014e46
push 0x10045d4
push 0x5a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100904c
mov ecx, dword [ebp - 0x1020]
and dword [esi], 0
push 0x1773
call fcn.010133f8
mov ecx, dword [ebp - 0x1020]
mov esi, eax
push 0x1774
mov dword [ebp - 0x1024], esi
call fcn.010133f8
mov ecx, eax
mov dword [ebp - 0x1018], ecx
test esi, esi
jne 0x1014e92
push esi
push 0x54f
push 0x10048d4
push 0x8e1
jmp 0x1014d8b
test ecx, ecx
jne 0x1014eab
push ecx
push 0x54f
push 0x10048c8
push 0x8e2
jmp 0x1014d8b
lea eax, [ecx + 8]
lea ebx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x1014eb1
sub eax, ebx
sar eax, 1
cmp eax, 0x4ff
jbe 0x1014f01
mov eax, dword [0x102b00c]
mov esi, 0x8033816a
cmp eax, edi
je 0x1014ef0
test dword [eax + 0x1c], 0x400000
je 0x1014ef0
push esi
push 0x10045d4
push 0x5b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019984
mov ecx, dword [ebp - 0x1014]
mov eax, dword [ecx]
push esi
call dword [eax + 0x20]
jmp 0x1014d95
and dword [ebp - 0x101c], 0
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x101c]
push eax
push 0
push 3
lea edi, [ecx + 8]
push edi
add esi, 8
push 0x10048c4
push esi
mov dword [ebp - 0x1030], esi
call dword [sym.imp.ADVAPI32.dll_LogonUserW]
test eax, eax
jne 0x1014f8f
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x1014f6b
test dword [eax + 0x1c], 0x400000
je 0x1014f6b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x102b00c]
push 0x10045d4
push 0x5c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100fcda
mov ecx, dword [ebp - 0x1014]
mov eax, dword [ecx]
push 0x80338154
call dword [eax + 0x20]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x101c]
call fcn.0100b8f6
jmp 0x1014d95
push esi
mov edi, 0x10046fc
push edi
mov esi, 0x200
lea eax, [ebp - 0x810]
push esi
push eax
call fcn.0100b64f
add esp, 0x10
mov dword [ebp - 0x1028], eax
test eax, eax
je 0x101500b
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x1014fe2
test dword [eax + 0x1c], 0x400000
je 0x1014fe2
push dword [ebp - 0x1028]
push 0x10045d4
push 0x5d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019984
push dword [ebp - 0x1028]
mov eax, dword [ebp - 0x1014]
mov ecx, dword [eax]
push 0x1003ef0
push 0x4033c362
push 0x54f
push eax
call dword [ecx + 0x1c]
add esp, 0x14
jmp 0x1014f7b
mov eax, dword [ebp - 0x1020]
cmp dword [eax + 0x2488], 0
je 0x1015040
mov eax, dword [ebp - 0x102c]
mov dword [eax], ebx
mov eax, dword [ebp - 0x1018]
push 0
add eax, 8
push eax
lea eax, [ebp - 0x810]
push eax
push dword [ebp - 0x1014]
jmp 0x101516d
mov eax, dword [ebp - 0x1024]
add eax, 0x808
push eax
push dword [ebp - 0x1030]
mov dword [ebp - 0x1024], eax
call fcn.0100ac10
test eax, eax
je 0x1015082
mov eax, dword [ebp - 0x1018]
add eax, 8
push eax
lea eax, [ebp - 0x810]
push eax
push dword [ebp - 0x1014]
call fcn.0101c381
jmp 0x1015172
push dword [ebp - 0x1024]
lea eax, [ebp - 0x1010]
push edi
push esi
push eax
call fcn.0100b64f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10150fe
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x10150c7
test dword [eax + 0x1c], 0x400000
je 0x10150c7
push esi
push 0x10045d4
push 0x5e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019984
mov eax, dword [ebp - 0x1014]
mov ecx, dword [eax]
push esi
push 0x1003ef0
push 0x4033c362
push 0x54f
push eax
call dword [ecx + 0x1c]
add esp, 0x14
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x101c]
call fcn.0100b8f6
mov eax, esi
jmp 0x1014d97
mov esi, dword [ebp - 0x1014]
lea eax, [ebp - 0x1010]
push eax
push esi
call fcn.0101bfbe
test eax, eax
jne 0x1015151
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x1015149
test dword [eax + 0x1c], 0x400000
je 0x1015149
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x48]
push eax
mov eax, dword [0x102b00c]
push 0x10045d4
push 0x5f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019984
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x5c]
mov eax, dword [ebp - 0x102c]
mov dword [eax], ebx
mov eax, dword [ebp - 0x1018]
push 0
add eax, 8
push eax
lea eax, [ebp - 0x810]
push eax
push esi
call fcn.0101bc45
mov edx, dword [ebp - 0x1018]
mov ecx, 0x800
mov edi, ecx
add edx, 8
mov byte [edx], 0
inc edx
dec edi
jne 0x1015182
mov edx, ecx
mov ecx, dword [ebp - 0x1018]
add ecx, 0x808
mov byte [ecx], 0
inc ecx
dec edx
jne 0x1015197
mov esi, eax
jmp 0x10150e8