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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100822a0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10097060]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x14]
cmp dword [eax + 0x564], 1
jne 0x100460da
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [edi + 0x591a4]
cmp eax, 0x1388
jbe 0x100460da
mov eax, dword [edi + 0x14]
call fcn.1001b0d0
test eax, eax
je 0x100460da
push 0x10
call fcn.1003a730
add esp, 4
call esi
mov dword [edi + 0x591a4], eax
xor esi, esi
mov dword [ebp - 0x10], esi
mov eax, dword [0x1009a550]
mov eax, dword [eax]
push eax
mov ecx, dword [0x1009a554]
mov eax, dword [0x1009a558]
call eax
test eax, eax
je 0x100460fe
mov ebx, dword [eax + 8]
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x10], esi
mov eax, dword [edi + 0x14]
jne 0x1004631d
cmp dword [eax + 0x30], 1
jne case.default.0x10046426
cmp dword [eax + 0x3b0], esi
mov ebx, dword [eax + 0x59774]
je 0x1004620b
push eax
call fcn.1001ee40
test eax, eax
je 0x1004620b
lea ecx, [ebp - 0x14]
push ecx
mov ecx, 0x1008a620
call fcn.10001a30
mov dword [ebp - 4], esi
mov ecx, dword [edi + 0x14]
lea edx, [ebp - 0x14]
push edx
add ecx, 0xc
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [ebp - 0x10], esp
mov esi, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.1004a5b0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov dword [ebp - 0x10], esi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1004619b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x1004620b
mov eax, esi
call fcn.10059b90
call fcn.10065ba0
test eax, eax
jne 0x1004620b
call fcn.10065b20
test eax, eax
jne 0x1004620b
mov esi, dword [esi]
call fcn.10064990
test eax, eax
je 0x1004620b
mov ecx, dword [ebp - 0x10]
mov esi, dword [ecx]
call fcn.10064990
test eax, eax
je 0x1004620b
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x14], 0
jne 0x1004620b
mov edi, 0x64ab
mov eax, ebx
call fcn.1004a9c0
test eax, eax
jne 0x10046208
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov eax, dword [eax + 8]
mov edx, dword [ebx]
push ecx
push eax
mov eax, dword [edx + 0x18]
mov ecx, ebx
call eax
push 0x2bc
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x14]
cmp dword [ecx + 0x3b4], 0
je case.default.0x10046426
lea edx, [ebp + 8]
push edx
mov ecx, 0x1008a620
call fcn.10001a30
mov dword [ebp - 4], 1
mov ecx, dword [edi + 0x14]
lea eax, [ebp + 8]
push eax
add ecx, 0xc
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [ebp - 0x14], esp
mov esi, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.1004a5b0
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 0x10], edi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10046286
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
je case.default.0x10046426
mov eax, edi
call fcn.10059b90
call fcn.10065ba0
test eax, eax
jne case.default.0x10046426
call fcn.10065b20
test eax, eax
jne case.default.0x10046426
mov esi, dword [edi]
call fcn.10064990
test eax, eax
je case.default.0x10046426
mov esi, dword [edi]
call fcn.10064990
test eax, eax
je case.default.0x10046426
cmp dword [edi + 0x14], 0
jne case.default.0x10046426
mov edi, 0x64ab
mov eax, ebx
call fcn.1004a9c0
test eax, eax
jne case.default.0x10046426
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ebx]
mov eax, dword [eax + 8]
mov edx, dword [edx + 0x18]
push ecx
push eax
mov ecx, ebx
call edx
push 0x2bc
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [eax + 0x59774]
mov edx, dword [esi]
mov eax, dword [edx + 0x54]
push 0x1b
mov ecx, esi
call eax
cmp eax, 0xa
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
jl 0x1004634b
mov edx, dword [esi]
mov eax, dword [edx + 0x64]
push 0x1b
mov ecx, esi
call eax
push 0x1f4
call ebx
mov edx, dword [esi]
mov eax, dword [edx + 0x54]
push 0x1c
mov ecx, esi
call eax
cmp eax, 0xa
jl 0x1004636d
mov edx, dword [esi]
mov eax, dword [edx + 0x64]
push 0x1c
mov ecx, esi
call eax
push 0x1f4
call ebx
mov edx, dword [esi]
mov eax, dword [edx + 0x54]
push 0x1d
mov ecx, esi
call eax
cmp eax, 0xa
jl 0x1004638f
mov edx, dword [esi]
mov eax, dword [edx + 0x64]
push 0x1d
mov ecx, esi
call eax
push 0x1f4
call ebx
mov edx, dword [esi]
mov eax, dword [edx + 0x54]
push 0x1e
mov ecx, esi
call eax
cmp eax, 0xa
jl 0x100463b1
mov edx, dword [esi]
mov eax, dword [edx + 0x64]
push 0x1e
mov ecx, esi
call eax
push 0x1f4
call ebx
mov edx, dword [esi]
mov eax, dword [edx + 0x54]
push 0x1f
mov ecx, esi
call eax
cmp eax, 0xa
jl 0x100463d3
mov edx, dword [esi]
mov eax, dword [edx + 0x64]
push 0x1f
mov ecx, esi
call eax
push 0x1f4
call ebx
mov edx, dword [esi]
mov eax, dword [edx + 0x54]
push 0x20
mov ecx, esi
call eax
cmp eax, 0xa
jl 0x100463f5
mov edx, dword [esi]
mov eax, dword [edx + 0x64]
push 0x20
mov ecx, esi
call eax
push 0x1f4
call ebx
mov edx, dword [esi]
mov eax, dword [edx + 0x54]
push 0x21
mov ecx, esi
call eax
cmp eax, 0xa
jl 0x10046417
mov edx, dword [esi]
mov eax, dword [edx + 0x64]
push 0x21
mov ecx, esi
call eax
push 0x1f4
call ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx + 0x30]
cmp eax, 0xa
ja case.default.0x10046426
jmp dword [eax*4 + 0x1004654c]
push edi
call fcn.10046740
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
call fcn.10046ac0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
call fcn.10046e70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, edi
call fcn.10047850
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
call fcn.10047ec0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
call fcn.100473e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
call fcn.10048310
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
call fcn.10048600
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
call fcn.10048a60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
call fcn.100487e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
call fcn.10046580
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4