Function at 0x1019e41
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x103e010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x228], eax
xor eax, eax
mov edi, ebx
stosd dword es:[edi], eax
xor esi, esi
stosd dword es:[edi], eax
push dword [ecx + 0x1194]
xor eax, eax
push esi
push 0x410
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x210], esi
mov word [ebp - 0x20c], ax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x224], eax
cmp eax, esi
jne 0x1019eed
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x1019ec4
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x101a2c6
test byte [eax + 0x1c], 1
je 0x101a2c6
push esi
push 0x1003c2c
push 0x5c
jmp 0x101a2b6
lea ecx, [ebp - 0x214]
push ecx
push 0x20008
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1019f41
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x1019f18
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x101a2c6
test byte [eax + 0x1c], 1
je 0x101a2c6
push esi
push 0x1003c2c
push 0x5d
jmp 0x101a2b6
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x210]
push eax
push esi
push esi
push 1
push dword [ebp - 0x214]
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x101a28a
call esi
cmp eax, 0x7a
jne 0x101a28a
push dword [ebp - 0x210]
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x220], eax
test eax, eax
jne 0x1019fc4
mov eax, dword [section..data]
cmp eax, section..data
je 0x101a2e9
test byte [eax + 0x1c], 1
je 0x101a2ca
push 0x8007000e
push 0x1003c2c
push 0x5f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
mov eax, dword [section..data]
jmp 0x101a2ca
lea ecx, [ebp - 0x210]
push ecx
push dword [ebp - 0x210]
push eax
push 1
push dword [ebp - 0x214]
call edi
test eax, eax
jne 0x101a019
call esi
test eax, eax
jle 0x1019ff0
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x101a2c6
test byte [eax + 0x1c], 1
je 0x101a2c6
push esi
push 0x1003c2c
push 0x60
jmp 0x101a2b6
lea eax, [ebp - 0x218]
push eax
push 0x20008
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x101a06e
call esi
test eax, eax
jle 0x101a045
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x101a2c6
test byte [eax + 0x1c], 1
je 0x101a2c6
push esi
push 0x1003c2c
push 0x61
jmp 0x101a2b6
lea eax, [ebp - 0x210]
push eax
push 0
push 0
push 1
push dword [ebp - 0x218]
call edi
test eax, eax
jne 0x101a25c
call esi
cmp eax, 0x7a
jne 0x101a25c
push dword [ebp - 0x210]
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x21c], eax
test eax, eax
jne 0x101a0dd
mov eax, dword [section..data]
cmp eax, section..data
je 0x101a2e9
test byte [eax + 0x1c], 1
je 0x101a2ca
push 0x1003c2c
push 0x63
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
jmp 0x1019fba
lea ecx, [ebp - 0x210]
push ecx
push dword [ebp - 0x210]
push eax
push 1
push dword [ebp - 0x218]
call edi
test eax, eax
jne 0x101a132
call esi
test eax, eax
jle 0x101a109
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x101a2c6
test byte [eax + 0x1c], 1
je 0x101a2c6
push esi
push 0x1003c2c
push 0x64
jmp 0x101a2b6
mov eax, dword [ebp - 0x220]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x21c]
mov edx, dword [eax]
mov eax, dword [eax + 4]
push ecx
push edx
mov dword [ebp - 0x228], eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x101a186
mov eax, dword [section..data]
cmp eax, section..data
je 0x101a2e9
test byte [eax + 0x1c], 1
je 0x101a2ca
push 0x1003c2c
push 0x65
jmp 0x101a0cd
push 0x104
lea eax, [ebp - 0x20c]
push eax
xor edi, edi
push edi
push dword [ebp - 0x224]
call sub.KERNEL32.dll_K32GetModuleFileNameExW
test eax, eax
jne 0x101a1dd
call esi
cmp eax, edi
jle 0x101a1b4
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x101a2c6
test byte [eax + 0x1c], 1
je 0x101a2c6
push esi
push 0x1003c2c
push 0x66
jmp 0x101a2b6
push edi
push edi
push edi
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.01013f38
mov esi, eax
cmp esi, edi
jge 0x101a232
mov eax, dword [section..data]
cmp eax, section..data
je 0x101a2c6
test byte [eax + 0x1c], 1
je 0x101a2c6
push esi
lea ecx, [ebp - 0x20c]
push ecx
push 0x1003c2c
push 0x67
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01018c98
jmp 0x101a2c1
mov eax, dword [ebp - 0x258]
mov ecx, eax
shr ecx, 0x10
mov word [ebx + 2], ax
mov eax, dword [ebp - 0x254]
mov word [ebx], cx
mov ecx, eax
shr ecx, 0x10
mov word [ebx + 4], cx
mov word [ebx + 6], ax
jmp 0x101a2e9
call esi
test eax, eax
jle 0x101a26c
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x101a2c6
test byte [eax + 0x1c], 1
je 0x101a2c6
push esi
push 0x1003c2c
push 0x62
jmp 0x101a2b6
call esi
test eax, eax
jle 0x101a29a
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x101a2c6
test byte [eax + 0x1c], 1
je 0x101a2c6
push esi
push 0x1003c2c
push 0x5e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
mov eax, dword [section..data]
test esi, esi
jge 0x101a2e9
cmp eax, section..data
je 0x101a2e9
test byte [eax + 0x1c], 2
je 0x101a2e9
push 0x1003c2c
push 0x68
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
cmp dword [ebp - 0x224], edi
je 0x101a301
push dword [ebp - 0x224]
call esi
cmp dword [ebp - 0x214], edi
je 0x101a317
push dword [ebp - 0x214]
call esi
mov dword [ebp - 0x214], edi
cmp dword [ebp - 0x218], edi
je 0x101a32d
push dword [ebp - 0x218]
call esi
mov dword [ebp - 0x218], edi
cmp dword [ebp - 0x220], edi
je 0x101a341
push dword [ebp - 0x220]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [ebp - 0x21c], edi
pop edi
pop esi
pop ebx
je 0x101a358
push dword [ebp - 0x21c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010084d5
leave
ret 8