Function at 0x4343a0
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d6a8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x4643c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x40]
mov edi, edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 1
xor ebx, ebx
mov ecx, 8
mov dword [edi + 0x10], ebx
cmp dword [edi + 0x14], ecx
jb 0x4343ed
mov eax, dword [edi]
jmp 0x4343ef
mov eax, edi
xor edx, edx
mov word [eax], dx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
cmp dword [ebp + 0x18], ebx
jne 0x434403
xor eax, eax
jmp 0x43440e
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x1c], ecx
jae 0x43440e
lea eax, [ebp + 8]
cmp dword [ebp + 0x38], ecx
mov ecx, dword [ebp + 0x24]
jae 0x434419
lea ecx, [ebp + 0x24]
lea edx, [ebp - 0x24]
push edx
lea edx, [ebp - 0x18]
push edx
push ebx
lea edx, [ebp - 0x14]
push edx
push ebx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x7a
je 0x43448b
call esi
mov edi, 8
mov esi, eax
cmp dword [ebp + 0x1c], edi
jb 0x434456
mov eax, dword [ebp + 8]
push eax
call fcn.0043644d
add esp, 4
mov dword [ebp + 0x18], ebx
xor ecx, ecx
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], cx
cmp dword [ebp + 0x38], edi
jb 0x434477
mov edx, dword [ebp + 0x24]
push edx
call fcn.0043644d
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
push eax
call fcn.0043747f
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
add esp, 4
lea esi, [ebp - 0x38]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
call fcn.00414a30
mov byte [ebp - 4], 2
cmp dword [ebp + 0x18], ebx
jne 0x4344bb
xor eax, eax
jmp 0x4344c7
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x4344c7
lea eax, [ebp + 8]
cmp dword [ebp + 0x38], 8
mov ecx, dword [ebp + 0x24]
jae 0x4344d3
lea ecx, [ebp + 0x24]
mov ebx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x1c]
lea edx, [ebp - 0x24]
push edx
lea edx, [ebp - 0x18]
push edx
push ebx
lea edx, [ebp - 0x14]
push edx
push esi
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x434533
push esi
call fcn.00436ac3
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test ebx, ebx
je 0x434511
push ebx
call fcn.0043644d
add esp, 4
mov edi, 8
cmp dword [ebp + 0x1c], edi
jb 0x434527
mov eax, dword [ebp + 8]
push eax
call fcn.0043644d
add esp, 4
mov dword [ebp + 0x18], 0
jmp 0x434459
mov eax, ebx
lea edx, [eax + 2]
jmp 0x434540
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x434540
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
mov esi, edi
call fcn.00413470
cmp dword [ebp - 0x20], 0
mov edi, dword [ebp - 0x1c]
je 0x43456c
call fcn.004351b0
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x434578
mov edx, dword [ebp - 0x24]
mov dword [eax], edx
test edi, edi
je 0x434585
push edi
call fcn.00436ac3
add esp, 4
test ebx, ebx
je 0x434592
push ebx
call fcn.0043644d
add esp, 4
mov esi, 8
cmp dword [ebp + 0x1c], esi
jb 0x4345a8
mov eax, dword [ebp + 8]
push eax
call fcn.0043644d
add esp, 4
xor ecx, ecx
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], 0
mov word [ebp + 8], cx
cmp dword [ebp + 0x38], esi
jb 0x4345cd
mov edx, dword [ebp + 0x24]
push edx
call fcn.0043644d
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret