Function at 0x1009e410
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1e4
mov eax, dword [0x10172eb8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1e0], ecx
cmp dword [ebp + 8], 0
jne 0x1009e436
xor eax, eax
jmp 0x1009e7bb
push 0x104
push 0
lea eax, [ebp - 0x120]
push eax
call fcn.100cac20
add esp, 0xc
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x1e4], ecx
cmp dword [ebp - 0x1e4], 0
je 0x1009e47d
cmp dword [ebp - 0x1e4], 1
je 0x1009e4ec
cmp dword [ebp - 0x1e4], 2
je 0x1009e52b
jmp 0x1009e708
lea edx, [ebp - 0x128]
push edx
mov ecx, dword [ebp - 0x1e0]
call fcn.1009e7d0
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
je 0x1009e4d7
mov eax, dword [ebp - 0x128]
mov ecx, dword [eax + 0x30]
push ecx
mov edx, dword [ebp - 0x128]
mov eax, dword [edx + 4]
push eax
push str._u_u
push 0x104
lea ecx, [ebp - 0x120]
push ecx
call fcn.100cd2a8
add esp, 0x14
mov edx, dword [ebp - 0x128]
push edx
call sub.Secur32.dll_LsaFreeReturnBuffer
cmp dword [ebp - 0x12c], 0
jne 0x1009e4e7
xor eax, eax
jmp 0x1009e7bb
jmp 0x1009e70f
lea eax, [ebp - 0x1b0]
push eax
call dword [sym.imp.ADVAPI32.dll_GetCurrentHwProfileA]
test eax, eax
je 0x1009e51f
lea ecx, [ebp - 0x1ac]
push ecx
push 0x1013fb18
push 0x104
lea edx, [ebp - 0x120]
push edx
call fcn.100cd2a8
add esp, 0x10
jmp 0x1009e526
xor eax, eax
jmp 0x1009e7bb
jmp 0x1009e70f
mov dword [ebp - 0x1bc], 0x100
push 0x100
call fcn.100aaab5
add esp, 4
mov dword [ebp - 0x1cc], eax
mov eax, dword [ebp - 0x1cc]
mov dword [ebp - 0x1c0], eax
cmp dword [ebp - 0x1c0], 0
jne 0x1009e564
xor eax, eax
jmp 0x1009e7bb
mov ecx, dword [ebp - 0x1bc]
push ecx
push 0
mov edx, dword [ebp - 0x1c0]
push edx
call fcn.100cac20
add esp, 0xc
mov dword [ebp - 0x1c4], 0
mov dword [ebp - 0x1c8], 0
lea eax, [ebp - 0x1bc]
push eax
mov ecx, dword [ebp - 0x1c0]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x1009e61f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x1009e61d
mov edx, dword [ebp - 0x1c0]
mov dword [ebp - 0x1d0], edx
mov eax, dword [ebp - 0x1d0]
push eax
call fcn.100aaaba
add esp, 4
mov dword [ebp - 0x1c0], 0
mov ecx, dword [ebp - 0x1bc]
push ecx
call fcn.100aaab5
add esp, 4
mov dword [ebp - 0x1d4], eax
mov edx, dword [ebp - 0x1d4]
mov dword [ebp - 0x1c0], edx
lea eax, [ebp - 0x1bc]
push eax
mov ecx, dword [ebp - 0x1c0]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x1009e61d
mov dword [ebp - 0x1c8], 1
jmp 0x1009e629
mov dword [ebp - 0x1c8], 1
cmp dword [ebp - 0x1c8], 0
jne 0x1009e660
cmp dword [ebp - 0x1c0], 0
je 0x1009e660
mov edx, dword [ebp - 0x1c0]
mov dword [ebp - 0x1d8], edx
mov eax, dword [ebp - 0x1d8]
push eax
call fcn.100aaaba
add esp, 4
mov dword [ebp - 0x1c0], 0
mov dword [ebp - 0x1b4], 0
lea ecx, [ebp - 0x1c4]
push ecx
mov ecx, dword [ebp - 0x1e0]
call fcn.1009e7d0
mov dword [ebp - 0x1c8], eax
mov ecx, dword [ebp - 0x1e0]
call fcn.1009f2f0
mov dword [ebp - 0x1b8], eax
cmp dword [ebp - 0x1c8], 0
je 0x1009e6ff
lea edx, [ebp - 0x1b4]
push edx
mov eax, dword [ebp - 0x1c4]
mov ecx, dword [eax + 0x2c]
push ecx
call sub.ADVAPI32.dll_ConvertSidToStringSidA
test eax, eax
je 0x1009e6f1
mov edx, dword [ebp - 0x1b4]
push edx
mov eax, dword [ebp - 0x1b8]
push eax
mov ecx, dword [ebp - 0x1c0]
push ecx
push str._s_d_s
push 0x104
lea edx, [ebp - 0x120]
push edx
call fcn.100cd2a8
add esp, 0x18
mov eax, dword [ebp - 0x1b4]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x1c4]
push ecx
call sub.Secur32.dll_LsaFreeReturnBuffer
jmp 0x1009e706
xor eax, eax
jmp 0x1009e7bb
jmp 0x1009e70f
xor eax, eax
jmp 0x1009e7bb
lea edx, [ebp - 0x120]
push edx
call fcn.100cb090
add esp, 4
mov dword [ebp - 0x18], eax
push 0x10
push 0
lea eax, [ebp - 0x14]
push eax
call fcn.100cac20
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x120]
push ecx
push 1
mov ecx, dword [ebp - 0x1e0]
call fcn.1009cdb0
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
je 0x1009e7b5
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
call fcn.100aaab5
add esp, 4
mov dword [ebp - 0x1dc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1dc]
mov dword [ecx], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.100cac20
add esp, 0xc
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
je 0x1009e7b5
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.100cb140
add esp, 0xc
mov eax, dword [ebp - 0x124]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ca7f5
mov esp, ebp
pop ebp
ret 0xc