Function at 0x4428ea
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x900
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetMenuItemCount]
xor esi, esi
mov dword [ebp - 0x28], eax
cmp eax, esi
mov dword [ebp - 8], esi
jle 0x442cba
push ebx
mov ebx, dword [sym.imp.USER32.dll_SetMenuItemInfoW]
push edi
mov eax, dword [0x4b0550]
push 0xb
mov dword [ebp - 4], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x100]
mov word [ebp - 0x100], si
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x58]
push eax
push 1
push dword [ebp - 8]
mov dword [ebp - 0x58], 0x2c
mov dword [ebp - 0x54], 0x17
mov dword [ebp - 0x50], esi
push dword [ebp + 8]
mov dword [ebp - 0x30], 0x50
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
lea eax, [ebp - 0x100]
test eax, eax
je 0x442978
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x100]
push ecx
push eax
lea ecx, [ebp - 4]
call fcn.004039ec
cmp dword [ebp - 0x44], esi
je 0x442a92
push dword [ebp + 0x10]
push esi
push dword [ebp - 0x44]
call fcn.004428ea
add esp, 0xc
cmp dword [ebp + 0x10], esi
je 0x442a92
push 0x4b5a0c
push dword [ebp - 4]
call fcn.0049cec5
pop ecx
test eax, eax
pop ecx
jne 0x4429c4
mov eax, dword [ebp - 0x44]
mov dword [0x4c42dc], eax
push 0x4b5a00
push dword [ebp - 4]
call fcn.0049cec5
pop ecx
test eax, eax
pop ecx
jne 0x4429df
mov eax, dword [ebp - 0x44]
mov dword [0x4c42d8], eax
push 0x4b59f4
push dword [ebp - 4]
call fcn.0049cec5
pop ecx
test eax, eax
pop ecx
jne 0x4429fa
mov eax, dword [ebp - 0x44]
mov dword [0x4c42c0], eax
push 0x4b59e8
push dword [ebp - 4]
call fcn.0049cec5
pop ecx
test eax, eax
pop ecx
jne 0x442a15
mov eax, dword [ebp - 0x44]
mov dword [0x4c42c4], eax
push 0x4b59d8
push dword [ebp - 4]
call fcn.0049cec5
pop ecx
test eax, eax
pop ecx
jne 0x442a3d
mov eax, dword [ebp - 0x44]
push 0x4b59d4
lea ecx, [ebp - 4]
mov dword [0x4c42c8], eax
call fcn.00403adc
push 0x4b59c8
push dword [ebp - 4]
call fcn.0049cec5
pop ecx
test eax, eax
pop ecx
jne 0x442a5d
push str.________
lea ecx, [ebp - 4]
call fcn.00403adc
push 0x4b59b0
push dword [ebp - 4]
call fcn.0049cec5
pop ecx
test eax, eax
pop ecx
jne 0x442a92
mov eax, dword [0x4b412c]
mov dword [ebp - 0x54], 2
add eax, 0xab7c
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x58]
push eax
push 1
push dword [ebp - 8]
push dword [ebp + 8]
call ebx
mov eax, dword [ebp - 4]
cmp dword [eax - 8], esi
je 0x442ca1
push eax
call fcn.0049c828
mov esi, eax
mov eax, dword [0x4b0550]
pop ecx
mov dword [ebp - 0xc], eax
push esi
lea eax, [ebp - 0xc]
push 0x4b1ab0
push eax
call fcn.00403d66
mov eax, dword [0x4b0550]
add esp, 0xc
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push esi
push str._05d
push eax
call fcn.00403d66
push dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.0049cec5
add esp, 0x14
test eax, eax
je 0x442aff
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.0049cec5
pop ecx
test eax, eax
pop ecx
jne 0x442c41
lea eax, [ebp - 0x20]
push esi
push eax
call fcn.00460aba
pop ecx
pop ecx
push eax
lea ecx, [ebp - 4]
call fcn.00403a8c
lea ecx, [ebp - 0x20]
call fcn.004038fb
push 0x4b5998
push dword [ebp - 0xc]
call fcn.0049cec5
pop ecx
test eax, eax
pop ecx
jne 0x442b53
push str._t_F9_
lea ecx, [ebp - 0x14]
call fcn.00403927
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 4]
push eax
push dword [eax - 8]
call fcn.00403bd8
lea ecx, [ebp - 0x14]
jmp 0x442c3c
push 0x4b5984
push dword [ebp - 0x10]
call fcn.0049cec5
pop ecx
test eax, eax
pop ecx
jne 0x442c41
cmp dword [ebp - 0x44], eax
jne 0x442c41
mov eax, dword [0x4c3cc4]
cmp dword [eax - 8], 0
jne 0x442bd9
mov eax, dword [0x4bd5dc]
mov ecx, 0x1ff
mov dword [ebp - 0x900], eax
xor eax, eax
lea edi, [ebp - 0x8fc]
mov dword [ebp - 0x5c], 0x400
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x900]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x900]
test eax, eax
je 0x442bc7
lea eax, [ebp - 0x900]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x900]
push ecx
push eax
mov ecx, 0x4c3cc4
call fcn.004039ec
push 0x4b1e10
lea ecx, [ebp - 0x1c]
call fcn.00403927
push 0x4b5980
lea ecx, [ebp - 0x18]
call fcn.00403927
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push 0x4c3cc4
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00403b20
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00403b20
mov eax, dword [eax]
lea ecx, [ebp - 4]
push eax
push dword [eax - 8]
call fcn.00403bd8
lea ecx, [ebp - 0x2c]
call fcn.004038fb
lea ecx, [ebp - 0x60]
call fcn.004038fb
lea ecx, [ebp - 0x18]
call fcn.004038fb
lea ecx, [ebp - 0x1c]
call fcn.004038fb
mov eax, dword [ebp - 4]
xor esi, esi
cmp dword [eax - 8], esi
jne 0x442c6b
lea eax, [ebp - 0x100]
lea ecx, [ebp - 0x24]
push eax
call fcn.0040a4e8
push eax
lea ecx, [ebp - 4]
call fcn.00403a8c
lea ecx, [ebp - 0x24]
call fcn.004038fb
push esi
lea ecx, [ebp - 4]
mov dword [ebp - 0x54], 0x10
mov dword [ebp - 0x50], esi
call fcn.00403c58
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x58]
push eax
push 1
push dword [ebp - 8]
push dword [ebp + 8]
call ebx
lea ecx, [ebp - 0x10]
call fcn.004038fb
lea ecx, [ebp - 0xc]
call fcn.004038fb
xor esi, esi
lea ecx, [ebp - 4]
call fcn.004038fb
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x28]
jl 0x442915
pop edi
pop ebx
push 1
pop eax
pop esi
leave
ret