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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x78e596
mov eax, dword fs:[0]
push eax
sub esp, 0x360
push ebx
push esi
push edi
mov eax, dword [0x856918]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov edx, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp edx, ebx
jne 0x5283a6
push 0x46
call fcn.00563dd8
mov edi, eax
add esp, 4
mov dword [ebp - 0x58], vtable.CArray_ptr_char_.0
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], 1
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.CSocketThreadManager
push str._s__lu__lu
push edi
call fcn.005670fb
add esp, 0x14
cmp dword [0x869a90], ebx
jne 0x528380
push edi
mov ecx, esi
call fcn.00525900
test eax, eax
jne 0x528380
push str.Failed_to_register_window_
lea ecx, [ebp - 0x4c]
call fcn.004062df
push str.SpawnThreads
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.004062df
mov eax, dword [esi]
mov eax, dword [eax + 0x14]
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x2c]
push edx
mov ecx, esi
mov byte [ebp - 4], 3
call eax
mov esi, 0x10
cmp dword [ebp - 0x14], esi
jb 0x528343
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00564155
add esp, 4
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
cmp dword [ebp - 0x34], esi
jb 0x528361
mov edx, dword [ebp - 0x48]
push edx
call fcn.00564155
add esp, 4
push edi
call fcn.00565caa
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x528385
sub eax, edx
push eax
push edi
lea ecx, [esi + 0x3c]
call fcn.00405920
push edi
mov byte [ebp - 4], bl
call fcn.00565caa
add esp, 4
jmp 0x5283c3
mov eax, edx
lea edi, [eax + 1]
jmp 0x5283b0
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x5283b0
sub eax, edi
push eax
push edx
lea ecx, [esi + 0x3c]
call fcn.00405920
mov edi, dword [esi + 0x28]
xor ecx, ecx
mov eax, edi
mov edx, 0x70
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.00563dd8
add esp, 4
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 4
cmp eax, ebx
je 0x528418
push 0x527ea0
push 0x527e70
push edi
mov dword [eax], edi
add eax, 4
push 0x70
push eax
mov dword [ebp + 8], eax
call fcn.0056699e
mov eax, dword [ebp + 8]
jmp 0x52841a
xor eax, eax
xor edi, edi
mov byte [ebp - 4], bl
mov dword [esi + 0x2c], eax
mov dword [ebp + 8], edi
cmp edi, dword [esi + 0x28]
jae 0x528486
mov ecx, dword [esi + 0x2c]
imul edi, edi, 0x70
mov dword [edi + ecx + 0xc], ebx
mov edx, dword [esi + 0x2c]
mov dword [edi + edx + 0x18], ebx
mov eax, dword [esi + 0x2c]
mov dword [edi + eax + 0x14], ebx
mov ecx, dword [esi + 0x2c]
mov dword [edi + ecx], ebx
mov edx, dword [esi + 0x2c]
mov dword [edi + edx + 4], ebx
mov eax, dword [esi + 0x2c]
mov dword [edi + eax + 8], ebx
mov ecx, dword [esi + 0x2c]
mov dword [edi + ecx + 0x10], ebx
call fcn.005495c0
mov edx, dword [esi + 0x2c]
inc dword [ebp + 8]
mov dword [edi + edx + 0x5c], eax
mov eax, dword [esi + 0x2c]
mov dword [edi + eax + 0x1c], ebx
mov ecx, dword [esi + 0x2c]
mov dword [edi + ecx + 0x60], esi
mov edx, dword [esi + 0x2c]
mov byte [edi + edx + 0x6c], bl
mov edi, dword [ebp + 8]
jmp 0x528425
lea ecx, [ebp - 0x36c]
mov dword [ebp - 0x30], ebx
call fcn.005504a0
xor edi, edi
mov byte [ebp - 4], 5
mov dword [ebp + 8], edi
lea ecx, [ecx]
cmp edi, dword [esi + 0x28]
jae 0x52862d
mov eax, dword [esi + 0x2c]
imul edi, edi, 0x70
push 0xffffffffffffffff
push ebx
lea edx, [esi + 0x3c]
lea ecx, [edi + eax + 0x40]
push edx
call fcn.00403fb2
push ebx
push ebx
push ebx
push ebx
call fcn.00549540
mov ecx, dword [esi + 0x2c]
add esp, 0x10
push ebx
push ebx
push ebx
push ebx
mov dword [edi + ecx + 0x18], eax
call fcn.00549540
mov edx, dword [esi + 0x2c]
mov dword [edi + edx + 0x1c], eax
mov eax, dword [esi + 0x2c]
mov ecx, dword [edi + eax + 0x18]
add esp, 0x10
push 1
push ecx
lea ecx, [ebp - 0x36c]
call fcn.005504c0
mov edx, dword [esi + 0x2c]
mov eax, dword [esi + 0x30]
mov dword [edi + edx + 0x14], eax
mov eax, dword [esi + 0x2c]
mov edx, dword [esi]
mov edx, dword [edx + 0x24]
lea ecx, [edi + eax + 0x64]
push ecx
mov ecx, esi
call edx
push 0x13
push str.SocketThreadManager
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
call fcn.00405920
push ebx
lea eax, [ebp - 0x2c]
push eax
push 0x527040
mov byte [ebp - 4], 6
call fcn.00549630
mov ecx, dword [esi + 0x2c]
add esp, 0xc
mov dword [edi + ecx + 0x10], eax
cmp dword [ebp - 0x14], 0x10
mov byte [ebp - 4], 5
jb 0x528564
mov edx, dword [ebp - 0x28]
push edx
call fcn.00564155
add esp, 4
mov eax, dword [esi + 0x2c]
mov ecx, dword [edi + eax + 0x10]
push 1
call fcn.0054f730
mov ecx, dword [esi + 0x2c]
mov ecx, dword [edi + ecx + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x2c]
call eax
cmp eax, ebx
jne 0x528610
push 0x18
mov edi, 0xf
push str.Failed_to_create_thread_
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
call fcn.00405920
push 0xc
push str.SpawnThreads
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 7
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.00405920
mov edx, dword [esi]
mov edx, dword [edx + 0x14]
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, esi
mov byte [ebp - 4], 8
call edx
cmp dword [ebp - 0x34], 0x10
jb 0x5285e8
mov eax, dword [ebp - 0x48]
push eax
call fcn.00564155
add esp, 4
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
mov byte [ebp - 4], 5
jb 0x528607
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00564155
add esp, 4
mov dword [ebp - 0x30], 1
jmp 0x528632
mov edx, dword [esi + 0x2c]
mov ecx, dword [edi + edx + 0x10]
lea eax, [edi + edx]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x24]
call eax
inc dword [ebp + 8]
mov edi, dword [ebp + 8]
jmp 0x5284a0
mov edi, 0xf
push ebx
push 0x4e20
lea ecx, [ebp - 0x5c]
push ecx
push 1
lea ecx, [ebp - 0x36c]
call fcn.00550710
cmp eax, ebx
je 0x5286f0
push 0x1c
push str.Timeout_waiting_for_threads_
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
call fcn.00405920
push 0xc
push str.SpawnThreads
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 9
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.00405920
mov edx, dword [esi]
mov edx, dword [edx + 0x14]
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, esi
mov byte [ebp - 4], 0xa
call edx
cmp dword [ebp - 0x34], 0x10
jb 0x5286ac
mov eax, dword [ebp - 0x48]
push eax
call fcn.00564155
add esp, 4
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
mov byte [ebp - 4], 5
jb 0x5286cb
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00564155
add esp, 4
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
push 1
mov ecx, esi
call fcn.00527f50
lea ecx, [ebp - 0x36c]
mov byte [ebp - 4], bl
call fcn.005505a0
jmp 0x52836a
cmp dword [ebp - 0x30], ebx
je 0x5286f8
push ebx
jmp 0x5286d6
lea ecx, [ebp - 0x36c]
mov dword [esi + 0x58], 1
mov byte [ebp - 4], bl
call fcn.005505a0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4