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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.010032d0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100cefd
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0
je 0x100cd76
cmp dword [ebp - 0x18], 1
je 0x100cd84
jmp 0x100cefb
mov eax, dword [ebp - 4]
push eax
call fcn.01003140
jmp 0x100cefb
cmp dword [0x100e270], 0
jne 0x100cda4
push 0
push 0
push 0
push 1
push 0x1001d70
call fcn.01008859
mov dword [0x100e270], eax
cmp dword [0x100e270], 0
je 0x100cdf0
mov ecx, dword [ebp - 4]
push ecx
call fcn.01003140
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 4]
add edx, 0x6c
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [0x100e270]
push ecx
call fcn.01006600
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
add edx, 0x6c
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x100cdf7
mov dword [ebp - 8], 0x80004005
cmp dword [ebp - 8], 0
jl 0x100cedb
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x20], 0xffffffff
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x24], 0
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x38], 1
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x3c], 0
mov edx, dword [ebp - 4]
mov dword [edx + 0x40], 0
xor eax, eax
test eax, eax
jne 0x100ce08
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.01003d50
mov edx, dword [ebp + 0x1c]
mov dword [edx], 0
push 8
call fcn.01002140
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x100cedb
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x18]
mov dword [eax + 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
call fcn.01002140
mov edx, dword [ebp - 0x10]
mov dword [edx], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
je 0x100cec2
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x1c]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x10]
mov dword [edx], eax
jmp 0x100cedb
mov dword [ebp - 8], 0x8007000e
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [ebp - 8], 0
jge 0x100cefb
call fcn.01003250
mov eax, dword [ebp - 4]
push eax
call fcn.010031a0
call fcn.01003260
mov dword [ebp - 4], 0
jmp 0x100cf04
mov dword [ebp - 8], 0x8007000e
cmp dword [ebp - 8], 0
jl 0x100cf14
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov dword [ecx], edx
jmp 0x100cf23
cmp dword [ebp - 4], 0
je 0x100cf23
mov eax, dword [ebp - 4]
push eax
call fcn.01003470
mov eax, dword [ebp - 8]
and eax, 0xffff
mov esp, ebp
pop ebp
ret 0x18