Function at 0x482570
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 0x4da533
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 0x482a2d
nop dword [eax]
nop dword [eax + eax]
mov al, byte [edi + 0x478]
test al, al
jne 0x4826c6
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.00480760
test al, al
jne 0x482682
cmp byte [edi + 0x43c], al
je 0x4828b2
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.004806b0
mov eax, dword [sym.imp.KERNEL32.dll_GetTickCount]
call eax
mov eax, dword [ebp - 0x48]
cmp eax, 0x10
jb 0x48286c
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.00433760
jmp 0x48286c
cmp byte [edi + 0x43c], 0
je 0x4828b2
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.004806b0
mov eax, dword [sym.imp.KERNEL32.dll_GetTickCount]
call eax
mov eax, dword [ebp - 0x60]
cmp eax, 0x10
jb 0x4826c6
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.004805d0
test al, al
je 0x48271e
movzx esi, word [ebp - 0x80]
lea ecx, [edi + 0x474]
push esi
push dword [ecx + 0x10]
call fcn.00480890
cmp eax, esi
lea esi, [edi + 0x474]
sete al
jmp 0x482720
xor al, al
test al, al
je 0x48284b
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.004a65b0
mov ecx, eax
add esp, 8
mov dword [ebp - 0x44], ecx
test ecx, ecx
jne 0x482769
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
jmp 0x482780
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 0x4829e4
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.00480a10
test al, al
jne 0x4828ea
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2746
jne 0x4827ea
inc dword [ebp - 0x7c]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4827f8
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 0x4828d3
cmp byte [edi + 0x43c], 0
je 0x4828bc
push 0x2710
push dword [edi + 0x438]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4828bc
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x44]
call fcn.004a5d88
add esp, 4
jmp 0x482887
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x482859
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 0x4828b2
push 0x2710
push dword [edi + 0x438]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4828b2
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 0x482a1b
lea esi, [edi + 0x440]
jmp 0x4825f0
mov eax, 6
jmp 0x482a37
push dword [ebp - 0x44]
mov esi, 6
call fcn.004a5d88
add esp, 4
mov eax, esi
jmp 0x482a37
push dword [ebp - 0x44]
mov esi, 4
call fcn.004a5d88
add esp, 4
mov eax, esi
jmp 0x482a37
xorps xmm0, xmm0
movups xmmword [ebp - 0xac], xmm0
mov byte [ebp - 4], 1
movzx eax, word [ebp - 0x86]
sub eax, 0
je 0x4829a5
sub eax, 2
mov eax, dword [edi + 0x474]
je 0x482951
cmp eax, 0xffffffff
je 0x48291f
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.004a5d88
add esp, 4
push dword [ebp - 0x44]
call fcn.004a5d88
add esp, 4
mov eax, esi
jmp 0x482a37
cmp eax, 0xffffffff
je 0x48295d
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.004a5d88
add esp, 4
push dword [ebp - 0x44]
call fcn.004a5d88
add esp, 4
mov eax, esi
jmp 0x482a37
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.00482d30
xor esi, esi
push esi
call fcn.004a5d88
add esp, 4
push dword [ebp - 0x44]
call fcn.004a5d88
add esp, 4
mov eax, esi
jmp 0x482a37
mov eax, dword [edi + 0x474]
cmp eax, 0xffffffff
je 0x4829f6
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.004a5d88
add esp, 4
mov eax, esi
jmp 0x482a37
cmp esi, 3
jl 0x482a27
mov eax, 4
jmp 0x482a37
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.004a5d13
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4