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

Disassembly:
sub esp, 0x54
mov eax, dword [0x4cbba0]
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 0x479aed
mov ecx, dword [esp + 0x78]
test ecx, ecx
je 0x479aed
mov edi, dword [esp + 0x7c]
test di, di
je 0x479aed
cmp eax, 1
je 0x47993e
cmp eax, 6
je 0x47993e
mov eax, dword [ebx + 0x5c]
test eax, eax
jne 0x47961f
mov eax, dword [0x4ccb50]
cmp dword [eax + 0x840], 4
jne 0x479b5c
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 0x4795e0
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 0x479610
jmp 0x479b4a
push 0
push 0x1770
mov ecx, ebx
call fcn.00479070
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00482450
mov eax, dword [0x4ccb50]
mov edx, dword [esi]
push 0
push 4
add eax, 0x4ec
push eax
mov ecx, esi
call dword [edx + 0x10]
mov eax, dword [0x4ccb50]
mov edx, dword [esi]
push 4
push 4
add eax, 0x4f8
push eax
mov ecx, esi
call dword [edx + 0x10]
mov eax, dword [0x4ccb50]
mov edx, dword [esi]
push 8
push 2
add eax, 0x502
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 [0x4ccb50]
cmp cx, word [eax + 0x854]
jne 0x4796a7
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
jmp 0x47970a
mov dx, word [ebp]
mov ecx, 0x4b31b4
cmp dx, word [ecx]
mov dword [esp + 0x18], 0x251c
jne 0x4796d6
add eax, 0x230
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 0x479714
mov dx, word [ebp]
mov ecx, 0x4b31b0
cmp dx, word [ecx]
jne 0x4796eb
add eax, 0x244
jmp 0x4796c2
mov dx, word [ebp]
mov ecx, 0x4b24e8
cmp dx, word [ecx]
jne 0x479700
add eax, 0x258
jmp 0x4796c2
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, 0x4ccbf0
call fcn.0046fbc0
mov dx, word [ebp]
mov word [esi + 0x68c], dx
mov eax, dword [0x4ccb50]
cmp dword [eax + 0x4f4], 9
jne 0x479736
push 0
mov ecx, esi
call fcn.004822e0
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 0x479770
mov cx, word [0x4b0f1c]
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 0x479790
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 0x4797b0
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 0x4797c4
sub eax, ebp
mov ebp, dword [esi]
push edi
push eax
push edx
mov ecx, esi
call dword [ebp + 0x14]
mov eax, dword [0x4ccb50]
mov ecx, dword [eax + 0x85c]
xor ebp, ebp
cmp ecx, ebp
je 0x4797fd
mov edx, dword [eax + 0x1c]
lea ecx, [eax + 0x860]
push ecx
push 1
push edx
add eax, 0x86c
push eax
jmp 0x479807
mov eax, dword [eax + 0x1c]
push ebp
push ebp
push eax
lea ecx, [ebx + 4]
push ecx
mov ecx, esi
call fcn.00482570
mov dword [esi + 0x670], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0xfa0
mov dword [esi + 0x674], eax
mov eax, dword [0x4ccb50]
xor edx, edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
add eax, 0x140
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.0042b910
mov ecx, dword [0x4ccb50]
mov eax, dword [ecx + 0x4f4]
cmp eax, 1
je 0x4798fe
cmp eax, 6
je 0x4798fe
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
push ebp
push edx
push eax
mov ecx, ebx
call fcn.00478e40
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 [0x4ca3ac]
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.004a17d1
add esp, 0x54
ret 0x20
push 0
push 0x1770
mov ecx, ebx
call fcn.00479070
mov esi, eax
push 4
mov ecx, esi
call fcn.00482450
mov eax, dword [0x4ccb50]
mov edx, dword [esi]
push 0
push 4
add eax, 0x4ec
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 0x4799d0
mov dx, word [0x4b0f1c]
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 0x4799f0
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 0x479a10
sub eax, edx
mov edx, eax
mov eax, ebp
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x479a20
sub eax, edi
mov edi, dword [esi]
push edx
push eax
push ebp
mov ecx, esi
call dword [edi + 0x14]
mov eax, dword [0x4ccb50]
mov ecx, dword [eax + 0x85c]
test ecx, ecx
je 0x479a57
mov edx, dword [eax + 0x1c]
lea ecx, [eax + 0x860]
push ecx
push 1
push edx
add eax, 0x86c
push eax
jmp 0x479a63
mov eax, dword [eax + 0x1c]
push 0
push 0
push eax
lea ecx, [ebx + 4]
push ecx
mov ecx, esi
call fcn.00482570
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.0042b910
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 0x47990d
mov ecx, dword [0x4ccb50]
cmp dword [ecx + 0x840], 4
jne 0x479b5c
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 0x479b10
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 0x479b40
mov ecx, dword [0x4ccb50]
push eax
push edi
push 0x5c2
call fcn.004667a0
mov ecx, dword [esp + 0x60]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004a17d1
add esp, 0x54
ret 0x20