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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b00e1
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x4e5114]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x25c], ecx
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x240], 0x1000
mov dword [ebp - 0x250], str.UserSID
lea ecx, [ebp - 0x21c]
call fcn.00411850
mov dword [ebp - 4], 0
mov dword [ebp - 0x258], reloc.gdiplus.dll_Ordinal_1
mov dword [ebp - 0x254], reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x230], 0
jmp 0x4157ca
mov eax, dword [ebp - 0x230]
add eax, 1
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 2
je 0x4158f8
push 0
lea ecx, [ebp - 0x27c]
call fcn.00415660
mov byte [ebp - 4], 1
push 0x20119
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp + edx*4 - 0x258]
push eax
lea ecx, [ebp - 0x27c]
call fcn.00415fe0
test eax, eax
jne 0x41586d
lea ecx, [ebp - 0x240]
push ecx
mov edx, dword [ebp - 0x240]
push edx
lea ecx, [ebp - 0x21c]
call fcn.00412a50
push eax
mov eax, dword [ebp - 0x250]
push eax
lea ecx, [ebp - 0x27c]
call fcn.00415410
test eax, eax
jne 0x41584a
mov dword [ebp - 0x244], 1
jmp 0x415854
mov dword [ebp - 0x244], 0
mov ecx, dword [ebp - 0x244]
mov dword [ebp - 0x228], ecx
push 0xffffffffffffffff
lea ecx, [ebp - 0x21c]
call fcn.00415610
cmp dword [ebp - 0x228], 0
je 0x4158cf
lea ecx, [ebp - 0x21c]
call fcn.00412720
movzx edx, al
test edx, edx
jne 0x4158cf
lea eax, [ebp - 0x21c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00411fd0
mov ecx, dword [ebp - 0x224]
or ecx, 1
mov dword [ebp - 0x224], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x27c]
call fcn.00416570
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.00411830
mov eax, dword [ebp + 8]
jmp 0x415bfa
mov dword [ebp - 0x228], 0
lea ecx, [ebp - 0x21c]
call fcn.00412780
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x27c]
call fcn.00416570
jmp 0x4157bb
mov dword [ebp - 0x248], 0
push str.explorer.exe
lea edx, [ebp - 0x248]
push edx
mov ecx, dword [ebp - 0x25c]
call fcn.004154d0
test eax, eax
jne 0x415922
jmp 0x415ab4
mov eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x415938
jmp 0x415ab4
mov dword [ebp - 0x260], 0x104
lea ecx, [ebp - 0x260]
push ecx
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x41595f
jmp 0x415ab4
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test eax, eax
jne 0x41596e
jmp 0x415ab4
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0
lea ecx, [ebp - 0x234]
call fcn.00411850
mov byte [ebp - 4], 2
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x238]
push ecx
push 0
lea edx, [ebp - 0x23c]
push edx
push 0
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov ecx, dword [ebp - 0x23c]
push ecx
call fcn.00495137
add esp, 4
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
jne 0x4159f5
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x234]
call fcn.00411830
jmp 0x415ab4
lea edx, [ebp - 0x264]
push edx
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp - 0x238]
shl ecx, 1
push ecx
lea ecx, [ebp - 0x234]
call fcn.00412a50
push eax
lea edx, [ebp - 0x23c]
push edx
mov eax, dword [ebp - 0x220]
push eax
lea ecx, [ebp - 0x218]
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov dword [ebp - 0x228], eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x234]
call fcn.00415610
cmp dword [ebp - 0x228], 0
je 0x415a84
lea edx, [ebp - 0x24c]
push edx
mov eax, dword [ebp - 0x220]
push eax
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
mov ecx, dword [ebp - 0x24c]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.00412680
mov edx, dword [ebp - 0x24c]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x220]
push eax
call fcn.00495142
add esp, 4
mov dword [ebp - 0x220], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x234]
call fcn.00411830
xor ecx, ecx
jne 0x4158f8
lea ecx, [ebp - 0x21c]
call fcn.00412720
movzx edx, al
test edx, edx
je 0x415afe
lea eax, [ebp - 0x21c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00411fd0
mov ecx, dword [ebp - 0x224]
or ecx, 1
mov dword [ebp - 0x224], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.00411830
mov eax, dword [ebp + 8]
jmp 0x415bfa
mov dword [ebp - 0x22c], 0
jmp 0x415b19
mov edx, dword [ebp - 0x22c]
add edx, 1
mov dword [ebp - 0x22c], edx
cmp dword [ebp - 0x22c], 2
je 0x415bc7
push 0
lea ecx, [ebp - 0x270]
call fcn.00415660
push 0xf013f
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x22c]
mov edx, dword [ebp + ecx*4 - 0x258]
push edx
lea ecx, [ebp - 0x270]
call fcn.00415fe0
test eax, eax
je 0x415b97
push 0
push 0
push 0xf013f
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x22c]
mov edx, dword [ebp + ecx*4 - 0x258]
push edx
lea ecx, [ebp - 0x270]
call fcn.00416140
test eax, eax
je 0x415b97
lea ecx, [ebp - 0x270]
call fcn.00416570
jmp 0x415b0a
push 1
lea ecx, [ebp - 0x21c]
call fcn.00407ab0
push eax
mov eax, dword [ebp - 0x250]
push eax
lea ecx, [ebp - 0x270]
call fcn.00415690
lea ecx, [ebp - 0x270]
call fcn.00416570
jmp 0x415b0a
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00411fd0
mov edx, dword [ebp - 0x224]
or edx, 1
mov dword [ebp - 0x224], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.00411830
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b588
mov esp, ebp
pop ebp
ret 8