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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ac4e2
mov eax, dword fs:[0]
push eax
sub esp, 0x198
mov eax, dword [0x100dbc1c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x40], 0
cmp dword [esi + 4], 0
jne 0x1003351a
mov dword [esi + 8], 0
lea edi, [esi + 0x10]
mov dword [esi + 0xc], 0
mov dword [ebp - 0x14], 0
mov ecx, dword [ecx + 0x24]
mov dword [ebp - 4], 0
test ecx, ecx
je 0x100333a5
mov eax, dword [ecx]
lea edx, [ebp - 0x38]
push edx
call dword [eax]
mov dword [ebp - 0x14], eax
push edi
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.10033ac0
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x100333cd
mov edx, dword [ecx]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
push esi
push 0
push esi
push 0x10033920
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
test eax, eax
jne 0x1003353a
lea eax, [ebp - 0x54]
push eax
call fcn.1003b6a0
add esp, 4
cmp dword [eax], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x40], 1
je 0x10033435
lea eax, [ebp - 0x4c]
push eax
call fcn.1003b6a0
add esp, 4
mov ecx, dword [eax]
mov dword [ebp - 4], 2
mov dword [ebp - 0x40], 3
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov byte [ebp - 0x39], 1
test al, al
jne 0x10033439
mov byte [ebp - 0x39], 0
mov esi, dword [ebp - 0x48]
or ebx, 0xffffffff
test esi, esi
je 0x10033468
test byte [ebp - 0x40], 2
je 0x10033468
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x10033468
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x10033468
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0x50]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x10033495
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x10033495
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x10033495
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp byte [ebp - 0x39], 0
je 0x1003351a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea eax, [ebp - 0x5c]
push eax
call fcn.1003b6a0
add esp, 4
mov edi, dword [eax]
lea ecx, [ebp - 0x10c]
mov dword [ebp - 4], 3
call fcn.10015e70
mov esi, eax
push str.CWorkThread::Start__CreateThread_failed__errno:
push esi
mov byte [ebp - 4], 4
call fcn.10012080
add esp, 8
mov ecx, esi
push ebx
call fcn.10011d70
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x14]
lea ecx, [ebp - 0x10c]
call fcn.10012280
mov edi, dword [ebp - 0x58]
test edi, edi
je 0x1003351a
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x1003351a
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x1003351a
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100763b4
mov esp, ebp
pop ebp
ret 8
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
cmp dword [esi + 8], 0
mov dword [ebp - 0x44], eax
jne 0x100336ab
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
call edi
sub eax, dword [ebp - 0x44]
cmp eax, dword [ebp + 0xc]
jae 0x10033569
push 0xa
call ebx
cmp dword [esi + 8], 0
je 0x10033555
cmp dword [esi + 8], 0
jne 0x100336ab
lea eax, [ebp - 0x6c]
push eax
call fcn.1003b6a0
add esp, 4
cmp dword [eax], 0
mov dword [ebp - 4], 5
mov dword [ebp - 0x40], 4
je 0x100335bd
lea eax, [ebp - 0x64]
push eax
call fcn.1003b6a0
add esp, 4
mov ecx, dword [eax]
mov dword [ebp - 4], 6
mov dword [ebp - 0x40], 0xc
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov byte [ebp - 0x39], 1
test al, al
jne 0x100335c1
mov byte [ebp - 0x39], 0
mov esi, dword [ebp - 0x60]
or ebx, 0xffffffff
test esi, esi
je 0x100335f0
test byte [ebp - 0x40], 8
je 0x100335f0
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x100335f0
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x100335f0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0x68]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x1003361d
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1003361d
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x1003361d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp byte [ebp - 0x39], 0
je 0x1003351a
lea eax, [ebp - 0x74]
push eax
call fcn.1003b6a0
add esp, 4
mov edi, dword [eax]
lea ecx, [ebp - 0x1a4]
mov dword [ebp - 4], 7
call fcn.10015e70
mov esi, eax
push str.CWorkThread::Start__wait_thread_running_timeout_
push esi
mov byte [ebp - 4], 8
call fcn.10012080
add esp, 8
mov ecx, esi
push dword [ebp + 0xc]
call fcn.10011d70
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x14]
lea ecx, [ebp - 0x1a4]
call fcn.10012280
mov esi, dword [ebp - 0x70]
test esi, esi
je 0x1003351a
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1003351a
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x1003351a
mov eax, dword [esi]
mov ecx, esi
jmp 0x10033517
mov eax, 1
jmp 0x1003351c