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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 9
push 0
push 0
dec ecx
jne 0x5f0260
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x5f0872
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebx + 0x3684], 1
cmp dword [ebx + 0x3678], 0
je 0x5f0857
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebx + 0x3674]
mov edx, dword [setsockopt]
cmp eax, dword [edx + 0x1b84]
jb 0x5f02c7
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebx + 0x3678]
sub eax, dword [edx + 0x3674]
mov edx, dword [setsockopt]
cmp eax, dword [edx + 0x1b84]
jae 0x5f02e6
push 1
mov edx, dword [0x6c1390]
mov edx, dword [edx]
xor ecx, ecx
mov eax, ebx
call fcn.0060cf8c
mov eax, ebx
call fcn.005e4664
jmp 0x5f0857
mov eax, dword [ebx + 0x3678]
cmp byte [eax + 0x3684], 0
je 0x5f0834
mov byte [ebp - 5], 1
mov edx, dword [ebx + 0x418]
mov edx, dword [edx + 8]
mov ecx, dword [ebx + 0x367c]
add edx, dword [ecx + 8]
mov ecx, dword [ebx + 0x420]
sub ecx, edx
mov eax, dword [eax + 0x367c]
cmp ecx, dword [eax + 8]
jge 0x5f0339
mov byte [ebp - 5], 0
push 1
mov edx, dword [0x6c035c]
mov edx, dword [edx]
xor ecx, ecx
mov eax, ebx
call fcn.0060cf8c
mov eax, dword [ebx + 0x25c]
sub eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x3678]
cmp eax, dword [edx + 0x3680]
jge 0x5f0367
push 1
mov edx, dword [0x6c0584]
mov edx, dword [edx]
xor ecx, ecx
mov eax, ebx
call fcn.0060cf8c
mov byte [ebp - 5], 0
mov eax, dword [ebx + 0x3678]
mov edx, dword [eax + 0x418]
mov edx, dword [edx + 8]
mov ecx, dword [eax + 0x367c]
add edx, dword [ecx + 8]
mov eax, dword [eax + 0x420]
sub eax, edx
mov edx, dword [ebx + 0x367c]
cmp eax, dword [edx + 8]
jge 0x5f03a9
push 1
mov edx, dword [0x6c03d4]
mov edx, dword [edx]
xor ecx, ecx
mov eax, ebx
call fcn.0060cf8c
mov byte [ebp - 5], 0
mov eax, dword [ebx + 0x3678]
mov edx, dword [eax + 0x25c]
sub edx, dword [eax + 0x30]
cmp edx, dword [ebx + 0x3680]
jge 0x5f03d7
push 1
mov edx, dword [0x6c05d8]
mov edx, dword [edx]
xor ecx, ecx
mov eax, ebx
call fcn.0060cf8c
mov byte [ebp - 5], 0
cmp byte [ebp - 5], 0
je 0x5f082b
mov eax, dword [ebx + 0x367c]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x5f04f2
inc eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x367c]
call fcn.0041fbfc
mov esi, eax
test esi, esi
je 0x5f04e6
mov eax, dword [ebx + 0x3678]
mov eax, dword [eax + 0x418]
mov edx, esi
call fcn.0041fa54
mov edx, esi
mov eax, dword [ebx + 0x3678]
call fcn.005e3e6c
movzx edx, word [esi + 4]
mov eax, dword [0x6c0ec4]
mov eax, dword [eax]
call fcn.005bf910
mov edi, eax
test edi, edi
je 0x5f04e6
cmp byte [edi + 0x58], 1
jne 0x5f04e6
mov eax, dword [esi]
push eax
movzx eax, word [esi + 0xc]
push eax
lea eax, [ebp - 0x10]
mov edx, dword [ebx + 0x3678]
add edx, 0x15
call fcn.004055f8
mov eax, dword [ebp - 0x10]
push eax
push 0x5f0888
push 0x5f0888
push 0x5f0894
push esi
lea eax, [ebp - 0x14]
lea edx, [edi + 2]
call fcn.004055f8
mov ecx, dword [ebp - 0x14]
mov edx, 8
mov eax, ebx
call fcn.006421ac
mov eax, dword [esi]
push eax
movzx eax, word [esi + 0xc]
push eax
lea eax, [ebp - 0x18]
lea edx, [ebx + 0x15]
call fcn.004055f8
mov eax, dword [ebp - 0x18]
push eax
push 0x5f0888
push 0x5f0888
push 0x5f0894
push esi
lea eax, [ebp - 0x1c]
lea edx, [edi + 2]
call fcn.004055f8
mov ecx, dword [ebp - 0x1c]
mov edx, 7
mov eax, dword [ebx + 0x3678]
call fcn.006421ac
inc dword [ebp - 4]
dec dword [ebp - 0xc]
jne 0x5f03fe
mov eax, dword [ebx + 0x3680]
test eax, eax
jle 0x5f05b6
mov edx, dword [ebx + 0x3678]
add dword [edx + 0x30], eax
mov eax, dword [ebx + 0x3678]
call fcn.00613930
mov eax, dword [0x6c0a58]
cmp byte [eax], 0
je 0x5f05b6
push 0
mov eax, dword [ebx + 0x30]
push eax
lea eax, [ebp - 0x20]
mov edx, dword [ebx + 0x3678]
add edx, 0x15
call fcn.004055f8
mov eax, dword [ebp - 0x20]
push eax
push 0x5f08a4
lea edx, [ebp - 0x24]
mov eax, dword [ebx + 0x3680]
call fcn.0040a790
mov eax, dword [ebp - 0x24]
push eax
push 0x5f0894
push 0
mov ecx, 0x5f08b0
mov edx, 1
mov eax, ebx
call fcn.006421ac
push 0
mov esi, dword [ebx + 0x3678]
mov eax, dword [esi + 0x30]
push eax
lea eax, [ebp - 0x28]
lea edx, [ebx + 0x15]
call fcn.004055f8
mov eax, dword [ebp - 0x28]
push eax
push 0x5f08c0
lea edx, [ebp - 0x2c]
mov eax, dword [ebx + 0x3680]
call fcn.0040a790
mov eax, dword [ebp - 0x2c]
push eax
push 0x5f0894
push 0
mov ecx, 0x5f08b0
mov edx, 1
mov eax, esi
call fcn.006421ac
mov eax, dword [ebx + 0x3678]
mov eax, dword [eax + 0x367c]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x5f06c9
inc eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
mov eax, dword [ebx + 0x3678]
mov eax, dword [eax + 0x367c]
mov edx, dword [ebp - 4]
call fcn.0041fbfc
mov esi, eax
test esi, esi
je 0x5f06bd
mov edx, esi
mov eax, dword [ebx + 0x418]
call fcn.0041fa54
mov edx, esi
mov eax, ebx
call fcn.005e3e6c
movzx edx, word [esi + 4]
mov eax, dword [0x6c0ec4]
mov eax, dword [eax]
call fcn.005bf910
mov edi, eax
test edi, edi
je 0x5f06bd
cmp byte [edi + 0x58], 1
jne 0x5f06bd
mov eax, dword [esi]
push eax
movzx eax, word [esi + 0xc]
push eax
lea eax, [ebp - 0x30]
lea edx, [ebx + 0x15]
call fcn.004055f8
mov eax, dword [ebp - 0x30]
push eax
push 0x5f0888
push 0x5f0888
push 0x5f0894
push esi
lea eax, [ebp - 0x34]
lea edx, [edi + 2]
call fcn.004055f8
mov ecx, dword [ebp - 0x34]
mov edx, 8
mov eax, dword [ebx + 0x3678]
call fcn.006421ac
mov eax, dword [esi]
push eax
movzx eax, word [esi + 0xc]
push eax
lea eax, [ebp - 0x38]
mov edx, dword [ebx + 0x3678]
add edx, 0x15
call fcn.004055f8
mov eax, dword [ebp - 0x38]
push eax
push 0x5f0888
push 0x5f0888
push 0x5f0894
push esi
lea eax, [ebp - 0x3c]
lea edx, [edi + 2]
call fcn.004055f8
mov ecx, dword [ebp - 0x3c]
mov edx, 7
mov eax, ebx
call fcn.006421ac
inc dword [ebp - 4]
dec dword [ebp - 0xc]
jne 0x5f05d9
mov eax, dword [ebx + 0x3678]
mov eax, dword [eax + 0x3680]
test eax, eax
jle 0x5f0789
add dword [ebx + 0x30], eax
mov eax, ebx
call fcn.00613930
mov eax, dword [0x6c0a58]
cmp byte [eax], 0
je 0x5f0789
push 0
mov esi, dword [ebx + 0x3678]
mov eax, dword [esi + 0x30]
push eax
lea eax, [ebp - 0x40]
lea edx, [ebx + 0x15]
call fcn.004055f8
mov eax, dword [ebp - 0x40]
push eax
push 0x5f08a4
lea edx, [ebp - 0x44]
mov eax, dword [esi + 0x3680]
call fcn.0040a790
mov eax, dword [ebp - 0x44]
push eax
push 0x5f0894
push 0
mov ecx, 0x5f08b0
mov edx, 1
mov eax, esi
call fcn.006421ac
push 0
mov eax, dword [ebx + 0x30]
push eax
lea eax, [ebp - 0x48]
mov esi, dword [ebx + 0x3678]
lea edx, [esi + 0x15]
call fcn.004055f8
mov eax, dword [ebp - 0x48]
push eax
push 0x5f08c0
lea edx, [ebp - 0x4c]
mov eax, dword [esi + 0x3680]
call fcn.0040a790
mov eax, dword [ebp - 0x4c]
push eax
push 0x5f0894
push 0
mov ecx, 0x5f08b0
mov edx, 1
mov eax, ebx
call fcn.006421ac
mov esi, dword [ebx + 0x3678]
push 0
push 0
push 0
push 0
xor ecx, ecx
mov dx, 0x141c
mov eax, esi
call fcn.005e44bc
xor eax, eax
mov dword [esi + 0x3678], eax
mov byte [esi + 0x3670], 0
mov eax, dword [esi + 0x367c]
mov edx, dword [eax]
call dword [edx + 8]
xor eax, eax
mov dword [esi + 0x3680], eax
mov byte [esi + 0x3684], 0
push 0
push 0
push 0
push 0
xor ecx, ecx
mov dx, 0x141c
mov eax, ebx
call fcn.005e44bc
xor eax, eax
mov dword [ebx + 0x3678], eax
mov byte [ebx + 0x3670], 0
mov eax, dword [ebx + 0x367c]
mov edx, dword [eax]
call dword [edx + 8]
xor eax, eax
mov dword [ebx + 0x3680], eax
mov byte [ebx + 0x3684], 0
mov eax, ebx
call fcn.005fe068
mov eax, esi
call fcn.005fe068
xor eax, eax
mov dword [esi + 0x107c], eax
xor eax, eax
mov dword [ebx + 0x107c], eax
jmp 0x5f0857
mov eax, ebx
call fcn.005e4664
jmp 0x5f0857
test eax, eax
je 0x5f0857
cmp byte [eax + 0x22a], 0
jne 0x5f0857
push 0
push 0
push 0
push 0
mov ecx, 2
mov dx, 0x141c
call fcn.005e44bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f0879
lea eax, [ebp - 0x4c]
mov edx, 0x10
call fcn.004053b8
ret