Function at 0x1014fcb
Capabilities:
Impersonate user

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1026308
mov eax, dword fs:[0]
push eax
mov eax, 0x1024
call fcn.01024da0
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 0x1015053
push eax
push 0x54f
push 0x10048c8
push 0x8be
push 0x10045b8
call fcn.0100a7c1
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.0100a07f
leave
ret 8
test esi, esi
jne 0x1015069
push eax
push 0x54f
push 0x10048bc
push 0x8bf
jmp 0x101502b
mov eax, dword [0x102b00c]
mov edi, 0x102b00c
mov ebx, 0x200000
cmp eax, edi
je 0x1015099
test dword [eax + 0x1c], ebx
je 0x1015099
push ecx
push 0x10045a8
push 0x58
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a936
mov eax, dword [0x102b00c]
mov ecx, dword [ebp - 0x1020]
cmp dword [ecx + 0x2484], 0
jne 0x10150cb
cmp eax, edi
je 0x10150c3
test dword [eax + 0x1c], ebx
je 0x10150c3
push 0x10045a8
push 0x59
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100905c
xor eax, eax
inc eax
jmp 0x1015037
cmp eax, edi
je 0x10150e6
test dword [eax + 0x1c], ebx
je 0x10150e6
push 0x10045a8
push 0x5a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100905c
mov ecx, dword [ebp - 0x1020]
and dword [esi], 0
push 0x1773
call fcn.010136c1
mov ecx, dword [ebp - 0x1020]
mov esi, eax
push 0x1774
mov dword [ebp - 0x1024], esi
call fcn.010136c1
mov ecx, eax
mov dword [ebp - 0x1018], ecx
test esi, esi
jne 0x1015132
push esi
push 0x54f
push 0x10048b0
push 0x8e1
jmp 0x101502b
test ecx, ecx
jne 0x101514b
push ecx
push 0x54f
push 0x10048a4
push 0x8e2
jmp 0x101502b
lea eax, [ecx + 8]
lea ebx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x1015151
sub eax, ebx
sar eax, 1
cmp eax, 0x4ff
jbe 0x10151a1
mov eax, dword [0x102b00c]
mov esi, 0x8033816a
cmp eax, edi
je 0x1015190
test dword [eax + 0x1c], 0x400000
je 0x1015190
push esi
push 0x10045a8
push 0x5b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a936
mov ecx, dword [ebp - 0x1014]
mov eax, dword [ecx]
push esi
call dword [eax + 0x20]
jmp 0x1015035
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 0x10048a0
push esi
mov dword [ebp - 0x1030], esi
call dword [sym.imp.ADVAPI32.dll_LogonUserW]
test eax, eax
jne 0x101522f
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x101520b
test dword [eax + 0x1c], 0x400000
je 0x101520b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x102b00c]
push 0x10045a8
push 0x5c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100ff68
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.0100c3d6
jmp 0x1015035
push esi
mov edi, 0x10046cc
push edi
mov esi, 0x200
lea eax, [ebp - 0x810]
push esi
push eax
call fcn.0100b714
add esp, 0x10
mov dword [ebp - 0x1028], eax
test eax, eax
je 0x10152ab
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x1015282
test dword [eax + 0x1c], 0x400000
je 0x1015282
push dword [ebp - 0x1028]
push 0x10045a8
push 0x5d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a936
push dword [ebp - 0x1028]
mov eax, dword [ebp - 0x1014]
mov ecx, dword [eax]
push 0x1003ec8
push 0x4033c362
push 0x54f
push eax
call dword [ecx + 0x1c]
add esp, 0x14
jmp 0x101521b
mov eax, dword [ebp - 0x1020]
cmp dword [eax + 0x2488], 0
je 0x10152e0
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 0x101540d
mov eax, dword [ebp - 0x1024]
add eax, 0x808
push eax
push dword [ebp - 0x1030]
mov dword [ebp - 0x1024], eax
call fcn.0100ac86
test eax, eax
je 0x1015322
mov eax, dword [ebp - 0x1018]
add eax, 8
push eax
lea eax, [ebp - 0x810]
push eax
push dword [ebp - 0x1014]
call fcn.0101c5b5
jmp 0x1015412
push dword [ebp - 0x1024]
lea eax, [ebp - 0x1010]
push edi
push esi
push eax
call fcn.0100b714
mov esi, eax
add esp, 0x10
test esi, esi
je 0x101539e
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x1015367
test dword [eax + 0x1c], 0x400000
je 0x1015367
push esi
push 0x10045a8
push 0x5e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a936
mov eax, dword [ebp - 0x1014]
mov ecx, dword [eax]
push esi
push 0x1003ec8
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.0100c3d6
mov eax, esi
jmp 0x1015037
mov esi, dword [ebp - 0x1014]
lea eax, [ebp - 0x1010]
push eax
push esi
call fcn.0101c1f2
test eax, eax
jne 0x10153f1
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x10153e9
test dword [eax + 0x1c], 0x400000
je 0x10153e9
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x48]
push eax
mov eax, dword [0x102b00c]
push 0x10045a8
push 0x5f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a936
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.0101be7c
mov edx, dword [ebp - 0x1018]
mov ecx, 0x800
mov edi, ecx
add edx, 8
mov byte [edx], 0
inc edx
dec edi
jne 0x1015422
mov edx, ecx
mov ecx, dword [ebp - 0x1018]
add ecx, 0x808
mov byte [ecx], 0
inc ecx
dec edx
jne 0x1015437
mov esi, eax
jmp 0x1015388