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

Disassembly:
push 0xffffffffffffffff
push 0x490a08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
push 1
lea ecx, [edi + 0x160]
mov dword [esp + 0x10], edi
call fcn.0042c7b0
mov eax, dword [edi + 0x164]
xor ebx, ebx
cmp eax, ebx
je 0x431cc0
lea ebx, [ebx]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [edi + 0x164], ebx
jne 0x431cb0
push ebp
lea ebp, [edi + 0x18]
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebp
call fcn.00431040
mov ecx, ebp
mov dword [esp + 0x28], ebx
call fcn.00430c10
mov esi, eax
cmp esi, ebx
je 0x431d3d
mov ebx, dword [sym.imp.WS2_32.dll_shutdown]
lea esp, [esp]
mov eax, dword [esi + 0xa0]
push 1
push eax
call ebx
mov dword [esi + 0x84], 0xffff
push 0
lea ecx, [esi + 0x7c]
call fcn.0042c7b0
mov edi, dword [esi + 0x88]
mov eax, dword [edi + 0x154]
add edi, 0x154
push eax
lea ecx, [esi + 0x78]
call fcn.0042c7b0
mov ecx, dword [edi]
mov ecx, ebp
call fcn.00430c10
mov esi, eax
test esi, esi
jne 0x431cf0
mov edi, dword [esp + 0x10]
cmp dword [esp + 0x18], 0
mov ebx, dword [esp + 0x1c]
je 0x431d8f
mov esi, 1
sub dword [esp + 0x18], esi
jne 0x431d7f
cmp byte [ebx + 4], 0
lea eax, [ebx + 4]
mov dword [esp + 0x14], eax
je 0x431d6a
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebx + 0x50]
sub edx, esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], esi
mov dword [ebx + 0x50], edx
call fcn.00401ba0
cmp byte [ebx + 0x24], 0
je 0x431d8f
lea eax, [ebx + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov dword [esp + 0x10], eax
call esi
sub eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x30]
jae 0x431de6
cmp byte [ebp + 4], 0
je 0x431db7
lea ecx, [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [ebp + 4], 0
mov esi, dword [ebp + 0x44]
je 0x431dca
lea edx, [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x431de6
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x30]
jb 0x431da7
cmp dword [edi + 0x168], 0
je 0x431e01
nop
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [edi + 0x168], 0
jne 0x431df0
lea esi, [edi + 0x140]
push 1
mov ecx, esi
call fcn.0042c7b0
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
cmp dword [esi], 0
mov edi, eax
je 0x431e38
nop
call ebp
sub eax, edi
cmp eax, 0x3e8
jae 0x431e38
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi], 0
jne 0x431e20
mov edi, dword [esp + 0x18]
test edi, edi
pop ebp
je 0x431e92
sub edi, 1
jne 0x431e7e
cmp byte [ebx + 4], 0
je 0x431e56
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebx + 0x50]
mov esi, 1
sub ecx, esi
test esi, esi
mov dword [ebx + 0x50], ecx
je 0x431e7e
sub esi, 1
cmp byte [ebx + 4], 0
je 0x431e7a
lea edx, [ebx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
jne 0x431e67
cmp byte [ebx + 0x24], 0
je 0x431e8e
lea eax, [ebx + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x431e41
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4