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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov ebx, 0x573f93
mov esi, 0x573bac
mov edx, eax
shr edx, 0x10
test dx, 0xffff
jne 0x474fae
cmp eax, 0x20
jne 0x474ff9
cmp dword [0x551598], 0
je 0x474fed
cmp byte [0x574013], 0
je 0x474fed
push 0x574013
push 0
push 0x92f
call fcn.0041c35b
push eax
push esi
call sub.USER32.dll_wsprintfA
add esp, 0xc
push dword [0x54d2ac]
push esi
push dword [0x55b3d8]
call fcn.004e0c3e
push 2
call fcn.00474d68
jmp 0x475306
push 0
push 0x7f
push ebx
push dword [0x551590]
call sub.WSOCK32.dll_recv
cmp eax, 0xffffffff
jne 0x47501a
push 1
call fcn.00474d68
jmp 0x475306
cmp eax, 1
jg 0x47502b
push 1
call fcn.00474d68
jmp 0x475306
cmp eax, 0x78
jle 0x475035
mov eax, 0x78
mov byte [ebx + eax], 0
push 0xd
push ebx
call fcn.00539518
add esp, 8
test eax, eax
je 0x47504b
mov byte [eax], 0
push 0xa
push ebx
call fcn.00539518
add esp, 8
test eax, eax
je 0x47505d
mov byte [eax], 0
cmp byte [ebx], 0
jne 0x475073
push esi
mov esi, 0x5515b0
mov edi, ebx
mov eax, edi
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop esi
jmp 0x4750a5
push ebx
push 0x5515bb
push esi
call sub.USER32.dll_wsprintfA
add esp, 0xc
push esi
mov edi, esi
mov esi, ebx
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
push 0
push 0
push dword [0x55b3c8]
push dword [0x551590]
call sub.WSOCK32.dll_WSAAsyncSelect
push ebx
push 0
push 0x930
call fcn.0041c35b
push eax
push esi
call sub.USER32.dll_wsprintfA
add esp, 0xc
cmp byte [0x574013], 0
je 0x47510c
push 0x5515c1
push esi
call fcn.005394dc
add esp, 8
push 0x574013
push 0
push 0x931
call fcn.0041c35b
push eax
push esi
call fcn.005395b8
pop ecx
add eax, esi
push eax
call sub.USER32.dll_wsprintfA
add esp, 0xc
xor eax, eax
mov dword [0x558950], eax
push 0
push 0x5515c5
push 0x573aa8
call fcn.0053fadc
add esp, 0xc
mov edi, eax
mov dword [0x55159c], edi
test edi, edi
jne 0x475196
push 0x573aa8
push 0
push 0x932
call fcn.0041c35b
push eax
push esi
call fcn.005395b8
pop ecx
add eax, esi
push eax
call sub.USER32.dll_wsprintfA
add esp, 0xc
push dword [0x54d2ac]
push esi
push dword [0x55b3d8]
call fcn.004e0c3e
push ebx
push 0x933
call fcn.0041c35b
push 0
push ebx
call fcn.005395b8
pop ecx
push eax
push ebx
push dword [0x551590]
call sub.WSOCK32.dll_send
push 2
call fcn.00474d68
jmp 0x475306
cmp dword [0x551598], 0
je 0x4751b1
push dword [0x54d2ac]
push esi
push dword [0x55b3d8]
call fcn.004e0c3e
xor edi, edi
jmp 0x4751d2
push ebx
call fcn.005395b8
pop ecx
push eax
push ebx
push esi
call fcn.00539814
add esp, 0xc
test eax, eax
jne 0x4751d2
mov edi, 1
jmp 0x4751ea
push dword [0x55159c]
push 0x3e7
push esi
call fcn.0053cb40
add esp, 0xc
test eax, eax
jne 0x4751b5
test edi, edi
jne 0x47524d
push 0x5515c8
push ebx
call fcn.0053977c
add esp, 8
test eax, eax
jne 0x47522d
push ebx
push 0x934
call fcn.0041c35b
push 0
push ebx
call fcn.005395b8
pop ecx
push eax
push ebx
push dword [0x551590]
call sub.WSOCK32.dll_send
push 2
call fcn.00474d68
jmp 0x475306
push dword [0x55159c]
call fcn.0053d9b0
pop ecx
push esi
mov esi, str._default_
mov edi, ebx
mov eax, edi
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop esi
jmp 0x4751b1
push 0x22
push 0x430
push dword [0x55b3c8]
push dword [0x551590]
call sub.WSOCK32.dll_WSAAsyncSelect
push dword [0x55159c]
push 0x3e7
push esi
call fcn.0053cb40
add esp, 0xc
test eax, eax
je 0x475306
push esi
call fcn.00498878
test eax, eax
je 0x475294
push 2
call fcn.00474d68
jmp 0x475306
call fcn.00474f15
test eax, eax
je 0x475303
push 0xa
push esi
call fcn.00539518
add esp, 8
test eax, eax
jne 0x4752ba
push 0x5515de
push esi
call fcn.005394dc
add esp, 8
push 0
push esi
call fcn.005395b8
pop ecx
push eax
push esi
push dword [0x551590]
call sub.WSOCK32.dll_send
test eax, eax
jge 0x475303
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x4752fa
push 0x22
push 0x430
push dword [0x55b3c8]
push dword [0x551590]
call sub.WSOCK32.dll_WSAAsyncSelect
jmp 0x475306
push 2
call fcn.00474d68
jmp 0x475306
mov byte [esi], 0
pop edi
pop esi
pop ebx
pop ebp
ret 4