Function at 0x46d480
Capabilities:
Check for time delay via gettickcount
Send data
Send data on socket

Disassembly:
sub esp, 0x54
mov eax, dword [0x4bc410]
xor eax, esp
push ebx
push ebp
mov ebp, dword [esp + 0x78]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x6c]
test eax, eax
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x10], ebp
je 0x46da0d
mov ecx, dword [esp + 0x78]
test ecx, ecx
je 0x46da0d
mov edi, dword [esp + 0x7c]
test di, di
je 0x46da0d
cmp eax, 1
je 0x46d85e
cmp eax, 6
je 0x46d85e
mov eax, dword [ebx + 0x5c]
test eax, eax
jne 0x46d53f
mov eax, dword [0x4bd2c0]
cmp dword [eax + 0x7c8], 4
jne 0x46da7c
push 0xc
call sub.MFC71.DLL_operator_new
mov edi, eax
mov eax, ebp
add esp, 4
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46d500
sub eax, edx
inc eax
push eax
call sub.MFC71.DLL_operator_new
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x6c]
mov dword [edi], ecx
mov ecx, dword [esp + 0x74]
mov esi, eax
add esp, 4
mov dword [edi + 8], ecx
mov dword [edi + 4], edx
mov ecx, ebp
sub esi, ebp
lea ecx, [ecx]
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x46d530
jmp 0x46da6a
push 0
push 0x1770
mov ecx, ebx
call fcn.0046cf90
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00477800
mov eax, dword [0x4bd2c0]
mov edx, dword [esi]
push 0
push 4
add eax, 0x474
push eax
mov ecx, esi
call dword [edx + 0x10]
mov eax, dword [0x4bd2c0]
mov edx, dword [esi]
push 4
push 4
add eax, 0x480
push eax
mov ecx, esi
call dword [edx + 0x10]
mov eax, dword [0x4bd2c0]
mov edx, dword [esi]
push 8
push 2
add eax, 0x48a
push eax
mov ecx, esi
call dword [edx + 0x10]
mov edx, dword [esi]
mov ecx, esi
call dword [edx]
mov ebp, dword [esp + 0x84]
mov cx, word [ebp]
mov edi, eax
mov eax, dword [0x4bd2c0]
cmp cx, word [eax + 0x7dc]
jne 0x46d5c7
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
jmp 0x46d62a
mov dx, word [ebp]
mov ecx, 0x4a5fe8
cmp dx, word [ecx]
mov dword [esp + 0x18], 0x251c
jne 0x46d5f6
add eax, 0x1b8
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [esp + 0x14], eax
jmp 0x46d634
mov dx, word [ebp]
mov ecx, 0x4a512c
cmp dx, word [ecx]
jne 0x46d60b
add eax, 0x1cc
jmp 0x46d5e2
mov dx, word [ebp]
mov ecx, 0x4a5724
cmp dx, word [ecx]
jne 0x46d620
add eax, 0x1e0
jmp 0x46d5e2
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, 0x4bd360
call fcn.00463580
mov dx, word [ebp]
mov word [esi + 0x68c], dx
mov eax, dword [0x4bd2c0]
cmp dword [eax + 0x47c], 9
jne 0x46d656
push 0
mov ecx, esi
call fcn.00477690
mov ecx, dword [esp + 0x78]
mov dx, word [esp + 0x7c]
mov word [edi + 0xa], dx
mov dword [edi + 0x1c], ecx
mov eax, dword [esp + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [esp + 0x68]
mov cx, word [esp + 0x18]
push 0xa
lea edx, [esp + 0x30]
push edx
push eax
mov word [edi + 8], cx
call dword [sym.imp.MSVCR71.dll__itoa]
lea edi, [esp + 0x38]
add esp, 0xc
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46d690
mov cx, word [0x4a3ffc]
lea eax, [esp + 0x2c]
mov word [edi], cx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46d6b0
sub eax, edx
mov edx, dword [esi]
push 0
push eax
lea eax, [esp + 0x34]
push eax
mov ecx, esi
call dword [edx + 0x14]
lea eax, [esp + 0x2c]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46d6d0
sub eax, edx
mov edx, dword [esp + 0x10]
mov edi, eax
mov eax, edx
lea ebp, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46d6e4
sub eax, ebp
mov ebp, dword [esi]
push edi
push eax
push edx
mov ecx, esi
call dword [ebp + 0x14]
mov eax, dword [0x4bd2c0]
mov ecx, dword [eax + 0x7e4]
xor ebp, ebp
cmp ecx, ebp
je 0x46d71d
mov edx, dword [eax + 0x1c]
lea ecx, [eax + 0x7e8]
push ecx
push 1
push edx
add eax, 0x7f4
push eax
jmp 0x46d727
mov eax, dword [eax + 0x1c]
push ebp
push ebp
push eax
lea ecx, [ebx + 4]
push ecx
mov ecx, esi
call fcn.00477920
mov dword [esi + 0x670], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0xfa0
mov dword [esi + 0x674], eax
mov eax, dword [0x4bd2c0]
xor edx, edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
add eax, 0xc8
mov dword [esp + 0x24], edx
push eax
mov dword [esp + 0x2c], edx
mov word [esp + 0x20], 2
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x20], 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 edx, dword [esp + 0x20]
push edx
mov word [esp + 0x22], ax
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [esi + 0x680], eax
mov eax, dword [esp + 0x1e]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
lea edi, [ebx + 0x44]
push edi
mov word [esi + 0x688], ax
mov dword [esi + 0x684], ebp
mov word [esi + 0x68a], bp
mov dword [esi + 0x67c], ecx
mov dword [esi + 0x678], edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esp + 0x10]
push eax
lea ecx, [ebx + 0x30]
mov dword [esp + 0x14], esi
call fcn.00424c90
mov ecx, dword [0x4bd2c0]
mov eax, dword [ecx + 0x47c]
cmp eax, 1
je 0x46d81e
cmp eax, 6
je 0x46d81e
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
push ebp
push edx
push eax
mov ecx, ebx
call fcn.0046cd70
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x10
lea ecx, [esp + 0x20]
push ecx
push ebp
mov edx, dword [esi]
mov edi, dword [0x4bb384]
mov ecx, esi
call dword [edx + 4]
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
push eax
push edi
call dword [sym.imp.WS2_32.dll_sendto]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00496ace
add esp, 0x54
ret 0x20
push 0
push 0x1770
mov ecx, ebx
call fcn.0046cf90
mov esi, eax
push 4
mov ecx, esi
call fcn.00477800
mov eax, dword [0x4bd2c0]
mov edx, dword [esi]
push 0
push 4
add eax, 0x474
push eax
mov ecx, esi
call dword [edx + 0x10]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x6c]
xor eax, eax
mov dword [esi + 0x684], eax
mov word [esi + 0x68a], ax
mov eax, dword [esp + 0x70]
mov dword [esi + 0x680], ecx
mov ecx, dword [esp + 0x84]
mov dword [esi + 0x678], eax
mov word [esi + 0x688], di
mov dword [esi + 0x67c], edx
mov dx, word [ecx]
mov ecx, dword [esp + 0x68]
push 0xa
lea eax, [esp + 0x30]
push eax
push ecx
mov word [esi + 0x68c], dx
call dword [sym.imp.MSVCR71.dll__itoa]
lea edi, [esp + 0x38]
add esp, 0xc
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46d8f0
mov dx, word [0x4a3ffc]
lea eax, [esp + 0x2c]
mov word [edi], dx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46d910
sub eax, edx
mov edx, dword [esi]
push 0
push eax
lea eax, [esp + 0x34]
push eax
mov ecx, esi
call dword [edx + 0x14]
lea eax, [esp + 0x2c]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46d930
sub eax, edx
mov edx, eax
mov eax, ebp
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46d940
sub eax, edi
mov edi, dword [esi]
push edx
push eax
push ebp
mov ecx, esi
call dword [edi + 0x14]
mov eax, dword [0x4bd2c0]
mov ecx, dword [eax + 0x7e4]
test ecx, ecx
je 0x46d977
mov edx, dword [eax + 0x1c]
lea ecx, [eax + 0x7e8]
push ecx
push 1
push edx
add eax, 0x7f4
push eax
jmp 0x46d983
mov eax, dword [eax + 0x1c]
push 0
push 0
push eax
lea ecx, [ebx + 4]
push ecx
mov ecx, esi
call fcn.00477920
mov eax, dword [esp + 0x78]
xor edx, edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edx
push eax
mov dword [esp + 0x2c], edx
mov word [esp + 0x20], 2
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [esp + 0x7c]
push ecx
mov dword [esp + 0x24], eax
call dword [sym.imp.WS2_32.dll_htons]
lea edi, [ebx + 0x44]
push edi
mov word [esp + 0x22], ax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edx, [esp + 0x10]
push edx
lea ecx, [ebx + 0x30]
mov dword [esp + 0x14], esi
call fcn.00424c90
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esi + 0x670], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0xfa0
mov dword [esi + 0x674], eax
push 0x10
lea eax, [esp + 0x20]
push eax
push 0
jmp 0x46d82d
mov ecx, dword [0x4bd2c0]
cmp dword [ecx + 0x7c8], 4
jne 0x46da7c
push 0xc
call sub.MFC71.DLL_operator_new
mov edi, eax
mov eax, ebp
add esp, 4
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46da30
sub eax, edx
inc eax
push eax
call sub.MFC71.DLL_operator_new
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x6c]
mov dword [edi], edx
mov edx, dword [esp + 0x74]
mov esi, eax
add esp, 4
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov ecx, ebp
sub esi, ebp
lea ecx, [ecx]
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x46da60
mov ecx, dword [0x4bd2c0]
push eax
push edi
push 0x5c2
call fcn.0045a4e0
mov ecx, dword [esp + 0x60]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00496ace
add esp, 0x54
ret 0x20