Function at 0x4f0d90
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a3ff2
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x61ce74]
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 esi, ecx
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x244], esi
push 0x2c
mov dword [ebp - 4], 0
mov dword [esi], vtable.CThriftClient.0
call fcn.0042fbc0
add esp, 4
mov dword [ebp - 0x238], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x4f0dfa
mov ecx, eax
call fcn.004f1030
jmp 0x4f0dfc
xor eax, eax
push 0x208
mov dword [esi + 4], eax
lea eax, [ebp - 0x218]
push 0
push eax
mov byte [ebp - 4], 0
call fcn.00540d70
add esp, 0xc
mov dword [ebp - 0x23c], 0x104
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov eax, dword [0x62a094]
test al, 1
jne 0x4f0e9c
or eax, 1
mov dword [0x62a094], eax
push str.GetCurrentPackageFamilyName
push str.kernel32
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4f0e8f
push 0
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x234], 0
push ecx
call eax
cmp eax, 0x7a
jne 0x4f0e8f
mov cl, 1
mov byte [ebp - 4], 0
mov byte [0x62a090], cl
jmp 0x4f0ea2
xor cl, cl
mov byte [0x62a090], cl
mov byte [ebp - 4], cl
jmp 0x4f0ea2
mov cl, byte [0x62a090]
test cl, cl
mov edx, 0x61c980
mov eax, 0x61c9b0
lea ecx, [ebp - 0x230]
cmove eax, edx
push eax
call fcn.0045f200
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x238]
call fcn.004aaf00
mov ebx, eax
cmp dword [ebp - 0x21c], 0x10
lea edi, [ebp - 0x230]
mov byte [ebp - 4], 4
cmovae edi, dword [ebp - 0x230]
call fcn.00421b80
mov ecx, eax
test ecx, ecx
je 0x4f101e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x234], eax
mov byte [ebp - 4], 5
test edi, edi
je 0x4f0f2b
test edi, 0xffff0000
jne 0x4f0f2b
movzx eax, di
lea ecx, [ebp - 0x234]
push eax
call fcn.004f1f70
jmp 0x4f0f37
push edi
lea ecx, [ebp - 0x234]
call fcn.00432900
push ebx
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.004f19f0
add esp, 0xc
mov ecx, dword [esi + 4]
push 3
push eax
mov byte [ebp - 4], 7
mov ecx, dword [ecx + 0x1c]
call fcn.004f2c40
mov edx, dword [ebp - 0x240]
or edi, 0xffffffff
mov byte [ebp - 4], 6
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4f0f88
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x234]
mov eax, edi
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4f0fa9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x238]
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4f0fc8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x21c]
cmp edx, 0x10
jb 0x4f0ffe
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4f0ff4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4f1028
push edx
push ecx
call fcn.0053d0af
add esp, 8
mov eax, esi
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.0053d079
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00425f50
call fcn.0054b0c3
int3