Function at 0x47a140
Capabilities:
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x4a8b8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x780
mov eax, dword [0x4cbba0]
xor eax, esp
push ebx
mov ebx, dword [esp + 0x794]
push ebp
push esi
mov esi, dword [esp + 0x7a0]
mov ebp, ecx
mov dword [esp + 0x788], eax
mov eax, dword [ebx]
push edi
mov ecx, ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], esi
call dword [eax + 0x1c]
cmp ax, 0x67
jne 0x47a30d
mov edx, dword [ebx]
xor eax, eax
mov ecx, 0x32
lea edi, [esp + 0x6c4]
rep stosd dword es:[edi], eax
mov ecx, ebx
call dword [edx]
mov esi, eax
mov ecx, 8
lea edi, [esp + 0x6c4]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 4]
push eax
mov word [esp + 0x6e0], 0x68
call dword [sym.imp.WS2_32.dll_inet_ntoa]
lea edx, [esp + 0x6e4]
jmp 0x47a1e0
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x47a1e0
lea edi, [esp + 0x6e4]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x47a1f2
mov cx, word [0x4b0f1c]
lea eax, [esp + 0x6e4]
mov word [edi], cx
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47a210
sub eax, edx
lea edx, [esp + eax + 0x6e4]
xor eax, eax
mov ax, word [esi + 2]
push 0xa
push edx
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, ax
push ecx
call dword [sym.imp.MSVCR71.dll__itoa]
lea eax, [esp + 0x6f0]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47a247
sub eax, edx
lea edi, [eax + 0x21]
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x47a2b7
push edi
lea edx, [esp + 0x6c8]
push edx
lea eax, [esp + 0x6d6]
push eax
call dword [sym.imp.MSVCR71.dll_memmove]
mov eax, dword [0x4ccb50]
lea ecx, [eax + 0x860]
mov edx, dword [ecx]
mov dword [esp + 0x6d0], edx
mov edx, dword [ecx + 4]
add esp, 0xc
mov dword [esp + 0x6c8], edx
mov cx, word [ecx + 8]
push edi
lea edx, [esp + 0x6d2]
mov word [esp + 0x6d0], cx
push edx
lea ecx, [eax + 0x86c]
call fcn.00487f10
add edi, 0xa
jmp 0x47a2ee
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x47a2c9
push edi
lea eax, [esp + 0x6c8]
push eax
jmp 0x47a2e6
lea eax, [esp + 0x6e4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47a2d3
sub eax, edx
inc eax
push eax
lea ecx, [esp + 0x6e8]
push ecx
lea ecx, [ebp + 4]
call fcn.00487f10
mov eax, dword [0x4ca3ac]
push 0x10
push esi
push 0
push edi
lea edx, [esp + 0x6d4]
push edx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
jmp 0x47a657
mov eax, dword [0x4ccb50]
mov ecx, dword [eax + 0x840]
mov edi, 4
cmp ecx, edi
je 0x47a32f
mov cl, byte [eax + 0x83d]
test cl, cl
je 0x47a657
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x1c]
cmp ax, 0x1770
jne 0x47a56f
mov eax, dword [ebx]
push 0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
mov ecx, ebx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], edi
call dword [eax + 0x18]
lea ecx, [esp + 0x30]
call fcn.004845e0
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x10]
push eax
push 0
push 0x1771
lea ecx, [esp + 0x3c]
push ecx
mov ecx, ebp
mov dword [esp + 0x7a8], 0
call fcn.00478dc0
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x20]
cmp ax, 0xa
jne 0x47a453
mov eax, dword [ebx]
push edi
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x28]
push edx
mov ecx, ebx
mov dword [esp + 0x20], edi
call dword [eax + 0x18]
mov eax, dword [ebx]
push 8
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
mov ecx, ebx
mov dword [esp + 0x20], 2
call dword [eax + 0x18]
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x47a436
mov ecx, dword [esp + 0x20]
mov dx, word [esp + 0x1c]
mov dword [esp + 0x50], ecx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x48]
push ecx
mov ecx, 0x4ccbf0
mov word [esp + 0x46], dx
call fcn.0046fbc0
mov edx, dword [0x4ccb50]
add edx, 0x140
push edx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esi + 4], eax
call dword [sym.imp.MSVCR71.dll_rand]
cdq
mov ecx, 0xa
idiv ecx
add edx, 0x1b58
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 2], ax
jmp 0x47a453
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 2], ax
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x670]
mov eax, dword [0x4ca3ac]
push 0x10
push esi
push 0
push ecx
lea edx, [esp + 0x44]
push edx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
mov edi, dword [esp + 0x18]
xor ebp, ebp
add edi, 0x20
xor esi, esi
lea esp, [esp]
mov eax, dword [edi + 4]
test eax, eax
je 0x47a4c5
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jae 0x47a4c5
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x24]
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 0xc]
cmp dword [eax + esi], edx
jne 0x47a4bf
mov ecx, dword [ecx + 0x10]
cmp dword [eax + esi + 4], ecx
je 0x47a556
inc ebp
add esi, 0xc
jmp 0x47a480
mov eax, dword [ebx + 4]
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [esp + 0x24]
add eax, 0x4e20
push ecx
mov ecx, edi
mov dword [esp + 0x30], eax
call fcn.0047a0a0
mov edx, dword [ebx]
push 0x2c
push 2
mov ecx, ebx
call dword [edx + 8]
cmp eax, 2
jne 0x47a556
mov eax, dword [ebx]
push 0
mov ecx, ebx
call dword [eax + 0x10]
push eax
call dword [sym.imp.MSVCR71.dll_atoi]
push 0
mov edi, eax
call dword [sym.imp.MSVCR71.dll_time]
mov edx, dword [ebx]
add esp, 8
push 1
mov ecx, ebx
mov ebp, eax
call dword [edx + 0x10]
mov esi, eax
mov ecx, esi
lea eax, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x47a530
push 0
sub ecx, eax
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc]
push ecx
mov ecx, dword [esp + 0x18]
push esi
push ebp
push ecx
mov ecx, dword [0x4ccb4c]
push eax
push edi
call fcn.00465d70
lea ecx, [esp + 0x30]
mov dword [esp + 0x798], 0xffffffff
call fcn.00484610
jmp 0x47a657
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x1c]
cmp ax, 0x1771
jne 0x47a5e7
lea edi, [ebp + 0x44]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0x34]
mov esi, dword [eax]
cmp esi, eax
je 0x47a5de
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x14]
mov ecx, dword [esi + 8]
cmp dword [ecx + 0x654], eax
je 0x47a5b3
mov esi, dword [esi]
cmp esi, dword [ebp + 0x34]
jne 0x47a595
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x47a657
mov edx, dword [ecx]
push 1
call dword [edx + 0x3c]
cmp esi, dword [ebp + 0x34]
je 0x47a5de
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov dword [eax], ecx
mov edx, dword [esi]
mov eax, dword [esi + 4]
push esi
mov dword [edx + 4], eax
call sub.MFC71.DLL_operator_delete_1
mov eax, dword [ebp + 0x38]
add esp, 4
dec eax
mov dword [ebp + 0x38], eax
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x47a657
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x1c]
cmp ax, 0x1b59
jne 0x47a650
lea edi, [ebp + 0x44]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0x34]
mov esi, dword [eax]
cmp esi, eax
je 0x47a647
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x14]
lea ecx, [ecx]
mov ecx, dword [esi + 8]
cmp dword [ecx + 0x654], eax
je 0x47a62b
mov esi, dword [esi]
cmp esi, dword [ebp + 0x34]
jne 0x47a610
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x47a657
mov dword [ebp + 0x40], 1
mov edx, dword [ecx]
push 1
call dword [edx + 0x3c]
push esi
lea eax, [esp + 0x14]
push eax
lea ecx, [ebp + 0x30]
call fcn.0042b610
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x47a657
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x1c]
mov ecx, dword [esp + 0x790]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x780]
pop ebx
xor ecx, esp
call fcn.004a17d1
add esp, 0x78c
ret 0xc