Function at 0x10005660
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x100191b0]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea edi, [ebx + 0x1c]
mov ecx, 0x2c1
mov esi, edx
rep movsd dword es:[edi], dword [esi]
movzx eax, word [ebx + 0x342]
lea esi, [ebx + 0x342]
mov dword [ebx + 0x18], eax
movzx eax, word [ebx + 0x33e]
mov dword [0x1001b298], 1
cmp eax, 0x64
je 0x100056e0
cmp eax, 0x65
je 0x100056e0
cmp eax, 2
je 0x100056e0
lea eax, [ebx + 0x344]
mov dword [ebx + 0xb1c], 0x64
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100056d0
sub eax, edx
mov word [ebx + 0xb14], ax
push 0
push 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x10005530
push 0
push 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
movzx eax, word [ebx + 0x33e]
cmp eax, 0x65
ja case.0x10005716.8
movzx ecx, byte [eax + 0x10005c38]
jmp dword [ecx*4 + 0x10005c0c]
xor edx, edx
mov dword [esp + 0xc], 0
cmp dx, word [ebx + 0x340]
jae case.0x10005716.8
push 0
push 0
lea eax, [ebx + 0x1c]
push eax
push 0x10005ca0
push 0
push 0
call esi
push eax
call edi
mov eax, dword [esp + 0xc]
movzx ecx, word [ebx + 0x340]
inc eax
mov dword [esp + 0xc], eax
cmp eax, ecx
jl 0x10005734
jmp case.0x10005716.8
xor edx, edx
mov dword [esp + 0xc], 0
cmp dx, word [ebx + 0x340]
jae case.0x10005716.8
push 0
push 0
lea eax, [ebx + 0x1c]
push eax
push 0x10005d90
push 0
push 0
call esi
push eax
call edi
mov eax, dword [esp + 0xc]
movzx ecx, word [ebx + 0x340]
inc eax
mov dword [esp + 0xc], eax
cmp eax, ecx
jl 0x1000577a
jmp case.0x10005716.8
xor edx, edx
mov dword [esp + 0xc], 0
cmp dx, word [ebx + 0x340]
jae case.0x10005716.8
push 0
push 0
lea eax, [ebx + 0x1c]
push eax
push 0x10005e30
push 0
push 0
call esi
push eax
call edi
mov eax, dword [esp + 0xc]
movzx ecx, word [ebx + 0x340]
inc eax
mov dword [esp + 0xc], eax
cmp eax, ecx
jl 0x100057c0
jmp case.0x10005716.8
xor edx, edx
mov dword [esp + 0xc], 0
cmp dx, word [ebx + 0x340]
jae case.0x10005716.8
push 0
push 0
lea eax, [ebx + 0x1c]
push eax
push 0x100062b0
push 0
push 0
call esi
push eax
call edi
mov eax, dword [esp + 0xc]
movzx ecx, word [ebx + 0x340]
inc eax
mov dword [esp + 0xc], eax
cmp eax, ecx
jl 0x10005806
jmp case.0x10005716.8
xor edx, edx
mov dword [esp + 0xc], 0
cmp dx, word [ebx + 0x340]
jae case.0x10005716.8
mov eax, 0xa
push 0x7d0
mov word [ebx + 0xb14], ax
lea eax, [ebx + 0x344]
push 0
push eax
call fcn.1000d270
xor ecx, ecx
add esp, 0xc
mov dword [esp + 0x10], 0
cmp cx, word [ebx + 0xb14]
jae 0x100058d4
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
call fcn.10008064
movzx ecx, word [esp + 0x1e]
add edi, eax
movzx eax, word [esp + 0x20]
add eax, edi
add eax, ecx
xor edx, edx
mov ecx, 0xc8
div ecx
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
inc edx
mov byte [ebx + eax + 0x343], dl
movzx edx, word [ebx + 0xb14]
cmp eax, edx
jl 0x10005881
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
lea eax, [ebx + 0x1c]
push eax
push 0x10006060
push 0
push 0
call esi
push eax
call edi
mov eax, dword [esp + 0xc]
movzx ecx, word [ebx + 0x340]
inc eax
mov dword [esp + 0xc], eax
cmp eax, ecx
jl 0x1000584c
jmp case.0x10005716.8
xor edx, edx
mov dword [esp + 0xc], 0
cmp dx, word [ebx + 0x340]
jae case.0x10005716.8
mov eax, 0x14
push 0x7d0
mov word [ebx + 0xb14], ax
lea eax, [ebx + 0x344]
push 0
push eax
call fcn.1000d270
xor ecx, ecx
add esp, 0xc
mov dword [esp + 0x10], 0
cmp cx, word [ebx + 0xb14]
jae 0x100059a6
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
call fcn.10008064
movzx ecx, word [esp + 0x1e]
add edi, eax
movzx eax, word [esp + 0x20]
add eax, edi
add eax, ecx
xor edx, edx
mov ecx, 0xc8
div ecx
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
inc edx
mov byte [ebx + eax + 0x343], dl
movzx edx, word [ebx + 0xb14]
cmp eax, edx
jl 0x10005953
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
lea eax, [ebx + 0x1c]
push eax
push 0x10005ca0
push 0
push 0
call esi
push eax
call edi
mov eax, dword [esp + 0xc]
movzx ecx, word [ebx + 0x340]
inc eax
mov dword [esp + 0xc], eax
cmp eax, ecx
jl 0x1000591e
jmp case.0x10005716.8
xor edx, edx
mov dword [esp + 0xc], 0
cmp dx, word [ebx + 0x340]
jae case.0x10005716.8
push 0
push 0
lea eax, [ebx + 0x1c]
push eax
push 0x10006400
push 0
push 0
call esi
push eax
call edi
mov eax, dword [esp + 0xc]
movzx ecx, word [ebx + 0x340]
inc eax
mov dword [esp + 0xc], eax
cmp eax, ecx
jl 0x100059f0
jmp case.0x10005716.8
xor edx, edx
mov dword [esp + 0xc], 0
cmp dx, word [ebx + 0x340]
jae case.0x10005716.8
push 0
push 0
lea eax, [ebx + 0x1c]
push eax
push 0x10005ca0
push 0
push 0
call esi
push eax
call edi
mov eax, dword [esp + 0xc]
movzx ecx, word [ebx + 0x340]
inc eax
mov dword [esp + 0xc], eax
cmp eax, ecx
jl 0x10005a36
jmp case.0x10005716.8
xor edx, edx
mov dword [esp + 0xc], 0
cmp dx, word [ebx + 0x340]
jae case.0x10005716.8
push 0
push 0
lea eax, [ebx + 0x1c]
push eax
push 0x10006060
push 0
push 0
call esi
push eax
call edi
mov eax, dword [esp + 0xc]
movzx ecx, word [ebx + 0x340]
inc eax
mov dword [esp + 0xc], eax
cmp eax, ecx
jl 0x10005a7c
jmp case.0x10005716.8
call fcn.10005590
xor edx, edx
mov dword [esp + 0xc], 0
test eax, eax
je 0x10005b12
cmp dx, word [ebx + 0x340]
jae case.0x10005716.8
push 0
push 0
lea eax, [ebx + 0x1c]
push eax
push 0x100062b0
push 0
push 0
call esi
push eax
call edi
push 0
push 0
lea eax, [ebx + 0x1c]
push eax
push 0x10006400
push 0
push 0
call esi
push eax
call edi
mov eax, dword [esp + 0xc]
movzx ecx, word [ebx + 0x340]
add eax, 2
mov dword [esp + 0xc], eax
cmp eax, ecx
jl 0x10005acb
jmp case.0x10005716.8
cmp dx, word [ebx + 0x340]
jae case.0x10005716.8
mov eax, 0x14
push 0x7d0
mov word [ebx + 0xb14], ax
lea eax, [ebx + 0x344]
push 0
push eax
call fcn.1000d270
xor ecx, ecx
add esp, 0xc
mov dword [esp + 0x10], 0
cmp cx, word [ebx + 0xb14]
jae 0x10005ba7
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
call fcn.10008064
movzx ecx, word [esp + 0x1e]
add edi, eax
movzx eax, word [esp + 0x20]
add eax, edi
add eax, ecx
xor edx, edx
mov ecx, 0xc8
div ecx
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
inc edx
mov byte [ebx + eax + 0x343], dl
movzx edx, word [ebx + 0xb14]
cmp eax, edx
jl 0x10005b54
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
lea eax, [ebx + 0x1c]
push eax
push 0x10005ca0
push 0
push 0
call esi
push eax
call edi
push 0
push 0
lea eax, [ebx + 0x1c]
push eax
push 0x10006060
push 0
push 0
call esi
push eax
call edi
mov eax, dword [esp + 0xc]
movzx ecx, word [ebx + 0x340]
add eax, 2
mov dword [esp + 0xc], eax
cmp eax, ecx
jl 0x10005b1f
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10007295
mov esp, ebp
pop ebp
ret 4