Function at 0x4ae890
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov eax, 0x15d0
call fcn.005d9990
mov eax, dword [esp + 0x15d4]
push ebp
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
push esi
push edi
jne 0x4ae8fd
cmp eax, 0x20
je 0x4ae8fd
cmp dword [0x61a1d4], 0xffffffff
je 0x4ae8fd
push ecx
lea edx, [esp + 0x144]
push 0x432
push edx
call fcn.00423310
mov ecx, dword [0x61a1d4]
add esp, 8
push eax
lea eax, [esp + 0x148]
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_recv]
cmp eax, 0xffffffff
jne 0x4ae92f
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x4aeb4e
mov eax, dword [0x61a1c8]
test eax, eax
je 0x4aeaf9
push 0
call fcn.0050b5e0
add esp, 4
test eax, eax
jne 0x4aeaf9
push eax
call fcn.004ae500
add esp, 4
pop edi
pop esi
pop ebp
add esp, 0x15d0
ret
cmp eax, 1
jle 0x4ae8fd
cmp eax, 0x19
jg 0x4ae8fd
lea edx, [esp + 0x140]
push 0x2c
push edx
mov byte [esp + eax + 0x148], 0
call fcn.005d9b20
mov esi, eax
add esp, 8
test esi, esi
je 0x4ae8fd
mov byte [esi], 0
mov al, byte [esi + 1]
inc esi
test al, al
je 0x4ae8fd
lea eax, [esp + 0x140]
push eax
call fcn.005d9a55
push esi
mov edi, eax
call fcn.005d9a55
push 2
mov ebp, eax
call fcn.0050b5e0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4ae9a9
mov eax, dword [0x61a1c8]
test eax, eax
jne 0x4ae90a
call fcn.00508b70
mov esi, eax
test esi, esi
je 0x4ae8fd
jmp 0x4ae9b3
mov dword [esi + 0x14b4], 0
push 0x66adb0
lea ecx, [esp + 0x10]
push 0x132
push ecx
call fcn.00425550
mov eax, dword [0x66adac]
add esp, 0xc
test eax, eax
je 0x4aea0d
lea edx, [esp + 0xc]
push 0x132
push edx
call fcn.004232e0
push 0
lea eax, [esp + 0x18]
push esi
push eax
call fcn.00517290
add esp, 0x14
test eax, eax
jne 0x4aea0d
push 0x66adb0
lea ecx, [esp + 0x10]
push 0x132
push ecx
call fcn.00425550
add esp, 0xc
mov eax, dword [0x61a1c4]
test eax, eax
je 0x4aea68
lea edx, [esp + 0xc]
push edx
push 0x66aee8
push ebp
push edi
push 0
push 0xc1f
call fcn.00424130
add esp, 8
push eax
lea eax, [esp + 0x588]
push eax
call fcn.005d9929
mov ecx, dword [0x63caac]
mov eax, dword [esi]
push ecx
lea edx, [esp + 0x590]
push edx
push eax
call fcn.0052ddc0
mov ecx, dword [0x63ca9c]
mov edx, dword [esi]
push ecx
push edx
call fcn.0052dc60
add esp, 0x2c
mov eax, dword [0x6a0f40]
mov ecx, dword [0x61a1d4]
push 0x22
push 0x802c
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
lea edx, [esp + 0xc]
push edx
push 0x66aee8
push ebp
push edi
lea eax, [esp + 0x150]
push str._d___d_:_USERID_:__s_:__s_r_n
push eax
call fcn.005d9929
lea eax, [esp + 0x158]
add esp, 0x18
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4aeab0
sub eax, edx
mov edx, dword [0x61a1d4]
push 0
mov esi, eax
push esi
lea ecx, [esp + 0x148]
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_send]
cmp eax, esi
jne 0x4ae8fd
pop edi
pop esi
mov dword [0x66b01c], 3
mov dword [0x66b020], 1
pop ebp
add esp, 0x15d0
ret
mov eax, dword [0x61a1d4]
or esi, 0xffffffff
cmp eax, esi
je 0x4aeb20
push 1
push eax
call dword [sym.imp.WSOCK32.dll_shutdown]
mov eax, dword [0x61a1d4]
push eax
call dword [sym.imp.WSOCK32.dll_closesocket]
mov dword [0x61a1d4], esi
mov eax, dword [0x61a1d0]
cmp eax, esi
mov dword [0x66b01c], 0
mov dword [0x61a1d8], esi
je 0x4aeb4e
mov ecx, dword [0x6a0f40]
push 8
push 0x802a
push ecx
push eax
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
pop edi
pop esi
pop ebp
add esp, 0x15d0
ret