Function at 0x1014e2b
Capabilities:
Impersonate user

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102618e
mov eax, dword fs:[0]
push eax
mov eax, 0x1024
call fcn.01024c70
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 0x1014eb3
push eax
push 0x54f
push 0x1004978
push 0x8be
push 0x1004668
call fcn.0100a8b1
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.0100a16f
leave
ret 8
test esi, esi
jne 0x1014ec9
push eax
push 0x54f
push 0x100496c
push 0x8bf
jmp 0x1014e8b
mov eax, dword [0x102b00c]
mov edi, 0x102b00c
mov ebx, 0x200000
cmp eax, edi
je 0x1014ef9
test dword [eax + 0x1c], ebx
je 0x1014ef9
push ecx
push 0x1004658
push 0x58
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019a84
mov eax, dword [0x102b00c]
mov ecx, dword [ebp - 0x1020]
cmp dword [ecx + 0x2484], 0
jne 0x1014f2b
cmp eax, edi
je 0x1014f23
test dword [eax + 0x1c], ebx
je 0x1014f23
push 0x1004658
push 0x59
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100914c
xor eax, eax
inc eax
jmp 0x1014e97
cmp eax, edi
je 0x1014f46
test dword [eax + 0x1c], ebx
je 0x1014f46
push 0x1004658
push 0x5a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100914c
mov ecx, dword [ebp - 0x1020]
and dword [esi], 0
push 0x1773
call fcn.010134f8
mov ecx, dword [ebp - 0x1020]
mov esi, eax
push 0x1774
mov dword [ebp - 0x1024], esi
call fcn.010134f8
mov ecx, eax
mov dword [ebp - 0x1018], ecx
test esi, esi
jne 0x1014f92
push esi
push 0x54f
push 0x1004960
push 0x8e1
jmp 0x1014e8b
test ecx, ecx
jne 0x1014fab
push ecx
push 0x54f
push 0x1004954
push 0x8e2
jmp 0x1014e8b
lea eax, [ecx + 8]
lea ebx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x1014fb1
sub eax, ebx
sar eax, 1
cmp eax, 0x4ff
jbe 0x1015001
mov eax, dword [0x102b00c]
mov esi, 0x8033816a
cmp eax, edi
je 0x1014ff0
test dword [eax + 0x1c], 0x400000
je 0x1014ff0
push esi
push 0x1004658
push 0x5b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019a84
mov ecx, dword [ebp - 0x1014]
mov eax, dword [ecx]
push esi
call dword [eax + 0x20]
jmp 0x1014e95
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 0x1004950
push esi
mov dword [ebp - 0x1030], esi
call dword [sym.imp.ADVAPI32.dll_LogonUserW]
test eax, eax
jne 0x101508f
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x101506b
test dword [eax + 0x1c], 0x400000
je 0x101506b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x102b00c]
push 0x1004658
push 0x5c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100fdda
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.0100b9f6
jmp 0x1014e95
push esi
mov edi, 0x1004788
push edi
mov esi, 0x200
lea eax, [ebp - 0x810]
push esi
push eax
call fcn.0100b74f
add esp, 0x10
mov dword [ebp - 0x1028], eax
test eax, eax
je 0x101510b
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x10150e2
test dword [eax + 0x1c], 0x400000
je 0x10150e2
push dword [ebp - 0x1028]
push 0x1004658
push 0x5d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019a84
push dword [ebp - 0x1028]
mov eax, dword [ebp - 0x1014]
mov ecx, dword [eax]
push 0x1003f64
push 0x4033c362
push 0x54f
push eax
call dword [ecx + 0x1c]
add esp, 0x14
jmp 0x101507b
mov eax, dword [ebp - 0x1020]
cmp dword [eax + 0x2488], 0
je 0x1015140
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 0x101526d
mov eax, dword [ebp - 0x1024]
add eax, 0x808
push eax
push dword [ebp - 0x1030]
mov dword [ebp - 0x1024], eax
call fcn.0100ad10
test eax, eax
je 0x1015182
mov eax, dword [ebp - 0x1018]
add eax, 8
push eax
lea eax, [ebp - 0x810]
push eax
push dword [ebp - 0x1014]
call fcn.0101c47e
jmp 0x1015272
push dword [ebp - 0x1024]
lea eax, [ebp - 0x1010]
push edi
push esi
push eax
call fcn.0100b74f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10151fe
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x10151c7
test dword [eax + 0x1c], 0x400000
je 0x10151c7
push esi
push 0x1004658
push 0x5e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019a84
mov eax, dword [ebp - 0x1014]
mov ecx, dword [eax]
push esi
push 0x1003f64
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.0100b9f6
mov eax, esi
jmp 0x1014e97
mov esi, dword [ebp - 0x1014]
lea eax, [ebp - 0x1010]
push eax
push esi
call fcn.0101c0bb
test eax, eax
jne 0x1015251
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x1015249
test dword [eax + 0x1c], 0x400000
je 0x1015249
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x48]
push eax
mov eax, dword [0x102b00c]
push 0x1004658
push 0x5f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019a84
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.0101bd45
mov edx, dword [ebp - 0x1018]
mov ecx, 0x800
mov edi, ecx
add edx, 8
mov byte [edx], 0
inc edx
dec edi
jne 0x1015282
mov edx, ecx
mov ecx, dword [ebp - 0x1018]
add ecx, 0x808
mov byte [ecx], 0
inc ecx
dec edx
jne 0x1015297
mov esi, eax
jmp 0x10151e8