Function at 0x446ff8
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe90
mov eax, 0x5102b1
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
call fcn.004d08c0
xor edx, edx
lea edi, [ebp - 0x164]
mov dword [ebp - 0x28], edx
push esi
mov esi, 0x5101ad
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 0x4474ab
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x4474ab
mov cl, byte [esi]
test cl, cl
je 0x4474ab
mov eax, dword [ebp + 0xc]
dec eax
je 0x4470c2
dec eax
je 0x4470d5
dec eax
je 0x4470e8
dec eax
je 0x4470fb
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 0x44710c
lea eax, [ebp - 0x164]
push eax
push 1
call fcn.004454b8
add esp, 8
jmp 0x44710c
lea edx, [ebp - 0x164]
push edx
push 2
call fcn.004454b8
add esp, 8
jmp 0x44710c
lea ecx, [ebp - 0x164]
push ecx
push 3
call fcn.004454b8
add esp, 8
jmp 0x44710c
lea eax, [ebp - 0x164]
push eax
push 4
call fcn.004454b8
add esp, 8
mov dl, byte [ebp - 0x164]
test dl, dl
je 0x4474ab
push 0x5d2cd1
push 0x5d2cc4
call sub.KERNEL32.dll_GetModuleHandleA
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x4474ab
push 0x5d2cf4
push 0x5d2ce7
call sub.KERNEL32.dll_GetModuleHandleA
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x4474ab
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 0x4474ab
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x4474ab
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 0x4474ab
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 0x4474ab
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 0x4474ab
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 0x4474ab
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x4474ab
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 0x4474ab
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 0x4474ab
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 0x4474ab
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 0x44729e
xor edx, edx
mov dword [ebp - 0x4c], edx
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
je 0x4472c1
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 0x4474ab
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
je 0x4473fb
mov eax, dword [ebp - 0x170]
test eax, eax
je 0x4473fb
xor edx, edx
mov dword [ebp - 0x58], edx
jmp 0x4473ea
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 0x4474ab
mov ecx, dword [ebp - 0x54]
test byte [ecx + 1], 0x10
je 0x44730a
mov dl, 1
jmp 0x44730c
xor edx, edx
mov eax, dword [ebp - 0x54]
test byte [eax], 1
je 0x447318
xor eax, eax
jmp 0x44731a
mov al, 1
mov ecx, dword [ebp - 0x54]
mov esi, dword [ecx + 4]
mov word [ebp - 0x14], 8
test esi, 1
je 0x447356
test edi, edi
jne 0x447356
test dl, dl
je 0x447348
test al, al
je 0x447341
mov edi, 2
jmp 0x447356
mov edi, 0xfffffffe
jmp 0x447356
test al, al
je 0x447353
mov edi, 1
jmp 0x447356
or edi, 0xffffffff
test esi, 2
je 0x447386
test ebx, ebx
jne 0x447386
test dl, dl
je 0x447378
test al, al
je 0x447371
mov ebx, 2
jmp 0x447386
mov ebx, 0xfffffffe
jmp 0x447386
test al, al
je 0x447383
mov ebx, 1
jmp 0x447386
or ebx, 0xffffffff
test esi, 0x20
je 0x4473c3
mov ecx, dword [ebp - 0x5c]
test ecx, ecx
jne 0x4473c3
test dl, dl
je 0x4473af
test al, al
je 0x4473a6
mov dword [ebp - 0x5c], 2
jmp 0x4473c3
mov dword [ebp - 0x5c], 0xfffffffe
jmp 0x4473c3
test al, al
je 0x4473bc
mov dword [ebp - 0x5c], 1
jmp 0x4473c3
mov dword [ebp - 0x5c], 0xffffffff
test dl, dl
jne 0x4473e7
test al, al
je 0x4473d9
test byte [ebp + 0x11], 4
je 0x4473e7
mov dword [ebp - 0x28], esi
jmp 0x4474ab
test byte [ebp + 0x11], 8
je 0x4473e7
mov dword [ebp - 0x28], esi
jmp 0x4474ab
inc dword [ebp - 0x58]
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x170]
cmp eax, edx
jb 0x4472e4
sub edi, 0xfffffffe
je 0x447428
dec edi
je 0x44741f
sub edi, 2
je 0x44740d
dec edi
je 0x447416
jmp 0x44742f
or dword [ebp - 0x28], 0x1000
jmp 0x44742f
or dword [ebp - 0x28], 0x2000
jmp 0x44742f
or dword [ebp - 0x28], 0x4000
jmp 0x44742f
or dword [ebp - 0x28], 0x8000
sub ebx, 0xfffffffe
je 0x44745c
dec ebx
je 0x447453
sub ebx, 2
je 0x447441
dec ebx
je 0x44744a
jmp 0x447463
or dword [ebp - 0x28], 0x10000
jmp 0x447463
or dword [ebp - 0x28], 0x20000
jmp 0x447463
or dword [ebp - 0x28], 0x40000
jmp 0x447463
or dword [ebp - 0x28], 0x80000
mov eax, dword [ebp - 0x5c]
sub eax, 0xfffffffe
je 0x447493
dec eax
je 0x44748a
sub eax, 2
je 0x447478
dec eax
je 0x447481
jmp 0x44749a
or dword [ebp - 0x28], 0x100000
jmp 0x44749a
or dword [ebp - 0x28], 0x200000
jmp 0x44749a
or dword [ebp - 0x28], 0x400000
jmp 0x44749a
or dword [ebp - 0x28], 0x800000
test byte [ebp + 0x11], 4
jne 0x4474a6
test byte [ebp + 0x11], 8
je 0x4474ab
xor edx, edx
mov dword [ebp - 0x28], edx
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x4474c3
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 0x4474db
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 0x4474f3
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 0x44751a
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