Function at 0x4375e0
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4812cd
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.00436300
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 0x43763c
mov dword [ebp - 0x2c], 1
jmp 0x437643
mov dword [ebp - 0x2c], 0
mov cl, byte [ebp - 0x2c]
mov byte [ebp - 0xd], cl
movzx edx, byte [ebp - 0xd]
test edx, edx
je 0x43765f
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 0x437781
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x437781
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp + 0x10]
jbe 0x4376d1
mov dword [ebp - 0x50], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.0041e760
mov eax, dword [ebp - 0x50]
jmp 0x4377af
cmp dword [ebp - 0x14], 0x400
jbe 0x43770d
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 0x4376fc
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x7c]
call fcn.004200c0
jmp 0x43770d
push 0
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x7c]
call fcn.00425ac0
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 0x43772b
mov dword [ebp - 0x38], 1
jmp 0x437732
mov dword [ebp - 0x38], 0
mov dl, byte [ebp - 0x38]
mov byte [ebp - 0xe], dl
movzx eax, byte [ebp - 0xe]
test eax, eax
je 0x43774e
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 0x437790
mov dword [ebp - 0x40], 1
jmp 0x437797
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.0041e760
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret