Function at 0x402dc0
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426418
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x43600c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x14], ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], ecx
mov esi, dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor ebx, ebx
push eax
push ebx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], ebx
call esi
mov eax, dword [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea eax, [eax*2 + 2]
push eax
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x24], eax
push ecx
push eax
call esi
mov esi, dword [ebp - 0x24]
test eax, eax
je 0x402fb2
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], ebx
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
push dword [ebp - 0x18]
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov eax, dword [ebp - 0x1c]
add eax, eax
push eax
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x2c], eax
test ebx, ebx
je 0x402fb2
test eax, eax
je 0x402fb2
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push esi
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x402fb2
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
je 0x402fb2
mov edi, dword [ebp - 0x20]
mov esi, edi
lea ecx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x402ed0
sub esi, ecx
sar esi, 1
push esi
call fcn.00415415
add esp, 4
xorps xmm0, xmm0
movlpd qword [ebp - 0x30], xmm0
mov ebx, eax
test esi, esi
je 0x402f18
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
nop dword [eax]
mov al, byte [edi + ecx*2]
mov byte [ecx + ebx], al
add ecx, 1
adc edx, 0
xor eax, eax
cmp edx, eax
jl 0x402f00
jg 0x402f18
cmp ecx, esi
jb 0x402f00
mov ecx, ebx
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402f30
sub ecx, edx
push ecx
push ebx
lea ecx, [ebp - 0x4c]
call fcn.00413b90
mov ebx, dword [ebp - 0x34]
lea eax, [ebp - 0x4c]
mov dword [ebp - 4], 0
mov ecx, 0x28
cmp dword [ebp - 0x3c], ecx
cmovb ecx, dword [ebp - 0x3c]
cmp dword [ebp - 0x38], 0x10
push ecx
cmovae eax, dword [ebp - 0x4c]
mov ecx, ebx
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
push eax
mov byte [ebx], 0
call fcn.00413b90
mov edx, dword [ebp - 0x38]
cmp edx, 0x10
jb 0x402fae
mov ecx, dword [ebp - 0x4c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402fa4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402ff7
push edx
push ecx
call fcn.00415407
add esp, 8
mov eax, ebx
jmp 0x402fdb
push esi
push 0
call edi
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call esi
push ebx
push 0
call edi
push eax
call esi
push dword [ebp - 0x2c]
push 0
call edi
push eax
call esi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00414d92
mov esp, ebp
pop ebp
ret
call fcn.00419a6c
int3