Function at 0x489c00
Capabilities:
Get session user name

Disassembly:
push 0xffffffffffffffff
push 0x5278b1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
mov eax, dword [0x569c90]
push ebp
push esi
mov ebp, ecx
mov dword [esp + 8], eax
lea ecx, [esp + 0xc]
lea edx, [esp + 0xb8]
push ecx
push edx
mov dword [esp + 0x148], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x489c6b
mov cl, byte [eax + str.Cute]
mov byte [esp + eax + 0x38], cl
inc eax
test cl, cl
jne 0x489c52
mov dword [esp + 0xc], 5
jmp 0x489c7d
xor eax, eax
mov cl, byte [esp + eax + 0xb8]
mov byte [esp + eax + 0x38], cl
inc eax
test cl, cl
jne 0x489c6d
mov eax, dword [ebp + 0x44]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x489c93
mov dword [ebp + 0x40], 0xa
jmp 0x489ec4
lea ecx, [esp + 0x10]
push 1
or esi, 0xffffffff
push ecx
push eax
mov ecx, 0x57070c
mov dword [esp + 0x1c], esi
call fcn.00488f70
test eax, eax
jne 0x489d0b
mov eax, dword [ebp + 0x44]
lea edx, [esp + 8]
push eax
push 0x14a8
push edx
call fcn.005054ef
mov eax, dword [esp + 0x14]
add esp, 0xc
mov ecx, ebp
push 1
push eax
call fcn.0048aa20
mov eax, dword [ebp + 0x44]
lea ecx, [esp + 0x10]
push 0
push ecx
push eax
mov ecx, 0x57070c
call fcn.00488f70
test eax, eax
jne 0x489d0b
lea ecx, [esp + 8]
mov dword [ebp + 0x40], 0xa
mov dword [esp + 0x140], esi
call fcn.00507d3a
xor eax, eax
jmp 0x489f48
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push eax
call fcn.0045f5f0
mov edx, dword [eax]
mov ecx, dword [ebp + 0x44]
xor eax, eax
push edx
mov ax, word [ebp + 0x48]
mov byte [esp + 0x14c], 1
push eax
push ecx
lea ecx, [esp + 0x1c]
push 0x14b9
push ecx
call fcn.005054ef
add esp, 0x1c
lea ecx, [esp + 0x14]
mov byte [esp + 0x140], 0
call fcn.00507d3a
mov edx, dword [esp + 8]
push 1
push edx
mov ecx, ebp
call fcn.0048aa20
mov cx, word [ebp + 0x48]
xor eax, eax
mov dword [esp + 0x20], eax
push ecx
mov dword [esp + 0x28], eax
mov word [esp + 0x24], 2
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call dword [sym.imp.WSOCK32.dll_htons]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x20]
mov word [esp + 0x22], ax
mov eax, dword [ebp]
push 0x10
push ecx
mov ecx, ebp
mov dword [esp + 0x2c], edx
call dword [eax + 0x14]
cmp eax, esi
jne 0x489dc3
lea ecx, [esp + 8]
mov dword [ebp + 0x40], 0xc
mov dword [esp + 0x140], esi
call fcn.00507d3a
xor eax, eax
jmp 0x489f48
push ebx
push edi
lea edx, [esp + 0x10]
push 0x14c4
push edx
call fcn.005054ef
mov eax, dword [esp + 0x18]
add esp, 8
mov ecx, ebp
push 1
push eax
call fcn.0048aa20
mov esi, dword [esp + 0x150]
lea ecx, [esp + 0x1c]
push esi
push ecx
mov ecx, ebp
call fcn.00489a80
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x14c], 2
call fcn.00507e73
lea ecx, [esp + 0x1c]
mov byte [esp + 0x148], 0
call fcn.00507d3a
mov edx, dword [esp + 0x10]
push 1
push edx
mov ecx, ebp
call fcn.0048aa20
mov ecx, dword [esp + 0x14]
mov ax, word [esi + 2]
mov esi, dword [esi + 4]
add ecx, 8
push ecx
mov byte [esp + 0x3c], 4
mov byte [esp + 0x3d], 1
mov word [esp + 0x3e], ax
call fcn.0050c4a3
mov edx, dword [esp + 0x3c]
mov ebx, eax
add esp, 4
mov dword [ebx], edx
mov dword [ebx + 4], esi
mov ecx, dword [esp + 0x14]
lea esi, [esp + 0x40]
mov eax, ecx
lea edi, [ebx + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
mov edx, dword [ebp]
add eax, 8
mov ecx, ebp
push eax
push ebx
call dword [edx + 0x10]
push ebx
mov esi, eax
call fcn.0050c4cc
mov ecx, dword [esp + 0x18]
add esp, 4
add ecx, 8
cmp ecx, esi
pop edi
pop ebx
jne 0x489ebd
mov edx, dword [ebp]
push 0
lea eax, [esp + 0x1c]
push 8
push eax
mov ecx, ebp
call dword [edx + 0xc]
cmp eax, 8
jne 0x489ebd
mov al, byte [esp + 0x18]
test al, al
je 0x489edc
mov dword [ebp + 0x40], 1
lea ecx, [esp + 8]
mov dword [esp + 0x140], 0xffffffff
call fcn.00507d3a
xor eax, eax
jmp 0x489f48
mov al, byte [esp + 0x19]
mov dword [esp + 0x140], 0xffffffff
cmp al, 0x5a
je 0x489f03
lea ecx, [esp + 8]
mov dword [ebp + 0x40], 1
call fcn.00507d3a
xor eax, eax
jmp 0x489f48
mov ecx, dword [esp + 0x1c]
mov dx, word [esp + 0x1a]
mov eax, dword [esp + 0x148]
mov dword [ebp + 0x1c], ecx
mov word [ebp + 0x1a], dx
mov word [ebp + 0x18], 2
mov ecx, dword [eax]
add ebp, 0x28
mov dword [ebp], ecx
mov edx, dword [eax + 4]
mov dword [ebp + 4], edx
mov ecx, dword [eax + 8]
mov dword [ebp + 8], ecx
mov edx, dword [eax + 0xc]
lea ecx, [esp + 8]
mov dword [ebp + 0xc], edx
call fcn.00507d3a
mov eax, 1
mov ecx, dword [esp + 0x138]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x13c
ret 8