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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x550
push ebx
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
push ebp
push esi
jne 0x4aa77d
cmp eax, 0x20
je 0x4aa77d
mov eax, dword [0x609c1c]
cmp eax, 0xffffffff
je 0x4aa77d
push ecx
push 0x103
lea edx, [esp + 0x78]
push edx
push eax
call dword [sym.imp.WSOCK32.dll_recv]
cmp eax, 0xffffffff
jne 0x4aa7af
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x4aa9bb
mov eax, dword [0x609c10]
test eax, eax
je 0x4aa965
push 0
call fcn.00505460
add esp, 4
test eax, eax
jne 0x4aa965
push eax
call fcn.004aa3a0
add esp, 4
pop esi
pop ebp
pop ebx
add esp, 0x550
ret
cmp eax, 1
jle 0x4aa77d
cmp eax, 0x19
jg 0x4aa77d
mov byte [esp + eax + 0x70], 0
lea eax, [esp + 0x70]
push 0x2c
push eax
call fcn.005cbf10
mov esi, eax
add esp, 8
test esi, esi
je 0x4aa77d
mov byte [esi], 0
mov al, byte [esi + 1]
inc esi
test al, al
je 0x4aa77d
lea ecx, [esp + 0x70]
push ecx
call fcn.005cbe51
push esi
mov ebp, eax
call fcn.005cbe51
push 2
mov ebx, eax
call fcn.00505460
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4aa820
mov eax, dword [0x609c10]
test eax, eax
jne 0x4aa78a
call fcn.00502b30
mov esi, eax
test esi, esi
je 0x4aa77d
jmp 0x4aa82a
mov dword [esi + 0x834], 0
push 0x637668
lea edx, [esp + 0x10]
push 0x64
push edx
call fcn.00423900
mov eax, dword [0x637664]
add esp, 0xc
test eax, eax
je 0x4aa87b
lea eax, [esp + 0xc]
push 0x64
push eax
call fcn.00423a00
push 0
lea ecx, [esp + 0x18]
push esi
push ecx
call fcn.00510a00
add esp, 0x14
test eax, eax
jne 0x4aa87b
push 0x637668
lea edx, [esp + 0x10]
push 0x64
push edx
call fcn.00423900
add esp, 0xc
mov eax, dword [0x609c0c]
test eax, eax
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
je 0x4aa8da
lea eax, [esp + 0x10]
push eax
push 0x6376cc
push ebx
push ebp
push 0
push 0xc1f
call fcn.00421db0
add esp, 8
push eax
lea ecx, [esp + 0x18c]
push ecx
call edi
mov edx, dword [0x6136ac]
mov ecx, dword [esi]
push edx
lea eax, [esp + 0x194]
push eax
push ecx
call fcn.00526870
mov edx, dword [0x61369c]
mov eax, dword [esi]
push edx
push eax
call fcn.00526700
add esp, 0x2c
mov ecx, dword [0x645324]
mov edx, dword [0x609c1c]
push 0x22
push 0x802c
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
lea eax, [esp + 0x10]
push eax
push 0x6376cc
push ebx
push ebp
lea ecx, [esp + 0x84]
push str._d___d_:_USERID_:__s_:__s_r_n
push ecx
call edi
add esp, 0x18
lea eax, [esp + 0x74]
lea edx, [eax + 1]
pop edi
jmp 0x4aa920
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4aa920
sub eax, edx
push 0
mov esi, eax
mov eax, dword [0x609c1c]
push esi
lea edx, [esp + 0x78]
push edx
push eax
call dword [sym.imp.WSOCK32.dll_send]
cmp eax, esi
jne 0x4aa77d
pop esi
pop ebp
mov dword [0x637700], 3
mov dword [0x637704], 1
pop ebx
add esp, 0x550
ret
mov eax, dword [0x609c1c]
or esi, 0xffffffff
cmp eax, esi
je 0x4aa98d
push 1
push eax
call dword [sym.imp.WSOCK32.dll_shutdown]
mov ecx, dword [0x609c1c]
push ecx
call dword [sym.imp.WSOCK32.dll_closesocket]
mov dword [0x609c1c], esi
mov eax, dword [0x609c18]
cmp eax, esi
mov dword [0x637700], 0
mov dword [0x609c20], esi
je 0x4aa9bb
mov edx, dword [0x645324]
push 8
push 0x802a
push edx
push eax
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
pop esi
pop ebp
pop ebx
add esp, 0x550
ret