Function at 0x480a70
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d89b3
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xa0
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebx + 8]
lea esi, [edi + 0x440]
mov dword [ebp - 0x9c], eax
xor ecx, ecx
mov eax, dword [esi + 4]
sub eax, dword [esi]
sar eax, 2
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x78], ecx
test eax, eax
je 0x480f2d
nop dword [eax]
nop dword [eax + eax]
mov al, byte [edi + 0x478]
test al, al
jne 0x480bc6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebp - 0x78]
mov esi, dword [esi]
push ecx
lea eax, [edx*4]
add esi, eax
movzx eax, word [edi + 0x464]
push eax
call dword [sym.imp.WS2_32.dll_htons]
movzx eax, ax
lea ecx, [edi + 0x474]
push eax
push dword [esi]
call fcn.0047ec60
test al, al
jne 0x480b82
cmp byte [edi + 0x43c], al
je 0x480db2
mov ecx, dword [ebp - 0x78]
mov edx, dword [edi + 0x440]
lea eax, [ecx*4]
mov edx, dword [eax + edx]
lea ecx, [ebp - 0x5c]
call fcn.0047ebb0
mov eax, dword [sym.imp.KERNEL32.dll_GetTickCount]
call eax
mov eax, dword [ebp - 0x48]
cmp eax, 0x10
jb 0x480d6c
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.004339b0
jmp 0x480d6c
cmp byte [edi + 0x43c], 0
je 0x480db2
mov ecx, dword [ebp - 0x78]
mov edx, dword [edi + 0x440]
lea eax, [ecx*4]
lea ecx, [ebp - 0x74]
mov edx, dword [edx + eax]
call fcn.0047ebb0
mov eax, dword [sym.imp.KERNEL32.dll_GetTickCount]
call eax
mov eax, dword [ebp - 0x60]
cmp eax, 0x10
jb 0x480bc6
inc eax
lea ecx, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
call fcn.004339b0
mov eax, dword [edi + 0x488]
lea esi, [edi + 0x474]
sub eax, dword [esi + 0x10]
movzx eax, ax
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x9c]
push dword [esi + 0x10]
mov dword [ebp - 0x84], 1
lea ecx, [eax + 0x14]
call fcn.0047ead0
test al, al
je 0x480c1e
movzx esi, word [ebp - 0x80]
lea ecx, [edi + 0x474]
push esi
push dword [ecx + 0x10]
call fcn.0047ed90
cmp eax, esi
lea esi, [edi + 0x474]
sete al
jmp 0x480c20
xor al, al
test al, al
je 0x480d4b
xor eax, eax
mov dword [ebp - 0x38], 0xf000
push 0x51423c
push 0xf000
mov dword [ebp - 0x34], 0
mov word [ebp - 0x30], ax
mov dword [ebp - 0x2c], eax
mov word [ebp - 0x28], ax
mov byte [ebp - 0x16], al
call fcn.004a4fda
mov ecx, eax
add esp, 8
mov dword [ebp - 0x44], ecx
test ecx, ecx
jne 0x480c69
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
jmp 0x480c80
movups xmm0, xmmword [str._3f_d8F_jn95ep]
lea eax, [ecx + 0xf000]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], eax
movups xmmword [ebp - 0x26], xmm0
mov dword [ebp - 4], 0
test ecx, ecx
je 0x480ee4
xor eax, eax
mov dword [ebp - 0x96], 0x10000
mov word [ebp - 0x92], ax
mov ecx, esi
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], eax
mov eax, 0xd85d
mov word [ebp - 0x98], ax
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0047ef10
test al, al
jne 0x480dea
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2746
jne 0x480cea
inc dword [ebp - 0x7c]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x480cf8
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi], 0xffffffff
mov byte [esi + 4], 0
mov esi, dword [ebp - 0x7c]
cmp esi, 3
jg 0x480dd3
cmp byte [edi + 0x43c], 0
je 0x480dbc
push 0x2710
push dword [edi + 0x438]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x480dbc
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x44]
call fcn.004a47b2
add esp, 4
jmp 0x480d87
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x480d59
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi], 0xffffffff
mov byte [esi + 4], 0
cmp byte [edi + 0x43c], 0
je 0x480db2
push 0x2710
push dword [edi + 0x438]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x480db2
mov esi, dword [ebp - 0x7c]
mov eax, dword [edi + 0x444]
lea ecx, [edi + 0x440]
mov edx, dword [ebp - 0x78]
sub eax, dword [ecx]
inc edx
sar eax, 2
mov dword [ebp - 0x78], edx
cmp edx, eax
jae 0x480f1b
lea esi, [edi + 0x440]
jmp 0x480af0
mov eax, 6
jmp 0x480f37
push dword [ebp - 0x44]
mov esi, 6
call fcn.004a47b2
add esp, 4
mov eax, esi
jmp 0x480f37
push dword [ebp - 0x44]
mov esi, 4
call fcn.004a47b2
add esp, 4
mov eax, esi
jmp 0x480f37
xorps xmm0, xmm0
movups xmmword [ebp - 0xac], xmm0
mov byte [ebp - 4], 1
movzx eax, word [ebp - 0x86]
sub eax, 0
je 0x480ea5
sub eax, 2
mov eax, dword [edi + 0x474]
je 0x480e51
cmp eax, 0xffffffff
je 0x480e1f
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
push 0
mov dword [edi + 0x474], 0xffffffff
mov esi, 4
mov byte [edi + 0x478], 0
call fcn.004a47b2
add esp, 4
push dword [ebp - 0x44]
call fcn.004a47b2
add esp, 4
mov eax, esi
jmp 0x480f37
cmp eax, 0xffffffff
je 0x480e5d
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 0x78]
push dword [ebp - 0x8c]
mov dword [edi + 0x474], 0xffffffff
mov byte [edi + 0x478], 0
mov eax, dword [edi + 0x440]
lea esi, [eax + ecx*4]
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esi], eax
xor esi, esi
push esi
call fcn.004a47b2
add esp, 4
push dword [ebp - 0x44]
call fcn.004a47b2
add esp, 4
mov eax, esi
jmp 0x480f37
mov edx, dword [ebp - 0x78]
lea eax, [edi + 0x44c]
push eax
mov eax, dword [edi + 0x440]
lea ecx, [edi + 0x440]
push dword [eax + edx*4]
lea eax, [ebp - 0x44]
push ecx
push eax
mov ecx, edi
call fcn.00481230
xor esi, esi
push esi
call fcn.004a47b2
add esp, 4
push dword [ebp - 0x44]
call fcn.004a47b2
add esp, 4
mov eax, esi
jmp 0x480f37
mov eax, dword [edi + 0x474]
cmp eax, 0xffffffff
je 0x480ef6
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [ebp - 0x44]
mov dword [edi + 0x474], 0xffffffff
mov esi, 7
mov byte [edi + 0x478], 0
call fcn.004a47b2
add esp, 4
mov eax, esi
jmp 0x480f37
cmp esi, 3
jl 0x480f27
mov eax, 4
jmp 0x480f37
mov ecx, dword [ebp - 0x84]
xor eax, eax
test ecx, ecx
setne al
add eax, 2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a474b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4