Function at 0x474280
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53f910
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x448
mov eax, dword [0x58becc]
xor eax, dword [ebp + 4]
push ebx
push esi
push edi
mov dword [ebp - 0x10], eax
mov esi, ecx
call fcn.004d35f0
xor ebx, ebx
mov eax, str.ScrSound
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4742d0
sub eax, edx
push eax
push str.ScrSound
lea ecx, [ebp - 0x30]
call fcn.0041af60
push 1
lea eax, [ebp - 0x30]
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.004cfce0
mov byte [esi + 0x721], al
mov eax, dword [ebp - 0x18]
mov edi, 0x10
cmp eax, edi
mov dword [ebp - 4], 0xffffffff
jb 0x47431c
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00527b8e
add esp, 4
mov eax, str.ScrPowersave
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x474331
sub eax, edx
push eax
push str.ScrPowersave
lea ecx, [ebp - 0x30]
call fcn.0041af60
push ebx
lea edx, [ebp - 0x30]
push edx
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.004cfce0
mov byte [esi + 0x726], al
cmp dword [ebp - 0x18], edi
mov dword [ebp - 4], 0xffffffff
jb 0x474379
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00527b8e
add esp, 4
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x454]
push edx
mov dword [ebp - 0x38], 0x400
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x4743c9
lea eax, [ebp - 0x454]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4743a0
sub eax, edx
push eax
lea eax, [ebp - 0x454]
lea edi, [esi + 0x670]
push eax
mov ecx, edi
call fcn.0041ae40
push 0x5c
push 1
mov ecx, edi
call fcn.0042e550
lea edi, [esi + 0x670]
push edi
mov ecx, esi
call fcn.004d1c10
push str.OldPath
lea ecx, [ebp - 0x30]
push edi
push ecx
call fcn.004412b0
add esp, 0xc
lea edx, [esi + 0x728]
push edx
push eax
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.004d34e0
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 4], 0xffffffff
jb 0x474418
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00527b8e
add esp, 4
push str.Enabled
lea ecx, [ebp - 0x30]
push edi
push ecx
call fcn.004412b0
add esp, 0xc
lea edx, [esi + 0x720]
push edx
push eax
mov ecx, esi
mov dword [ebp - 4], 3
call fcn.004d35c0
mov eax, dword [ebp - 0x18]
mov edi, 0x10
cmp eax, edi
mov dword [ebp - 4], 0xffffffff
jb 0x47445f
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00527b8e
add esp, 4
mov ecx, esi
call fcn.00470800
mov ecx, esi
call fcn.0046d5a0
test al, al
je 0x4744ad
cmp byte [esi + 0x726], bl
je 0x474489
mov byte [esi + 0x30e], 1
mov byte [esi + 0x30f], 1
jmp 0x474495
mov byte [esi + 0x30e], bl
mov byte [esi + 0x321], bl
cmp byte [esi + 0x721], bl
jne 0x47458d
mov byte [esi + 0x98], 1
jmp 0x47458d
mov eax, str.ldaccum
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4744c2
sub eax, edx
push eax
push str.ldaccum
lea ecx, [ebp - 0x30]
call fcn.0041af60
lea eax, [esi + 0x638]
push eax
lea ecx, [ebp - 0x30]
push ecx
mov ecx, esi
mov dword [ebp - 4], 4
mov dword [ebp - 0x34], eax
call fcn.004d3570
cmp dword [ebp - 0x18], edi
mov dword [ebp - 4], 0xffffffff
jb 0x47450d
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00527b8e
add esp, 4
mov eax, str.ldinfo
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], ebx
mov byte [ebp - 0x50], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x474522
sub eax, edx
push eax
push str.ldinfo
lea ecx, [ebp - 0x54]
call fcn.0041af60
lea edi, [esi + 0x630]
push edi
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
mov dword [ebp - 4], 5
call fcn.004d3570
test al, al
je 0x474563
mov ecx, dword [edi]
cmp ecx, dword [esi + 0x634]
mov byte [ebp - 0x11], bl
jle 0x474567
mov byte [ebp - 0x11], 1
cmp dword [ebp - 0x3c], 0x10
jb 0x474579
mov edx, dword [ebp - 0x50]
push edx
call fcn.00527b8e
add esp, 4
cmp byte [ebp - 0x11], bl
je 0x474588
mov eax, dword [edi]
mov dword [esi + 0x634], eax
jmp 0x47458d
mov ecx, dword [ebp - 0x34]
mov dword [ecx], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.00528d83
mov esp, ebp
pop ebp
ret