Function at 0x482050
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 0x4d9ef3
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 0x48250d
nop dword [eax]
nop dword [eax + eax]
mov al, byte [edi + 0x478]
test al, al
jne 0x4821a6
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.00480240
test al, al
jne 0x482162
cmp byte [edi + 0x43c], al
je 0x482392
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.00480190
mov eax, dword [sym.imp.KERNEL32.dll_GetTickCount]
call eax
mov eax, dword [ebp - 0x48]
cmp eax, 0x10
jb 0x48234c
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.00433760
jmp 0x48234c
cmp byte [edi + 0x43c], 0
je 0x482392
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.00480190
mov eax, dword [sym.imp.KERNEL32.dll_GetTickCount]
call eax
mov eax, dword [ebp - 0x60]
cmp eax, 0x10
jb 0x4821a6
inc eax
lea ecx, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
call fcn.00433760
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.004800b0
test al, al
je 0x4821fe
movzx esi, word [ebp - 0x80]
lea ecx, [edi + 0x474]
push esi
push dword [ecx + 0x10]
call fcn.00480370
cmp eax, esi
lea esi, [edi + 0x474]
sete al
jmp 0x482200
xor al, al
test al, al
je 0x48232b
xor eax, eax
mov dword [ebp - 0x38], 0xf000
push 0x5142bc
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.004a600d
mov ecx, eax
add esp, 8
mov dword [ebp - 0x44], ecx
test ecx, ecx
jne 0x482249
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
jmp 0x482260
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 0x4824c4
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.004804f0
test al, al
jne 0x4823ca
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2746
jne 0x4822ca
inc dword [ebp - 0x7c]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4822d8
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 0x4823b3
cmp byte [edi + 0x43c], 0
je 0x48239c
push 0x2710
push dword [edi + 0x438]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x48239c
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x44]
call fcn.004a5802
add esp, 4
jmp 0x482367
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x482339
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 0x482392
push 0x2710
push dword [edi + 0x438]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x482392
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 0x4824fb
lea esi, [edi + 0x440]
jmp 0x4820d0
mov eax, 6
jmp 0x482517
push dword [ebp - 0x44]
mov esi, 6
call fcn.004a5802
add esp, 4
mov eax, esi
jmp 0x482517
push dword [ebp - 0x44]
mov esi, 4
call fcn.004a5802
add esp, 4
mov eax, esi
jmp 0x482517
xorps xmm0, xmm0
movups xmmword [ebp - 0xac], xmm0
mov byte [ebp - 4], 1
movzx eax, word [ebp - 0x86]
sub eax, 0
je 0x482485
sub eax, 2
mov eax, dword [edi + 0x474]
je 0x482431
cmp eax, 0xffffffff
je 0x4823ff
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.004a5802
add esp, 4
push dword [ebp - 0x44]
call fcn.004a5802
add esp, 4
mov eax, esi
jmp 0x482517
cmp eax, 0xffffffff
je 0x48243d
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.004a5802
add esp, 4
push dword [ebp - 0x44]
call fcn.004a5802
add esp, 4
mov eax, esi
jmp 0x482517
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.00482810
xor esi, esi
push esi
call fcn.004a5802
add esp, 4
push dword [ebp - 0x44]
call fcn.004a5802
add esp, 4
mov eax, esi
jmp 0x482517
mov eax, dword [edi + 0x474]
cmp eax, 0xffffffff
je 0x4824d6
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.004a5802
add esp, 4
mov eax, esi
jmp 0x482517
cmp esi, 3
jl 0x482507
mov eax, 4
jmp 0x482517
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.004a578d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4