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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff80
push ebx
push esi
push edi
mov ebx, 0x5812f4
lea edi, [ebp - 0x80]
push dword [0x56f030]
call fcn.00412717
mov esi, eax
test esi, esi
jne 0x4878ca
push 2
call fcn.00487664
jmp 0x487c39
mov eax, dword [ebp + 8]
shr eax, 0x10
test ax, 0xffff
jne 0x4878dc
cmp dword [ebp + 8], 0x20
jne 0x487923
cmp dword [0x565d54], 0
je 0x487917
cmp byte [0x581290], 0
je 0x487917
push 0x581290
push 0
push 0x92f
call fcn.0042c771
push eax
push ebx
call sub.USER32.dll_wsprintfA
add esp, 0xc
push dword [0x5618f8]
push ebx
push dword [esi]
call fcn.004f0245
push 2
call fcn.00487664
jmp 0x487c39
push 0
push 0x7f
push edi
push dword [0x565d60]
call sub.WSOCK32.dll_recv
cmp eax, 0xffffffff
jne 0x487944
push 1
call fcn.00487664
jmp 0x487c39
cmp eax, 1
jg 0x487955
push 1
call fcn.00487664
jmp 0x487c39
cmp eax, 0x78
jle 0x48795f
mov eax, 0x78
mov byte [edi + eax], 0
push 0xd
push edi
call fcn.0054e1ec
add esp, 8
test eax, eax
je 0x487975
mov byte [eax], 0
push 0xa
push edi
call fcn.0054e1ec
add esp, 8
test eax, eax
je 0x487987
mov byte [eax], 0
cmp byte [edi], 0
jne 0x48799d
push esi
push edi
mov esi, 0x565d78
mov eax, edi
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop edi
pop esi
jmp 0x4879d1
push edi
push 0x565d83
push ebx
call sub.USER32.dll_wsprintfA
add esp, 0xc
push esi
push edi
mov esi, edi
mov edi, 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 edi
pop esi
push 0
push 0
push dword [0x56f018]
push dword [0x565d60]
call sub.WSOCK32.dll_WSAAsyncSelect
push edi
push 0
push 0x930
call fcn.0042c771
push eax
push ebx
call sub.USER32.dll_wsprintfA
add esp, 0xc
cmp byte [0x581290], 0
je 0x487a38
push 0x565d89
push ebx
call fcn.0054e1b0
add esp, 8
push 0x581290
push 0
push 0x931
call fcn.0042c771
push eax
push ebx
call fcn.0054e28c
pop ecx
add eax, ebx
push eax
call sub.USER32.dll_wsprintfA
add esp, 0xc
push 0x40
push 0x565d8d
push 0x58118c
call fcn.005541f4
add esp, 0xc
mov dword [0x565d58], eax
cmp dword [0x565d58], 0
jne 0x487aca
push 0x58118c
push 0
push 0x932
call fcn.0042c771
push eax
push ebx
call fcn.0054e28c
pop ecx
add eax, ebx
push eax
call sub.USER32.dll_wsprintfA
add esp, 0xc
xor eax, eax
mov dword [0x56cd18], eax
mov dword [0x56cd28], 1
push dword [0x5618f8]
push ebx
push dword [esi]
call fcn.004f0245
push edi
push 0x933
call fcn.0042c771
push 0
push edi
call fcn.0054e28c
pop ecx
push eax
push edi
push dword [0x565d60]
call sub.WSOCK32.dll_send
push 2
call fcn.00487664
jmp 0x487c39
cmp dword [0x565d54], 0
je 0x487af3
xor edx, edx
mov dword [0x56cd18], edx
mov dword [0x56cd28], 1
push dword [0x5618f8]
push ebx
push dword [esi]
call fcn.004f0245
xor esi, esi
jmp 0x487b14
push edi
call fcn.0054e28c
pop ecx
push eax
push edi
push ebx
call fcn.0054e4e8
add esp, 0xc
test eax, eax
jne 0x487b14
mov esi, 1
jmp 0x487b2c
push dword [0x565d58]
push 0x3e7
push ebx
call fcn.0055181c
add esp, 0xc
test eax, eax
jne 0x487af7
test esi, esi
jne 0x487b8d
push 0x565d90
push edi
call fcn.0054e450
add esp, 8
test eax, eax
jne 0x487b6f
push edi
push 0x934
call fcn.0042c771
push 0
push edi
call fcn.0054e28c
pop ecx
push eax
push edi
push dword [0x565d60]
call sub.WSOCK32.dll_send
push 2
call fcn.00487664
jmp 0x487c39
push dword [0x565d58]
call fcn.00552390
pop ecx
push edi
mov esi, str._default_
mov eax, edi
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop edi
jmp 0x487af3
push 0x22
push 0x8030
push dword [0x56f018]
push dword [0x565d60]
call sub.WSOCK32.dll_WSAAsyncSelect
push dword [0x565d58]
push 0x3e7
push ebx
call fcn.0055181c
add esp, 0xc
test eax, eax
jne 0x487bc6
push 2
call fcn.00487664
jmp 0x487c39
push ebx
call fcn.004acab3
test eax, eax
je 0x487bd9
push 2
call fcn.00487664
jmp 0x487c39
push ebx
call fcn.0048781a
test eax, eax
je 0x487c2e
push 0xa
push ebx
call fcn.0054e1ec
add esp, 8
test eax, eax
jne 0x487c00
push 0x565da6
push ebx
call fcn.0054e1b0
add esp, 8
push 0
push ebx
call fcn.0054e28c
pop ecx
push eax
push ebx
push dword [0x565d60]
call sub.WSOCK32.dll_send
inc eax
jne 0x487c2e
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x487c39
push 2
call fcn.00487664
jmp 0x487c39
push 0x3e7
push ebx
call fcn.0042e6b1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4