Function at 0x489670
Capabilities:
Connect socket
Get session user name

Disassembly:
mov eax, dword [ecx + 0x3c]
mov dword [ecx + 0x40], 0
test eax, eax
jne 0x48969f
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [ecx + 4]
push edx
push eax
call dword [sym.imp.WSOCK32.dll_bind]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8
cmp eax, 1
jne 0x4896a9
jmp 0x48a290
cmp eax, 2
jne 0x4896b3
jmp 0x48a520
xor eax, eax
ret 8
push 0xffffffffffffffff
push 0x5278fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
mov eax, dword [0x569c90]
push ebx
push ebp
push esi
mov ebp, ecx
mov dword [esp + 0x10], 0x80
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x10]
lea edx, [esp + 0xb8]
push ecx
push edx
mov dword [esp + 0x148], 0
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x48a2fc
mov cl, byte [eax + str.Cute]
mov byte [esp + eax + 0x38], cl
inc eax
test cl, cl
jne 0x48a2e3
mov dword [esp + 0x10], 5
jmp 0x48a30e
xor eax, eax
mov cl, byte [esp + eax + 0xb8]
mov byte [esp + eax + 0x38], cl
inc eax
test cl, cl
jne 0x48a2fe
mov eax, dword [ebp + 0x44]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x48a324
mov dword [ebp + 0x40], 0xa
jmp 0x48a48d
lea ecx, [esp + 0x14]
push 1
or esi, 0xffffffff
push ecx
push eax
mov ecx, 0x57070c
mov dword [esp + 0x20], esi
call fcn.00488f70
test eax, eax
jne 0x48a39c
mov eax, dword [ebp + 0x44]
lea edx, [esp + 0xc]
push eax
push 0x14a8
push edx
call fcn.005054ef
mov eax, dword [esp + 0x18]
add esp, 0xc
mov ecx, ebp
push 1
push eax
call fcn.0048aa20
mov eax, dword [ebp + 0x44]
lea ecx, [esp + 0x14]
push 0
push ecx
push eax
mov ecx, 0x57070c
call fcn.00488f70
test eax, eax
jne 0x48a39c
lea ecx, [esp + 0xc]
mov dword [ebp + 0x40], 0xa
mov dword [esp + 0x140], esi
call fcn.00507d3a
xor eax, eax
jmp 0x48a4f7
mov ax, word [ebp + 0x48]
xor edx, edx
mov dword [esp + 0x20], edx
push eax
mov dword [esp + 0x28], edx
mov word [esp + 0x24], 2
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
call dword [sym.imp.WSOCK32.dll_htons]
mov ecx, dword [esp + 0x14]
mov word [esp + 0x22], ax
mov eax, dword [ebp + 4]
lea edx, [esp + 0x20]
push 0x10
push edx
push eax
mov dword [esp + 0x30], ecx
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, esi
jne 0x48a3f9
lea ecx, [esp + 0xc]
mov dword [esp + 0x140], esi
call fcn.00507d3a
xor eax, eax
jmp 0x48a4f7
mov ebx, dword [esp + 0x148]
mov edx, dword [esp + 0x10]
add edx, 8
push edi
mov cx, word [ebx + 2]
mov esi, dword [ebx + 4]
push edx
mov byte [esp + 0x38], 4
mov byte [esp + 0x39], 2
mov word [esp + 0x3a], cx
call fcn.0050c4a3
mov ecx, dword [esp + 0x38]
mov dword [eax + 4], esi
mov dword [eax], ecx
mov ecx, dword [esp + 0x18]
mov edx, ecx
lea esi, [esp + 0x40]
lea edi, [eax + 8]
add esp, 4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
mov edx, dword [ebp]
add ecx, 8
push ecx
push eax
mov ecx, ebp
call dword [edx + 0x10]
mov edx, dword [esp + 0x14]
pop edi
add edx, 8
cmp edx, eax
jne 0x48a486
mov eax, dword [ebp]
push 0
lea ecx, [esp + 0x1c]
push 8
push ecx
mov ecx, ebp
call dword [eax + 0xc]
cmp eax, 8
jne 0x48a486
mov al, byte [esp + 0x18]
test al, al
je 0x48a4a5
mov dword [ebp + 0x40], 1
lea ecx, [esp + 0xc]
mov dword [esp + 0x140], 0xffffffff
call fcn.00507d3a
xor eax, eax
jmp 0x48a4f7
mov al, byte [esp + 0x19]
mov dword [esp + 0x140], 0xffffffff
cmp al, 0x5a
je 0x48a4cc
lea ecx, [esp + 0xc]
mov dword [ebp + 0x40], 1
call fcn.00507d3a
xor eax, eax
jmp 0x48a4f7
mov eax, dword [esp + 0x1c]
mov cx, word [esp + 0x1a]
mov dword [ebx + 4], eax
mov word [ebx + 2], cx
mov word [ebp + 0x1a], cx
lea ecx, [esp + 0xc]
mov dword [ebp + 0x1c], eax
mov word [ebp + 0x18], 2
call fcn.00507d3a
mov eax, 1
mov ecx, dword [esp + 0x138]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x138
ret 8
push 0xffffffffffffffff
push 0x527918
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov eax, dword [0x569c90]
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x44]
mov dword [esp + 0x48], 0
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x48a56c
mov dword [esi + 0x40], 0xa
mov dword [esp + 0x48], 0xffffffff
jmp 0x48a76e
mov ebx, 1
lea ecx, [esp + 0x14]
push ebx
or edi, 0xffffffff
push ecx
push eax
mov ecx, 0x57070c
mov dword [esp + 0x20], edi
call fcn.00488f70
test eax, eax
jne 0x48a5d5
mov eax, dword [esi + 0x44]
lea edx, [esp + 0xc]
push eax
push 0x14a8
push edx
call fcn.005054ef
mov eax, dword [esp + 0x18]
add esp, 0xc
mov ecx, esi
push ebx
push eax
call fcn.0048aa20
mov eax, dword [esi + 0x44]
lea ecx, [esp + 0x14]
push 0
push ecx
push eax
mov ecx, 0x57070c
call fcn.00488f70
test eax, eax
jne 0x48a5d5
mov dword [esi + 0x40], 0xa
jmp 0x48a76a
mov ax, word [esi + 0x48]
xor edx, edx
mov dword [esp + 0x30], edx
push eax
mov dword [esp + 0x38], edx
mov word [esp + 0x34], 2
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], edx
call dword [sym.imp.WSOCK32.dll_htons]
mov ecx, dword [esp + 0x14]
mov edx, dword [esi]
mov word [esp + 0x32], ax
lea eax, [esp + 0x30]
mov dword [esp + 0x34], ecx
push 0x10
push eax
mov ecx, esi
call dword [edx + 0x14]
cmp eax, edi
je 0x48a76a
mov ecx, dword [esi + 0x52]
mov edx, dword [esi]
neg ecx
sbb cl, cl
push 0
and ecx, 2
lea eax, [esp + 0x14]
mov byte [esp + 0x16], cl
push 3
push eax
mov ecx, esi
mov byte [esp + 0x1c], 5
mov byte [esp + 0x1d], bl
call dword [edx + 0x10]
cmp eax, 3
jne 0x48a767
mov edx, dword [esi]
push 0
lea eax, [esp + 0x14]
push 2
push eax
mov ecx, esi
call dword [edx + 0xc]
cmp eax, 2
jne 0x48a767
cmp byte [esp + 0x10], 5
jne 0x48a767
mov al, byte [esp + 0x11]
test al, al
je 0x48a69e
cmp al, 2
jne 0x48a767
mov eax, dword [esi + 0x52]
test eax, eax
je 0x48a692
mov ecx, esi
call fcn.00489930
test eax, eax
jne 0x48a69e
mov dword [esi + 0x40], 0xb
jmp 0x48a76a
mov edi, dword [esp + 0x50]
mov eax, dword [esi]
push 0
push 0xa
mov ecx, dword [edi + 4]
mov dx, word [edi + 2]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
mov byte [esp + 0x24], 5
mov byte [esp + 0x27], bl
mov byte [esp + 0x25], 2
mov byte [esp + 0x26], 0
mov word [esp + 0x2c], dx
call dword [eax + 0x10]
cmp eax, 0xa
je 0x48a6ea
mov dword [esi + 0x40], ebx
mov dword [esp + 0x48], 0xffffffff
jmp 0x48a76e
mov edx, dword [esi]
push 0
lea eax, [esp + 0x28]
push 0xa
push eax
mov ecx, esi
call dword [edx + 0xc]
cmp eax, 0xa
mov dword [esp + 0x48], 0xffffffff
je 0x48a70c
mov dword [esi + 0x40], ebx
jmp 0x48a76e
cmp byte [esp + 0x24], 5
je 0x48a718
mov dword [esi + 0x40], ebx
jmp 0x48a76e
mov eax, dword [esp + 0x25]
mov ecx, eax
and ecx, 0xff
test al, al
mov dword [esi + 0x40], ecx
jne 0x48a76e
mov eax, dword [esp + 0x28]
mov cx, word [esp + 0x2c]
mov dword [edi + 4], eax
mov word [edi + 2], cx
mov word [esi + 0x1a], cx
lea ecx, [esp + 0xc]
mov dword [esi + 0x1c], eax
mov word [esi + 0x18], 2
call fcn.00507d3a
pop edi
mov eax, ebx
pop esi
pop ebx
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret 8
mov dword [esi + 0x40], ebx
mov dword [esp + 0x48], edi
lea ecx, [esp + 0xc]
call fcn.00507d3a
mov ecx, dword [esp + 0x40]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 8