Function at 0x703944e0
Capabilities:
Check for time delay via gettickcount
Get thread local storage value

Disassembly:
push 0x28
mov eax, 0x703966d9
call fcn.7038fbb5
mov edi, ecx
mov dword [ebp - 0x28], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
cmp dword [edi + 0x18], eax
mov dword [ebp - 4], eax
je 0x70394516
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [0x703bf6e8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, dword [edi + 0x20]
mov dword [ebp - 0x1c], eax
lea eax, [esi - 8]
neg esi
sbb esi, esi
and esi, eax
je 0x7039458c
mov eax, dword [esi + 8]
test eax, eax
je 0x70394542
add eax, 0xfffffff8
mov dword [ebp - 0x10], eax
jmp 0x70394546
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x1c]
cmp dword [esi + 0x10], eax
jne 0x70394585
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
mov ecx, esi
call fcn.70394782
cmp dword [ebp - 0x18], 0
je 0x70394585
push esi
lea ecx, [edi + 0x20]
call fcn.7039419c
fldz
or dword [esi + 0x48], 1
fstp dword [esi + 0x18]
lea ecx, [edi + 0x1c]
mov dword [esi + 0x40], ebx
push esi
mov dword [esi + 0x34], ecx
call fcn.7039417a
mov esi, dword [ebp - 0x10]
test esi, esi
jne 0x70394533
lea ebx, [edi + 0x1c]
mov esi, dword [ebx]
lea eax, [esi - 8]
neg esi
sbb esi, esi
and esi, eax
jmp 0x7039466c
mov eax, dword [esi + 8]
test eax, eax
je 0x703945ae
add eax, 0xfffffff8
mov dword [ebp - 0x10], eax
jmp 0x703945b2
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x1c]
cmp dword [esi + 0x10], eax
jne 0x70394667
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
mov ecx, esi
call fcn.70394782
cmp dword [ebp - 0x20], 0
je 0x703945ec
xor ecx, ecx
lea eax, [esi + 4]
inc ecx
lock xadd dword [eax], ecx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x34]
call fcn.70394328
cmp dword [ebp - 0x18], 0
je 0x70394667
and dword [esi + 0x34], 0
push esi
mov ecx, ebx
call fcn.7039419c
mov ecx, esi
call fcn.70394898
cmp dword [esi + 0x24], 0
mov ecx, esi
jne 0x70394618
or dword [esi + 0x48], 8
call fcn.70367fe6
jmp 0x70394667
call fcn.703940e9
fstp dword [ebp - 0x24]
fld dword [ebp - 0x24]
push ecx
fstp dword [esp]
call fcn.703940c4
movzx eax, al
test eax, eax
mov dword [ebp - 0x24], eax
je 0x70394640
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x40], eax
mov edi, ebx
jmp 0x7039464f
push 0
push dword [ebp - 0x14]
mov ecx, esi
call fcn.7039413a
add edi, 0x20
push dword [ebp - 0x24]
mov ecx, esi
call fcn.70394115
push esi
mov ecx, edi
mov dword [esi + 0x34], edi
call fcn.7039417a
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp - 0x10]
test esi, esi
mov dword [ebp - 0x24], esi
jne 0x7039459f
mov eax, dword [ebx]
or dword [ebp - 0x10], 0xffffffff
test eax, eax
jne 0x703946bd
mov eax, dword [edi + 0x20]
lea ecx, [eax - 8]
neg eax
sbb eax, eax
and eax, ecx
je 0x703946e5
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x70394699
add ecx, 0xfffffff8
jmp 0x7039469b
xor ecx, ecx
mov edx, dword [eax + 0x10]
cmp edx, dword [ebp - 0x1c]
jne 0x703946b5
mov eax, dword [eax + 0x40]
sub eax, dword [ebp - 0x14]
jns 0x703946ad
xor eax, eax
cmp eax, dword [ebp - 0x10]
jae 0x703946b5
mov dword [ebp - 0x10], eax
test ecx, ecx
mov eax, ecx
jne 0x7039468d
jmp 0x703946e5
add eax, 0xfffffff8
je 0x703946e5
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x703946ce
add ecx, 0xfffffff8
jmp 0x703946d0
xor ecx, ecx
mov eax, dword [eax + 0x28]
cmp eax, dword [ebp - 0x10]
jae 0x703946df
test eax, eax
mov dword [ebp - 0x10], eax
je 0x703946e5
test ecx, ecx
mov eax, ecx
jne 0x703946c2
cmp dword [edi + 0x18], 0
je 0x703946f2
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 1
lea eax, [ebp - 0x34]
push eax
mov ecx, edi
call fcn.703942a4
mov esi, dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, dword [ebp - 0x10]
jae 0x70394714
sub dword [ebp - 0x10], eax
jmp 0x70394718
and dword [ebp - 0x10], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.70371900
mov eax, dword [ebp - 0x10]
call fcn.7038fc63
ret