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

Disassembly:
push 0xffffffffffffffff
push 0x10013700
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x1001842c]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1001842c]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov ecx, dword [esp + 0xa8]
mov esi, 2
cmp dword [0x100253f4], esi
mov dword [esp + 0x20], ecx
jle 0x10012186
mov eax, dword [0x100253f8]
xor ebx, ebx
cmp eax, ebx
jle 0x10012186
cmp eax, esi
jne 0x10012238
mov eax, dword [esp + 0xac]
push eax
push ecx
mov ecx, 0x1002523c
call fcn.10005e90
mov ecx, dword [0x10025240]
cmp ecx, dword [0x10025234]
jl 0x10011ec3
lea ecx, [esp + 0x24]
call fcn.1000fa40
mov edx, dword [esp + 0x24]
movzx eax, word [0x10025234]
and edx, 0xffffff12
push esi
lea ecx, [esp + 0x18]
or edx, 0x12
push ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0xa8], ebx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x1c], eax
call fcn.1000fb10
mov edx, dword [0x10025234]
mov eax, dword [0x1002523c]
push edx
push eax
lea ecx, [esp + 0x2c]
call fcn.1000fb10
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [0x10025220]
call fcn.100107d0
mov edx, dword [esp + 0x48]
push edx
mov dword [0x10025240], ebx
mov dword [esp + 0xa4], 0xffffffff
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
xor esi, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], ebx
lea ecx, [ecx]
mov ecx, dword [0x10025220]
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
call edx
test al, al
jne 0x10011f05
push esi
push ebx
call fcn.10002fe0
test al, al
je 0x1001202b
mov ecx, dword [0x10025220]
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
call edx
test al, al
je 0x1001202b
mov esi, dword [sym.imp.MSVCR90.dll_malloc]
and dword [esp + 0x24], 0xffffff00
push 0x10
mov byte [esp + 0x2c], 0
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], 0x10
call esi
mov dword [esp + 0x4c], eax
add esp, 4
mov byte [eax], 0
lea eax, [esp + 0x54]
push eax
push ebx
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [0x10025220]
mov ebp, 1
mov dword [esp + 0xac], ebp
call fcn.1000fe90
test al, al
je 0x1001200e
mov al, byte [esp + 0x24]
cmp al, 0x12
jne 0x100120b4
lea ecx, [esp + 0x24]
call fcn.1000fd30
cmp dword [0x10025218], 0x100
movzx ebx, ax
jne 0x10011fbf
mov edi, dword [0x10024e18]
push 0x3fc
push 0x10024e1c
push 0x10024e18
call sub.MSVCR90.dll_memcpy
add esp, 0xc
mov dword [0x10025218], 0xff
cmp word [edi], bx
je 0x10011fcd
movsx edx, bx
add edx, 2
push edx
push edi
call dword [sym.imp.MSVCR90.dll_realloc]
add esp, 8
jmp 0x10011fcd
movsx eax, bx
add eax, 2
push eax
call esi
add esp, 4
mov edi, eax
mov word [edi], bx
movsx ebx, bx
lea eax, [edi + 2]
push ebx
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], eax
call fcn.1000fb60
mov ecx, dword [0x10025218]
mov dword [ecx*4 + 0x10024e18], edi
movsx ecx, byte [0x100253f0]
mov eax, ebx
cdq
idiv ecx
add dword [0x10025218], ebp
xor ebp, ebp
mov edi, eax
test ebx, ebx
jg 0x10012076
xor ebx, ebx
mov ecx, dword [esp + 0x48]
push ecx
mov dword [esp + 0xa4], 0xffffffff
call dword [sym.imp.MSVCR90.dll_free]
mov esi, dword [esp + 0x18]
add esp, 4
mov eax, dword [0x10024e10]
cmp eax, ebx
jg 0x100121d1
mov edx, dword [0x10025224]
cmp edx, dword [0x10025228]
jl 0x100121b3
mov edi, dword [esp + 0x1c]
cmp edi, ebx
jne 0x10012144
inc esi
mov dword [esp + 0x14], esi
call fcn.10005700
mov dword [esp + 0x1c], eax
jmp 0x10012170
mov esi, dword [sym.imp.MSVCR90.dll_malloc]
lea eax, [edi + 2]
push eax
call esi
mov edx, dword [esp + 0x1c]
mov esi, eax
push edi
lea eax, [edx + ebp]
push eax
lea ecx, [esi + 2]
push ecx
mov word [esi], di
call sub.MSVCR90.dll_memcpy
mov edx, dword [0x10024e10]
mov dword [edx*4 + 0x10024a10], esi
inc dword [0x10024e10]
add ebp, edi
add esp, 0x10
cmp ebp, ebx
jl 0x10012070
jmp 0x1001200c
cmp al, 0x13
jne 0x10012135
lea ecx, [esp + 0x24]
call fcn.1000fce0
movsx ecx, byte [0x100253f0]
movzx eax, al
mov eax, dword [eax*4 + 0x10024e18]
mov dword [esp + 0x18], eax
movzx eax, word [eax]
movsx ebx, ax
mov eax, ebx
cdq
idiv ecx
xor ebp, ebp
mov edi, eax
test ebx, ebx
jle 0x1001200c
jmp 0x100120f6
mov esi, dword [sym.imp.MSVCR90.dll_malloc]
lea eax, [edi + 2]
push eax
call esi
mov edx, dword [esp + 0x1c]
mov esi, eax
push edi
lea eax, [edx + ebp + 2]
push eax
lea ecx, [esi + 2]
push ecx
mov word [esi], di
call sub.MSVCR90.dll_memcpy
mov edx, dword [0x10024e10]
mov dword [edx*4 + 0x10024a10], esi
inc dword [0x10024e10]
add ebp, edi
add esp, 0x10
cmp ebp, ebx
jl 0x100120f0
jmp 0x1001200c
lea eax, [esp + 0x24]
push eax
call fcn.10010d40
jmp 0x1001200e
call fcn.10005700
mov ecx, eax
sub ecx, edi
cmp ecx, 0x3e8
jbe 0x10012170
mov ecx, dword [0x10025220]
push 5
mov dword [esp + 0x20], eax
call fcn.100102c0
inc esi
mov dword [esp + 0x14], esi
cmp esi, 0x64
je 0x100121bd
mov eax, dword [0x10024e10]
cmp eax, ebx
jg 0x100121d1
cmp dword [0x100253f8], 1
jg 0x10011ed0
or eax, 0xffffffff
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.10012622
add esp, 0x90
ret 8
inc dword [0x10025224]
xor eax, eax
jmp 0x10012189
push str.Lost_Connection
call int.10009670
add esp, 4
call fcn.10011c10
jmp 0x10012186
mov ebp, 1
cmp dword [0x100253f8], ebp
jle 0x10012186
cmp eax, ebx
jle 0x10012186
mov esi, dword [0x10024a10]
lea edi, [eax - 1]
cmp edi, ebx
je 0x10012209
lea edx, [edi*4]
push edx
push 0x10024a14
push 0x10024a10
call sub.MSVCR90.dll_memcpy
add esp, 0xc
mov ecx, dword [esp + 0x20]
mov dword [0x10024e10], edi
movsx edi, word [esi]
push edi
lea eax, [esi + 2]
push eax
push ecx
call sub.MSVCR90.dll_memcpy
push esi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 0x10
add dword [0x10025224], ebp
mov eax, edi
jmp 0x10012189
movsx edx, byte [0x100253f0]
mov ebp, dword [esp + 0xac]
imul edx, ebp
lea ecx, [esp + 0x64]
mov dword [0x10025238], ebp
mov dword [0x10025234], edx
mov dword [0x10025240], ebx
mov dword [0x10025224], ebx
mov dword [0x10025218], ebx
mov dword [0x10024e10], ebx
call fcn.1000fa40
mov eax, dword [esp + 0x64]
and eax, 0xffffff15
or eax, 0x15
mov dword [esp + 0xa0], esi
mov dword [esp + 0x64], eax
call fcn.10005700
lea ecx, [esp + 0x64]
mov esi, eax
push ecx
mov ecx, dword [0x10025220]
lea edi, [esi + 0x1388]
call fcn.100107d0
cmp dword [0x100253f8], 1
jne 0x100123c8
mov ebx, dword [sym.imp.MSVCR90.dll_malloc]
lea ecx, [ecx]
push 0x64
push 0
call fcn.10002fe0
test al, al
je 0x10012357
mov ecx, dword [0x10025220]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
call eax
test al, al
je 0x10012357
and dword [esp + 0x24], 0xffffff00
push 0x10
mov byte [esp + 0x2c], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0x10
call ebx
mov dword [esp + 0x4c], eax
add esp, 4
mov byte [eax], 0
lea ecx, [esp + 0x54]
push ecx
mov ecx, dword [0x10025220]
push 0
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0xac], 3
call fcn.1000fe90
test al, al
je 0x10012341
cmp byte [esp + 0x24], 0x15
je 0x10012392
lea eax, [esp + 0x24]
push eax
call fcn.10010d40
mov ecx, dword [esp + 0x48]
push ecx
mov byte [esp + 0xa4], 2
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
call fcn.10005700
sub eax, esi
cmp eax, 0x1d4c0
jg 0x100123be
mov edx, 0x1d4c0
sub edx, eax
push edx
call fcn.1000a3d0
cmp edi, esi
ja 0x10012383
mov ecx, dword [0x10025220]
push 5
call fcn.100102c0
cmp dword [0x100253f8], 1
je 0x100122c0
jmp 0x100123c8
push str.All_players_are_ready
mov dword [0x100253f8], 2
call int.10009670
mov eax, dword [esp + 0x4c]
push eax
mov byte [esp + 0xa8], 2
call dword [sym.imp.MSVCR90.dll_free]
add esp, 8
jmp 0x100123c8
mov dword [0x100253f8], 0
mov ecx, dword [esp + 0x20]
push ebp
push ecx
call fcn.10011db0
mov edx, dword [esp + 0x88]
push edx
mov esi, eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, esi
jmp 0x10012189