Function at 0x10073640
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10100fb0
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x138
mov eax, dword [0x10172eb8]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x13c], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 1
cmp dword [ebp + 8], 0
je 0x100736a2
mov eax, dword [ebp + 8]
push eax
call fcn.100cb090
add esp, 4
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x10073753
mov dword [ebp - 0x18], 0x103
push 0x104
push 0
lea ecx, [ebp - 0x128]
push ecx
call fcn.100cac20
add esp, 0xc
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea ecx, [ebp - 0x128]
push ecx
call fcn.100cb090
add esp, 4
add eax, 1
push eax
call fcn.100aaab5
add esp, 4
mov dword [ebp - 0x140], eax
mov edx, dword [ebp - 0x140]
mov dword [ebp - 0x130], edx
mov eax, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0x130]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp - 0x13c]
cmp dword [edx + 0xc], 0
je 0x1007374e
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x128]
push ecx
call fcn.100cb090
add esp, 4
add eax, 1
push eax
mov edx, dword [ebp - 0x13c]
mov eax, dword [edx + 0xc]
push eax
call fcn.100cad54
add esp, 0xc
jmp 0x1007388f
mov ecx, dword [ebp + 8]
push ecx
call fcn.100cb090
add esp, 4
mov dword [ebp - 0x12c], eax
mov edx, dword [ebp - 0x12c]
add edx, 1
push edx
call fcn.100aaab5
add esp, 4
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x144]
mov dword [ebp - 0x134], eax
mov ecx, dword [ebp - 0x13c]
mov edx, dword [ebp - 0x134]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x13c]
cmp dword [eax + 0xc], 0
je 0x100737e2
mov ecx, dword [ebp - 0x12c]
add ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0x13c]
mov eax, dword [edx + 0xc]
push eax
call fcn.100cac20
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x12c]
add edx, 1
push edx
mov eax, dword [ebp - 0x13c]
mov ecx, dword [eax + 0xc]
push ecx
call fcn.100cad54
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x1007388f
mov edx, dword [ebp + 0xc]
push edx
call fcn.100cb090
add esp, 4
test eax, eax
jbe 0x1007388f
mov eax, dword [ebp + 0xc]
push eax
call fcn.100cb090
add esp, 4
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x12c]
add ecx, 1
push ecx
call fcn.100aaab5
add esp, 4
mov dword [ebp - 0x148], eax
mov edx, dword [ebp - 0x148]
mov dword [ebp - 0x138], edx
mov eax, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0x138]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 0x13c]
cmp dword [edx + 0x10], 0
je 0x1007388f
mov eax, dword [ebp - 0x12c]
add eax, 1
push eax
push 0
mov ecx, dword [ebp - 0x13c]
mov edx, dword [ecx + 0x10]
push edx
call fcn.100cac20
add esp, 0xc
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x12c]
add ecx, 1
push ecx
mov edx, dword [ebp - 0x13c]
mov eax, dword [edx + 0x10]
push eax
call fcn.100cad54
add esp, 0xc
jmp 0x1007389e
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.100ca7f5
mov esp, ebp
pop ebp
ret 8