Function at 0x1015d970
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101b486e
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x1022c684]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3c], ecx
lea ecx, [ebp - 0x18]
call fcn.10005d40
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10005d40
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.10005d40
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.10020e50
mov byte [ebp - 4], 3
mov dword [ebp - 0x10], 0x410
mov ecx, dword [ebp - 0x3c]
call fcn.1015d230
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x3c]
call fcn.1015d2d0
test eax, eax
jne 0x1015da2b
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.10020e80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.10005e00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10005e00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.10005e00
mov eax, dword [ebp - 0x2c]
jmp 0x1015dc75
cmp dword [ebp - 0x14], 0
je 0x1015da64
lea eax, [ebp - 0x30]
push eax
call fcn.100e47a0
add esp, 4
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x44], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x44]
push edx
lea ecx, [ebp - 0x24]
call fcn.10003ea0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x30]
call fcn.10005e00
jmp 0x1015da7c
lea eax, [ebp - 0x10]
push eax
push 0x410
lea ecx, [ebp - 0x24]
call fcn.10005e40
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x24]
call fcn.10005e80
lea ecx, [ebp - 0x24]
call fcn.10004400
movzx ecx, al
test ecx, ecx
je 0x1015daec
cmp dword [ebp - 0x14], 0
je 0x1015dadf
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.10020e80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.10005e00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10005e00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.10005e00
mov eax, dword [ebp - 0x34]
jmp 0x1015dc75
push 0x101e28a4
lea ecx, [ebp - 0x24]
call fcn.10005e20
push str.e161255a_37c3_11d2_bcaa_00c04fd929dbe161255a_37c3_11d2_bcaa_00c04fd929db
mov edx, dword [ebp - 0x24]
push edx
push 0x101e296c
lea eax, [ebp - 0x18]
push eax
call fcn.10005660
add esp, 0x10
push str.5e7e8100_9138_11d1_945a_00c04fc308ff00000000_0000_0000_0000_000000000000
mov ecx, dword [ebp - 0x24]
push ecx
push str._sData_s
lea edx, [ebp - 0x28]
push edx
call fcn.10005660
add esp, 0x10
push 0x2001f
push 0x101e2a38
push SysReAllocString
lea ecx, [ebp - 0x20]
call fcn.100210a0
test eax, eax
jne 0x1015db94
push 0
push 0x101e2aa4
lea ecx, [ebp - 0x18]
call fcn.10004390
push eax
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x3c]
call fcn.1015d690
push 0x101e2ab4
push 0
lea ecx, [ebp - 0x18]
call fcn.10004390
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x3c]
call fcn.1015d690
push 0
push 0
lea ecx, [ebp - 0x28]
call fcn.10004390
push eax
mov edx, dword [ebp - 0x20]
push edx
mov ecx, dword [ebp - 0x3c]
call fcn.1015d690
lea ecx, [ebp - 0x20]
call fcn.10020fd0
push 0x2001f
push str.SoftwareMicrosoftProtected_Storage_System_Provider
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x20]
call fcn.100210a0
test eax, eax
jne 0x1015dc08
push 0
push 0x101e2b3c
lea ecx, [ebp - 0x18]
call fcn.10004390
push eax
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x3c]
call fcn.1015d690
push 0x101e2b4c
push 0
lea ecx, [ebp - 0x18]
call fcn.10004390
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x3c]
call fcn.1015d690
push 0
push 0
lea ecx, [ebp - 0x28]
call fcn.10004390
push eax
mov edx, dword [ebp - 0x20]
push edx
mov ecx, dword [ebp - 0x3c]
call fcn.1015d690
lea ecx, [ebp - 0x20]
call fcn.10020fd0
push 0x2001f
push 0x101e2b78
push SysReAllocString
lea ecx, [ebp - 0x20]
call fcn.100210a0
test eax, eax
jne 0x1015dc38
push str.TypedURLs
lea ecx, [ebp - 0x20]
call fcn.10020f10
lea ecx, [ebp - 0x20]
call fcn.10020fd0
mov dword [ebp - 0x38], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.10020e80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.10005e00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10005e00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.10005e00
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret