Function at 0x102ed30
Capabilities:
Get user security identifier

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa64
mov eax, dword [0x107342c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax + 8]
push edi
mov dword [ebp - 0xa40], eax
lea eax, [ebp - 0xa50]
xor edi, edi
push eax
lea eax, [ebp - 0x414]
push eax
mov dword [ebp - 0xa54], edi
mov dword [ebp - 0xa44], edi
mov dword [ebp - 0xa4c], edi
mov dword [ebp - 0xa30], edi
mov dword [ebp - 0xa38], edi
mov dword [ebp - 0xa50], 0x104
call dword [0x1001278]
test eax, eax
jne 0x102ed9d
mov eax, 0x4d3
jmp 0x102f23d
push ebx
mov ebx, dword [fcn.01001410]
lea eax, [ebp - 0x414]
push eax
call ebx
push dword [esi + 0xc8]
mov dword [ebp - 0xa34], eax
call ebx
mov ecx, dword [ebp - 0xa34]
lea eax, [ecx + eax + 2]
cmp eax, 0x104
mov dword [ebp - 0xa50], eax
jbe 0x102eddc
mov eax, 0x4d3
jmp 0x102f23c
push dword [esi + 0xc8]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x824]
push 0x1010f64
push eax
call dword [fcn.010018ec]
mov ebx, dword [fcn.01001410]
add esp, 0x10
push dword [esi + 0xcc]
call ebx
push dword [esi + 0xc8]
mov dword [ebp - 0xa34], eax
call ebx
mov ecx, dword [ebp - 0xa34]
lea eax, [ecx + eax + 2]
cmp eax, 0x104
mov dword [ebp - 0xa50], eax
ja 0x102edd2
push dword [esi + 0xc8]
lea eax, [ebp - 0xa2c]
push dword [esi + 0xcc]
push 0x1010f64
push eax
call dword [fcn.010018ec]
add esp, 0x10
lea eax, [ebp - 0x414]
push eax
push dword [esi + 0xcc]
call dword [0x1001400]
test eax, eax
je 0x102edd2
lea eax, [ebp - 0xa48]
push eax
lea eax, [ebp - 0xa4c]
push eax
push edi
lea eax, [ebp - 0xa44]
push eax
push edi
push dword [esi + 0xc8]
push edi
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x102ef59
call dword [fcn.0100149c]
cmp eax, 0xea
je 0x102eeaf
cmp eax, 0x7a
jne 0x102f23c
cmp dword [ebp - 0xa44], edi
mov ebx, dword [fcn.01001418]
jbe 0x102eed5
push dword [ebp - 0xa44]
push 0x40
call ebx
cmp eax, edi
mov dword [ebp - 0xa30], eax
je 0x102edd2
mov eax, dword [ebp - 0xa4c]
cmp eax, edi
jbe 0x102eefd
add eax, eax
push eax
push 0x40
call ebx
mov ebx, eax
cmp ebx, edi
jne 0x102ef03
push dword [ebp - 0xa30]
call dword [fcn.010014a0]
jmp 0x102edd2
mov ebx, dword [ebp - 0xa38]
lea eax, [ebp - 0xa48]
push eax
lea eax, [ebp - 0xa4c]
push eax
push ebx
lea eax, [ebp - 0xa44]
push eax
push dword [ebp - 0xa30]
push dword [esi + 0xc8]
push edi
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x102ef3a
mov dword [ebp - 0xa48], 7
cmp dword [ebp - 0xa30], edi
je 0x102ef4e
push dword [ebp - 0xa30]
call dword [fcn.010014a0]
cmp ebx, edi
je 0x102ef59
push ebx
call dword [fcn.010014a0]
cmp dword [ebp - 0xa48], 1
jne 0x102edd2
mov eax, dword [esi + 0xcc]
mov dword [ebp - 0xa5c], eax
mov eax, dword [esi + 0xc8]
mov dword [ebp - 0xa58], eax
lea eax, [ebp - 0xa5c]
push eax
push edi
lea eax, [ebp - 0xa3c]
push eax
push 0x400
push 0xc000044c
push edi
call dword [fcn.0100123c]
push eax
push 0x2900
call dword [0x100130c]
test eax, eax
je 0x102edd2
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x5dd
push edi
call dword [0x10018e0]
push 0x24
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0xa3c]
push edi
push dword [ebp - 0xa40]
call fcn.0103be12
push dword [ebp - 0xa3c]
mov ebx, eax
call dword [fcn.010014a0]
cmp ebx, 7
jne 0x102f002
mov eax, 0x4de
jmp 0x102f23c
cmp ebx, 6
je 0x102f011
mov eax, 0x4c7
jmp 0x102f23c
push dword [esi + 0x24]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
mov esi, dword [0x1001874]
mov ebx, dword [0x1001910]
je 0x102f073
push 0x7f02
push edi
call ebx
push eax
call esi
mov dword [ebp - 0xa34], eax
lea eax, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0x824]
push eax
push edi
push edi
call dword [0x1001764]
mov dword [ebp - 0xa38], eax
call dword [fcn.0100149c]
push dword [ebp - 0xa34]
mov dword [ebp - 0xa30], eax
call esi
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
jmp 0x102f083
mov dword [ebp - 0xa38], edi
mov dword [ebp - 0xa30], 5
cmp dword [ebp - 0xa38], edi
jne 0x102f207
cmp dword [ebp - 0xa30], 5
jne 0x102f18c
mov eax, dword [ebp - 0xa40]
lea ecx, [ebp - 0xa64]
push ecx
push 0x102dac9
push edi
push 0x1f4
push dword [0x107447c]
mov dword [ebp - 0xa60], eax
push eax
call fcn.0103be70
cmp eax, 1
jne 0x102f007
push dword [ebp - 0xa64]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x102f129
push 0x7f02
push edi
call ebx
push eax
call esi
mov dword [ebp - 0xa34], eax
lea eax, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0x824]
push eax
push 4
push edi
call dword [0x1001764]
mov dword [ebp - 0xa38], eax
call dword [fcn.0100149c]
push dword [ebp - 0xa34]
mov dword [ebp - 0xa30], eax
call esi
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
jmp 0x102f139
mov dword [ebp - 0xa38], edi
mov dword [ebp - 0xa30], 5
cmp dword [ebp - 0xa30], 5
jne 0x102f17a
push 0x104
lea eax, [ebp - 0x61c]
push eax
push 0x5fa
push edi
call dword [0x10018e0]
push edi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push eax
push edi
push dword [ebp - 0xa40]
call fcn.0103be12
jmp 0x102f09c
cmp dword [ebp - 0xa38], edi
mov dword [ebp - 0xa54], 1
jne 0x102f207
mov eax, dword [ebp - 0xa30]
mov dword [ebp - 0xa5c], eax
lea eax, [ebp - 0xa5c]
push eax
push edi
lea eax, [ebp - 0xa3c]
push eax
push 0x400
push 0xc000044d
push edi
call dword [fcn.0100123c]
push eax
push 0x2900
call dword [0x100130c]
test eax, eax
je 0x102edd2
push 0x30
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0xa3c]
push edi
push dword [ebp - 0xa40]
call fcn.0103be12
push dword [ebp - 0xa3c]
call dword [fcn.010014a0]
mov eax, dword [ebp - 0xa54]
neg eax
sbb eax, eax
and eax, 0xfffffff4
add eax, 0x4d3
jmp 0x102f23c
push 0x104
lea eax, [ebp - 0x61c]
push eax
push 0x5fb
push edi
call dword [0x10018e0]
push edi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push eax
push edi
push dword [ebp - 0xa40]
call fcn.0103be12
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0103e4d8
leave
ret 4