Function at 0x438d40
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f34d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push 0
push 0x400
lea ecx, [ebp - 0x7c]
call fcn.004379b0
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0x400
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x14], 8
jb 0x438d9c
mov dword [ebp - 0x2c], 1
jmp 0x438da3
mov dword [ebp - 0x2c], 0
mov cl, byte [ebp - 0x2c]
mov byte [ebp - 0xd], cl
movzx edx, byte [ebp - 0xd]
test edx, edx
je 0x438dbf
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x48], eax
xor ecx, ecx
shl ecx, 1
add ecx, dword [ebp - 0x48]
mov dword [ebp - 0x4c], ecx
lea edx, [ebp - 0x5c]
push edx
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x438ee1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x438ee1
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp + 0x10]
jbe 0x438e31
mov dword [ebp - 0x50], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00431070
mov eax, dword [ebp - 0x50]
jmp 0x438f0f
cmp dword [ebp - 0x14], 0x400
jbe 0x438e6d
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x34]
ja 0x438e5c
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x7c]
call fcn.00430af0
jmp 0x438e6d
push 0
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x7c]
call fcn.00431310
lea edx, [ebp - 0x7c]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 0x14], 8
jb 0x438e8b
mov dword [ebp - 0x38], 1
jmp 0x438e92
mov dword [ebp - 0x38], 0
mov dl, byte [ebp - 0x38]
mov byte [ebp - 0xe], dl
movzx eax, byte [ebp - 0xe]
test eax, eax
je 0x438eae
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x58], ecx
xor edx, edx
shl edx, 1
add edx, dword [ebp - 0x58]
mov dword [ebp - 0x60], edx
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x60]
push edx
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x438ef0
mov dword [ebp - 0x40], 1
jmp 0x438ef7
mov dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x64], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00431070
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret