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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xe
push 0
push 0
dec ecx
jne 0x5beaa0
push ecx
push ebx
push esi
push edi
mov edi, eax
xor eax, eax
push ebp
push 0x5bf25a
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x1c], eax
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0x18], eax
xor ecx, ecx
push ebp
push 0x5bf157
push dword fs:[ecx]
mov dword fs:[ecx], esp
xor eax, eax
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0xd], 0
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 4], eax
xor esi, esi
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [edi + 0x3c]
mov edx, dword [setsockopt]
cmp eax, dword [edx + 0x19e0]
jbe 0x5bed57
call sub.kernel32.dll_GetTickCount_1
mov dword [edi + 0x3c], eax
mov edx, dword [edi + 0x54]
mov eax, dword [edi + 0x7c]
cmp edx, dword [eax + 8]
jge 0x5beb22
call fcn.0041fbfc
mov esi, eax
mov eax, dword [edi + 0x54]
mov edx, dword [edi + 0x7c]
mov edx, dword [edx + 8]
dec edx
cmp eax, edx
jge 0x5beb35
inc dword [edi + 0x54]
jmp 0x5beb3a
xor eax, eax
mov dword [edi + 0x54], eax
test esi, esi
je 0x5bed57
cmp byte [esi + 0x54], 0
jne 0x5bed57
cmp byte [esi + 0x28], 0
je 0x5bed57
mov eax, dword [setsockopt]
cmp byte [eax + 0xec], 0
jne 0x5bed57
cmp dword [esi + 0x1c], 0
je 0x5beb7f
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [esi + 0x1c]
cmp eax, dword [esi + 0x44]
jb 0x5bec70
mov byte [esi + 0x74], 0
mov edx, esi
mov eax, edi
call fcn.005bf284
mov ebx, eax
mov byte [ebp - 0xe], 1
mov eax, dword [setsockopt]
cmp dword [eax + 0x19f0], 0
jg 0x5bebaf
mov eax, dword [setsockopt]
mov dword [eax + 0x19f0], 0xa
mov edx, dword [esi + 0x40]
mov eax, 1
call fcn.004e3de0
mov dword [ebp - 0x24], eax
fild dword [ebp - 0x24]
mov eax, dword [setsockopt]
fild dword [eax + 0x19f0]
fdiv dword [0x5bf268]
fdivp st(1)
call fcn.00403560
mov edx, eax
mov eax, 1
call fcn.004e3de0
sub eax, ebx
test eax, eax
jge 0x5bebee
xor eax, eax
test eax, eax
jle 0x5bec02
push 1
mov ecx, eax
mov edx, esi
mov eax, edi
call fcn.005c1098
mov byte [ebp - 0xe], al
cmp byte [ebp - 0xe], 0
je 0x5bec10
call sub.kernel32.dll_GetTickCount_1
mov dword [esi + 0x1c], eax
lea edx, [esi + 0x28]
lea eax, [ebp - 0x38]
call fcn.004039c4
mov edx, 0x5bf26c
lea eax, [ebp - 0x38]
mov cl, 0xf
call fcn.00403994
lea edx, [ebp - 0x38]
lea eax, [ebp - 0x28]
call fcn.004055f8
push dword [ebp - 0x28]
lea edx, [ebp - 0x3c]
mov eax, dword [edi + 0x54]
call fcn.0040a790
push dword [ebp - 0x3c]
push 0x5bf278
lea edx, [ebp - 0x40]
mov eax, dword [edi + 0x7c]
mov eax, dword [eax + 8]
call fcn.0040a790
push dword [ebp - 0x40]
mov eax, dword [0x6c1340]
mov edx, 4
call fcn.00405728
jmp 0x5bed57
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [esi + 0x1c]
mov ebx, dword [esi + 0x44]
sub ebx, eax
test ebx, ebx
jle 0x5bed57
cmp dword [esi + 0x78], 0xffffffff
jle 0x5becb6
mov dword [ebp - 0x24], ebx
fild dword [ebp - 0x24]
fdiv dword [0x5bf27c]
call fcn.00403560
mov edx, 1
call fcn.004e3de0
mov edx, dword [esi + 0x78]
mov ecx, dword [setsockopt]
mov dword [ecx + edx*4 + 0x3024], eax
cmp byte [esi + 0x74], 0
jne 0x5bed57
cmp dword [esi + 0x6c], 0xffffffff
jle 0x5bed57
cmp ebx, dword [esi + 0x70]
jge 0x5bed57
mov byte [esi + 0x74], 1
lea eax, [ebp - 0x48]
lea edx, [esi + 0x28]
call fcn.004055f8
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x44]
call fcn.006419d4
mov edx, dword [ebp - 0x44]
mov eax, dword [0x6c128c]
mov eax, dword [eax]
add eax, 0xd94
call fcn.004053e8
mov dword [ebp - 0x24], ebx
fild dword [ebp - 0x24]
fdiv dword [0x5bf27c]
call fcn.00403560
mov edx, 1
call fcn.004e3de0
lea edx, [ebp - 0x4c]
call fcn.0040a790
mov edx, dword [ebp - 0x4c]
mov eax, dword [0x6c128c]
mov eax, dword [eax]
add eax, 0xd98
call fcn.004053e8
push 0
push 0
lea eax, [ebp - 0x50]
push eax
mov ecx, dword [esi + 0x6c]
mov edx, dword [gethostbyname]
mov edx, dword [edx]
mov eax, dword [0x6c128c]
mov eax, dword [eax]
call fcn.00634cf8
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 4]
mov edx, dword [0x6c0378]
mov dword [edx], eax
mov eax, dword [0x6c0378]
mov eax, dword [eax]
mov edx, dword [0x6c12d8]
cmp eax, dword [edx]
jle 0x5bed87
mov eax, dword [0x6c0378]
mov eax, dword [eax]
mov edx, dword [0x6c12d8]
mov dword [edx], eax
mov eax, dword [0x6c0378]
mov eax, dword [eax]
mov edx, dword [0x6c1258]
cmp eax, dword [edx]
jle 0x5beda7
mov eax, dword [0x6c0378]
mov eax, dword [eax]
mov edx, dword [0x6c1258]
mov dword [edx], eax
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [edi + 0x1eb8], eax
mov dword [ebp - 0x1c], 1
mov eax, dword [edi + 0x58]
mov edx, dword [edi + 0x7c]
mov edx, dword [edx + 8]
dec edx
sub edx, eax
jl 0x5bf0a3
inc edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0x7c]
mov edx, dword [ebp - 0x14]
call fcn.0041fbfc
mov esi, eax
mov dword [ebp - 0x1c], 0xb
mov eax, dword [edi + 0x5c]
mov edx, dword [esi + 0x4c]
cmp eax, dword [edx + 8]
jge 0x5bedfa
mov ebx, eax
jmp 0x5bedfc
xor ebx, ebx
xor eax, eax
mov dword [edi + 0x5c], eax
mov eax, dword [esi + 0x4c]
cmp ebx, dword [eax + 8]
jge 0x5bf091
mov eax, dword [esi + 0x4c]
mov edx, ebx
call fcn.0041fbfc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0xc
cmp dword [ebp - 0x18], 0
je 0x5befed
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0x2e4], 0
jne 0x5befc1
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
sub edx, dword [eax + 0x370]
mov eax, dword [ebp - 0x18]
cmp edx, dword [eax + 0x374]
jle 0x5befb9
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 8]
mov dword [eax + 0x370], edx
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
sub edx, dword [eax + 0x36c]
mov eax, dword [ebp - 0x18]
cmp edx, dword [eax + 0x368]
jbe 0x5beec4
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x36c], eax
mov dword [ebp - 0x1c], 0xd
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x40c], 0
jg 0x5beeb2
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0xbcc], 0
jne 0x5beeb2
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0x2a5], 0
je 0x5beebc
mov eax, dword [ebp - 0x18]
call fcn.0060b4e8
jmp 0x5beec4
mov eax, dword [ebp - 0x18]
call fcn.0060b290
mov dword [ebp - 0x1c], 0xe
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0xbcc], 0
jne 0x5befa1
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0x2a5], 0
jne 0x5befa1
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0x409], 0
jne 0x5befa1
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0x30e], 0
je 0x5bef39
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0x30e], 0
je 0x5befa1
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x24]
mov edx, dword [ebp - 0x18]
cmp eax, dword [edx + 0x310]
jne 0x5befa1
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x28]
mov edx, dword [ebp - 0x18]
cmp eax, dword [edx + 0x314]
jne 0x5befa1
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x40c], 0
jg 0x5befa1
mov eax, dword [ebp - 0x18]
movsx eax, byte [eax + 0x410]
mov edx, dword [setsockopt]
cmp eax, dword [edx + 0x6690]
jge 0x5befa1
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x3dc]
cmp dword [eax + 8], 0
jg 0x5befa1
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x380], 0
jne 0x5befa1
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x278], 0
je 0x5bef96
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x278]
cmp byte [eax + 0x22a], 0
je 0x5befa1
mov eax, dword [ebp - 0x18]
inc byte [eax + 0x410]
jmp 0x5befb3
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x410], 0
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x4c]
inc dword [edi + 0x1eb8]
inc dword [edi + 0x1eb0]
jmp 0x5befed
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 0x18]
sub eax, dword [edx + 0x2e8]
cmp eax, 0x493e0
jbe 0x5befed
mov eax, dword [esi + 0x4c]
mov edx, ebx
call fcn.0041faa0
mov eax, dword [ebp - 0x18]
call fcn.00404430
jmp 0x5bee01
inc ebx
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 0xc]
mov edx, dword [0x6c0698]
cmp eax, dword [edx]
jbe 0x5bee01
mov eax, dword [ebp - 0x18]
lea edx, [eax + 0x15]
lea eax, [ebp - 0x38]
call fcn.004039c4
mov edx, 0x5bf280
lea eax, [ebp - 0x38]
mov cl, 0xf
call fcn.00403994
lea edx, [ebp - 0x38]
lea eax, [ebp - 0x54]
call fcn.004055f8
push dword [ebp - 0x54]
lea edx, [ebp - 0x58]
mov eax, ebx
call fcn.0040a790
push dword [ebp - 0x58]
push 0x5bf278
lea edx, [ebp - 0x5c]
mov eax, dword [esi + 0x4c]
mov eax, dword [eax + 8]
call fcn.0040a790
push dword [ebp - 0x5c]
push 0x5bf278
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 0x14]
call fcn.0040a790
push dword [ebp - 0x60]
push 0x5bf278
lea edx, [ebp - 0x64]
mov eax, dword [edi + 0x7c]
mov eax, dword [eax + 8]
call fcn.0040a790
push dword [ebp - 0x64]
mov eax, dword [0x6c13e8]
mov edx, 8
call fcn.00405728
mov byte [ebp - 0xd], 1
mov dword [edi + 0x5c], ebx
cmp byte [ebp - 0xd], 0
jne 0x5bf0a3
inc dword [ebp - 0x14]
dec dword [ebp - 0x20]
jne 0x5bedd7
mov dword [ebp - 0x1c], 2
mov eax, dword [edi + 0x7c]
mov eax, dword [eax + 8]
cmp eax, dword [ebp - 0x14]
jg 0x5bf0e7
xor eax, eax
mov dword [edi + 0x58], eax
mov eax, dword [edi + 0x1eb0]
mov dword [edi + 0x1eac], eax
xor eax, eax
mov dword [edi + 0x1eb0], eax
mov eax, dword [edi + 0x1eb4]
add eax, dword [edi + 0x1eb8]
sar eax, 1
jns 0x5bf0e1
adc eax, 0
mov dword [edi + 0x1eb4], eax
cmp byte [ebp - 0xd], 0
jne 0x5bf0f4
xor eax, eax
mov dword [edi + 0x58], eax
jmp 0x5bf0fa
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x58], eax
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 0xc]
mov edx, dword [0x6c04c0]
mov dword [edx], eax
mov eax, dword [0x6c04c0]
mov eax, dword [eax]
mov edx, dword [0x6c13fc]
cmp eax, dword [edx]
jle 0x5bf12a
mov eax, dword [0x6c04c0]
mov eax, dword [eax]
mov edx, dword [0x6c13fc]
mov dword [edx], eax
mov eax, dword [0x6c04c0]
mov eax, dword [eax]
mov edx, dword [0x6c1374]
cmp eax, dword [edx]
jle 0x5bf14a
mov eax, dword [0x6c04c0]
mov eax, dword [eax]
mov edx, dword [0x6c1374]
mov dword [edx], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5bf207
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 8]
mov edx, dword [0x6c0d04]
mov dword [edx], eax
mov eax, dword [0x6c0c90]
mov eax, dword [eax]
mov edx, dword [0x6c0d04]
cmp eax, dword [edx]
jge 0x5bf237
mov eax, dword [0x6c0d04]
mov eax, dword [eax]
mov edx, dword [0x6c0c90]
mov dword [edx], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5bf261
lea eax, [ebp - 0x74]
mov edx, 0xf
call fcn.004053b8
lea eax, [ebp - 0x28]
call fcn.00405394
ret