Function at 0x44910c
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe90
mov eax, 0x522085
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
call fcn.004d57f0
xor edx, edx
lea edi, [ebp - 0x164]
mov dword [ebp - 0x28], edx
push esi
mov esi, 0x521f81
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
pop esi
xor eax, eax
mov dword [ebp - 0x30], eax
xor edx, edx
mov dword [ebp - 0x34], edx
xor ecx, ecx
mov dword [ebp - 0x38], ecx
xor eax, eax
mov dword [ebp - 0x3c], eax
xor edx, edx
mov dword [ebp - 0x40], edx
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], eax
xor edx, edx
xor eax, eax
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x5c], eax
xor edi, edi
mov dword [ebp - 0x60], 4
mov word [ebp - 0x14], 8
xor ebx, ebx
test esi, esi
je 0x4495bf
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x4495bf
mov cl, byte [esi]
test cl, cl
je 0x4495bf
mov eax, dword [ebp + 0xc]
dec eax
je 0x4491d6
dec eax
je 0x4491e9
dec eax
je 0x4491fc
dec eax
je 0x44920f
mov edx, dword [ebp + 0xc]
push esi
push edi
xor eax, eax
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea esi, [ebp - 0x164]
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
jmp 0x449220
lea eax, [ebp - 0x164]
push eax
push 1
call fcn.004475cc
add esp, 8
jmp 0x449220
lea edx, [ebp - 0x164]
push edx
push 2
call fcn.004475cc
add esp, 8
jmp 0x449220
lea ecx, [ebp - 0x164]
push ecx
push 3
call fcn.004475cc
add esp, 8
jmp 0x449220
lea eax, [ebp - 0x164]
push eax
push 4
call fcn.004475cc
add esp, 8
mov dl, byte [ebp - 0x164]
test dl, dl
je 0x4495bf
push 0x5ec1d9
push 0x5215b2
call sub.KERNEL32.dll_GetModuleHandleA
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x4495bf
push 0x5ec1ef
push 0x5215b2
call sub.KERNEL32.dll_GetModuleHandleA
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x4495bf
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x34]
push ecx
push eax
mov edx, dword [ebp - 0x30]
lea ecx, [ebp - 0x3c]
push edx
push ecx
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x164]
push eax
push edx
push 0
call sub.ADVAPI32.dll_LookupAccountNameA
test eax, eax
jne 0x4495bf
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x4495bf
mov ecx, dword [ebp - 0x3c]
push ecx
push 8
call sub.KERNEL32.dll_GetProcessHeap
push eax
call sub.KERNEL32.dll_HeapAlloc
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x4495bf
mov edx, dword [ebp - 0x34]
push edx
push 8
call sub.KERNEL32.dll_GetProcessHeap
push eax
call sub.KERNEL32.dll_HeapAlloc
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x4495bf
lea eax, [ebp - 0x2c]
lea edx, [ebp - 0x34]
push eax
push edx
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x3c]
push ecx
push eax
mov edx, dword [ebp - 0x38]
lea ecx, [ebp - 0x164]
push edx
push ecx
push 0
call sub.ADVAPI32.dll_LookupAccountNameA
test eax, eax
je 0x4495bf
lea eax, [ebp - 0x44]
push eax
push 0
mov edx, dword [ebp - 0x40]
push edx
mov ecx, dword [ebp - 0x60]
push ecx
push esi
call sub.ADVAPI32.dll_GetFileSecurityA
test eax, eax
jne 0x4495bf
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x4495bf
mov eax, dword [ebp - 0x44]
push eax
push 8
call sub.KERNEL32.dll_GetProcessHeap
push eax
call sub.KERNEL32.dll_HeapAlloc
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x40]
test edx, edx
je 0x4495bf
lea ecx, [ebp - 0x44]
push ecx
mov eax, dword [ebp - 0x44]
push eax
mov edx, dword [ebp - 0x40]
push edx
mov ecx, dword [ebp - 0x60]
push ecx
push esi
call sub.ADVAPI32.dll_GetFileSecurityA
test eax, eax
je 0x4495bf
lea eax, [ebp - 0x50]
push eax
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x4c]
push ecx
mov eax, dword [ebp - 0x40]
push eax
call sub.ADVAPI32.dll_GetSecurityDescriptorDacl
test eax, eax
je 0x4495bf
xor edx, edx
xor ecx, ecx
mov dword [ebp - 0x170], edx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], 8
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x4493b2
xor edx, edx
mov dword [ebp - 0x4c], edx
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
je 0x4493d5
push 2
lea eax, [ebp - 0x170]
push 0xc
push eax
mov edx, dword [ebp - 0x48]
push edx
call sub.ADVAPI32.dll_GetAclInformation
test eax, eax
je 0x4495bf
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
je 0x44950f
mov eax, dword [ebp - 0x170]
test eax, eax
je 0x44950f
xor edx, edx
mov dword [ebp - 0x58], edx
jmp 0x4494fe
lea ecx, [ebp - 0x54]
push ecx
mov eax, dword [ebp - 0x58]
push eax
mov edx, dword [ebp - 0x48]
push edx
call sub.ADVAPI32.dll_GetAce
test eax, eax
je 0x4495bf
mov ecx, dword [ebp - 0x54]
test byte [ecx + 1], 0x10
je 0x44941e
mov dl, 1
jmp 0x449420
xor edx, edx
mov eax, dword [ebp - 0x54]
test byte [eax], 1
je 0x44942c
xor eax, eax
jmp 0x44942e
mov al, 1
mov ecx, dword [ebp - 0x54]
mov esi, dword [ecx + 4]
mov word [ebp - 0x14], 8
test esi, 1
je 0x44946a
test edi, edi
jne 0x44946a
test dl, dl
je 0x44945c
test al, al
je 0x449455
mov edi, 2
jmp 0x44946a
mov edi, 0xfffffffe
jmp 0x44946a
test al, al
je 0x449467
mov edi, 1
jmp 0x44946a
or edi, 0xffffffff
test esi, 2
je 0x44949a
test ebx, ebx
jne 0x44949a
test dl, dl
je 0x44948c
test al, al
je 0x449485
mov ebx, 2
jmp 0x44949a
mov ebx, 0xfffffffe
jmp 0x44949a
test al, al
je 0x449497
mov ebx, 1
jmp 0x44949a
or ebx, 0xffffffff
test esi, 0x20
je 0x4494d7
mov ecx, dword [ebp - 0x5c]
test ecx, ecx
jne 0x4494d7
test dl, dl
je 0x4494c3
test al, al
je 0x4494ba
mov dword [ebp - 0x5c], 2
jmp 0x4494d7
mov dword [ebp - 0x5c], 0xfffffffe
jmp 0x4494d7
test al, al
je 0x4494d0
mov dword [ebp - 0x5c], 1
jmp 0x4494d7
mov dword [ebp - 0x5c], 0xffffffff
test dl, dl
jne 0x4494fb
test al, al
je 0x4494ed
test byte [ebp + 0x11], 4
je 0x4494fb
mov dword [ebp - 0x28], esi
jmp 0x4495bf
test byte [ebp + 0x11], 8
je 0x4494fb
mov dword [ebp - 0x28], esi
jmp 0x4495bf
inc dword [ebp - 0x58]
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x170]
cmp eax, edx
jb 0x4493f8
sub edi, 0xfffffffe
je 0x44953c
dec edi
je 0x449533
sub edi, 2
je 0x449521
dec edi
je 0x44952a
jmp 0x449543
or dword [ebp - 0x28], 0x1000
jmp 0x449543
or dword [ebp - 0x28], 0x2000
jmp 0x449543
or dword [ebp - 0x28], 0x4000
jmp 0x449543
or dword [ebp - 0x28], 0x8000
sub ebx, 0xfffffffe
je 0x449570
dec ebx
je 0x449567
sub ebx, 2
je 0x449555
dec ebx
je 0x44955e
jmp 0x449577
or dword [ebp - 0x28], 0x10000
jmp 0x449577
or dword [ebp - 0x28], 0x20000
jmp 0x449577
or dword [ebp - 0x28], 0x40000
jmp 0x449577
or dword [ebp - 0x28], 0x80000
mov eax, dword [ebp - 0x5c]
sub eax, 0xfffffffe
je 0x4495a7
dec eax
je 0x44959e
sub eax, 2
je 0x44958c
dec eax
je 0x449595
jmp 0x4495ae
or dword [ebp - 0x28], 0x100000
jmp 0x4495ae
or dword [ebp - 0x28], 0x200000
jmp 0x4495ae
or dword [ebp - 0x28], 0x400000
jmp 0x4495ae
or dword [ebp - 0x28], 0x800000
test byte [ebp + 0x11], 4
jne 0x4495ba
test byte [ebp + 0x11], 8
je 0x4495bf
xor edx, edx
mov dword [ebp - 0x28], edx
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x4495d7
mov eax, dword [ebp - 0x38]
push eax
push 0
call sub.KERNEL32.dll_GetProcessHeap
push eax
call sub.KERNEL32.dll_HeapFree
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x4495ef
mov ecx, dword [ebp - 0x30]
push ecx
push 0
call sub.KERNEL32.dll_GetProcessHeap
push eax
call sub.KERNEL32.dll_HeapFree
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x449607
mov edx, dword [ebp - 0x40]
push edx
push 0
call sub.KERNEL32.dll_GetProcessHeap
push eax
call sub.KERNEL32.dll_HeapFree
mov word [ebp - 0x14], 0
jmp 0x44962e
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
mov esp, ebp
mov edi, dword [ebp - 0x17c]
mov esi, dword [ebp - 0x178]
mov ebx, dword [ebp - 0x174]
pop ebp
ret