Function at 0x446ac8
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe90
mov eax, 0x50ee6d
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
call fcn.004cfcb8
xor edx, edx
lea edi, [ebp - 0x164]
mov dword [ebp - 0x28], edx
push esi
mov esi, 0x50ed69
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 0x446f7b
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x446f7b
mov cl, byte [esi]
test cl, cl
je 0x446f7b
mov eax, dword [ebp + 0xc]
dec eax
je 0x446b92
dec eax
je 0x446ba5
dec eax
je 0x446bb8
dec eax
je 0x446bcb
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 0x446bdc
lea eax, [ebp - 0x164]
push eax
push 1
call fcn.00444f88
add esp, 8
jmp 0x446bdc
lea edx, [ebp - 0x164]
push edx
push 2
call fcn.00444f88
add esp, 8
jmp 0x446bdc
lea ecx, [ebp - 0x164]
push ecx
push 3
call fcn.00444f88
add esp, 8
jmp 0x446bdc
lea eax, [ebp - 0x164]
push eax
push 4
call fcn.00444f88
add esp, 8
mov dl, byte [ebp - 0x164]
test dl, dl
je 0x446f7b
push 0x5d16af
push 0x5d16a2
call sub.KERNEL32.dll_GetModuleHandleA
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x446f7b
push 0x5d16d2
push 0x5d16c5
call sub.KERNEL32.dll_GetModuleHandleA
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x446f7b
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 0x446f7b
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x446f7b
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 0x446f7b
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 0x446f7b
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 0x446f7b
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 0x446f7b
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x446f7b
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 0x446f7b
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 0x446f7b
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 0x446f7b
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 0x446d6e
xor edx, edx
mov dword [ebp - 0x4c], edx
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
je 0x446d91
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 0x446f7b
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
je 0x446ecb
mov eax, dword [ebp - 0x170]
test eax, eax
je 0x446ecb
xor edx, edx
mov dword [ebp - 0x58], edx
jmp 0x446eba
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 0x446f7b
mov ecx, dword [ebp - 0x54]
test byte [ecx + 1], 0x10
je 0x446dda
mov dl, 1
jmp 0x446ddc
xor edx, edx
mov eax, dword [ebp - 0x54]
test byte [eax], 1
je 0x446de8
xor eax, eax
jmp 0x446dea
mov al, 1
mov ecx, dword [ebp - 0x54]
mov esi, dword [ecx + 4]
mov word [ebp - 0x14], 8
test esi, 1
je 0x446e26
test edi, edi
jne 0x446e26
test dl, dl
je 0x446e18
test al, al
je 0x446e11
mov edi, 2
jmp 0x446e26
mov edi, 0xfffffffe
jmp 0x446e26
test al, al
je 0x446e23
mov edi, 1
jmp 0x446e26
or edi, 0xffffffff
test esi, 2
je 0x446e56
test ebx, ebx
jne 0x446e56
test dl, dl
je 0x446e48
test al, al
je 0x446e41
mov ebx, 2
jmp 0x446e56
mov ebx, 0xfffffffe
jmp 0x446e56
test al, al
je 0x446e53
mov ebx, 1
jmp 0x446e56
or ebx, 0xffffffff
test esi, 0x20
je 0x446e93
mov ecx, dword [ebp - 0x5c]
test ecx, ecx
jne 0x446e93
test dl, dl
je 0x446e7f
test al, al
je 0x446e76
mov dword [ebp - 0x5c], 2
jmp 0x446e93
mov dword [ebp - 0x5c], 0xfffffffe
jmp 0x446e93
test al, al
je 0x446e8c
mov dword [ebp - 0x5c], 1
jmp 0x446e93
mov dword [ebp - 0x5c], 0xffffffff
test dl, dl
jne 0x446eb7
test al, al
je 0x446ea9
test byte [ebp + 0x11], 4
je 0x446eb7
mov dword [ebp - 0x28], esi
jmp 0x446f7b
test byte [ebp + 0x11], 8
je 0x446eb7
mov dword [ebp - 0x28], esi
jmp 0x446f7b
inc dword [ebp - 0x58]
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x170]
cmp eax, edx
jb 0x446db4
sub edi, 0xfffffffe
je 0x446ef8
dec edi
je 0x446eef
sub edi, 2
je 0x446edd
dec edi
je 0x446ee6
jmp 0x446eff
or dword [ebp - 0x28], 0x1000
jmp 0x446eff
or dword [ebp - 0x28], 0x2000
jmp 0x446eff
or dword [ebp - 0x28], 0x4000
jmp 0x446eff
or dword [ebp - 0x28], 0x8000
sub ebx, 0xfffffffe
je 0x446f2c
dec ebx
je 0x446f23
sub ebx, 2
je 0x446f11
dec ebx
je 0x446f1a
jmp 0x446f33
or dword [ebp - 0x28], 0x10000
jmp 0x446f33
or dword [ebp - 0x28], 0x20000
jmp 0x446f33
or dword [ebp - 0x28], 0x40000
jmp 0x446f33
or dword [ebp - 0x28], 0x80000
mov eax, dword [ebp - 0x5c]
sub eax, 0xfffffffe
je 0x446f63
dec eax
je 0x446f5a
sub eax, 2
je 0x446f48
dec eax
je 0x446f51
jmp 0x446f6a
or dword [ebp - 0x28], 0x100000
jmp 0x446f6a
or dword [ebp - 0x28], 0x200000
jmp 0x446f6a
or dword [ebp - 0x28], 0x400000
jmp 0x446f6a
or dword [ebp - 0x28], 0x800000
test byte [ebp + 0x11], 4
jne 0x446f76
test byte [ebp + 0x11], 8
je 0x446f7b
xor edx, edx
mov dword [ebp - 0x28], edx
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x446f93
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 0x446fab
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 0x446fc3
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 0x446fea
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