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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x100a609c]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
mov eax, dword [0x103c2494]
push dword [eax + 0x24]
push dword [eax + 0x20]
call fcn.1003c26c
push dword [0x103c24a0]
call fcn.10038f31
add esp, 0xc
test al, al
je 0x10039bef
xor esi, esi
inc esi
cmp dword [0x1035ff78], esi
je 0x10039bef
cmp dword [0x1035ff80], esi
jne 0x10039c8c
call edi
mov dword [0x103d8aac], eax
mov eax, dword [0x101108ac]
xor ecx, ecx
cmp eax, ebx
jle 0x10039c23
mov edx, dword [0x103c2494]
mov edx, dword [edx + 0x20]
cmp dword [ecx*4 + 0x1010ef48], edx
je 0x10039c1a
inc ecx
cmp ecx, eax
jl 0x10039c0a
jmp 0x10039c23
lea eax, [ecx*4 + 0x101100dc]
inc dword [eax]
push dword [0x103c88bc]
call fcn.10038f5c
mov esi, eax
pop ecx
mov dword [0x103c2494], esi
cmp esi, ebx
je 0x10039d1e
fld dword [esi]
call fcn.100840a0
fld dword [esi + 8]
mov dword [0x103c2498], eax
call fcn.100840a0
mov dword [0x103c249c], eax
mov eax, dword [esi + 0x20]
push 0x100988cc
mov dword [0x103c24a0], eax
mov dword [0x10112788], 1
mov dword [0x1035ff78], ebx
mov dword [0x1035ff7c], ebx
mov dword [0x1035ff80], ebx
call fcn.100060db
pop ecx
jmp 0x10039bb6
fild dword [0x103c249c]
mov eax, dword [0x307809c]
sub esp, 0x10
fstp dword [esp + 0xc]
fild dword [0x103c2498]
fstp dword [esp + 8]
fld dword [eax + 0x1f74]
fstp dword [esp + 4]
fld dword [eax + 0x1f6c]
fstp dword [esp]
call fcn.100063eb
fcomp dword [0x1009eefc]
add esp, 0x10
fnstsw ax
test ah, 0x41
jne 0x10039cf9
fild dword [0x103c249c]
sub esp, 0xc
fstp dword [esp + 8]
fldz
fstp dword [esp + 4]
fild dword [0x103c2498]
fstp dword [esp]
call fcn.1003a670
add esp, 0xc
jmp 0x10039f12
call edi
sub eax, dword [0x103d8aac]
cmp eax, 0x3e8
jb 0x10039f12
call edi
mov dword [0x103d8aac], eax
mov dword [0x1035ff80], esi
jmp 0x10039f12
push 0xffff
call fcn.1003a32b
mov eax, dword [0x10114474]
pop ecx
add eax, 0x46
push eax
push dword [0x100dfd8c]
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [0x103c88c0]
cmp eax, 0x15
jne 0x10039df8
cmp dword [0x1035fef4], 1
jne 0x10039f01
mov eax, dword [0xf39a68]
mov eax, dword [eax + 0x444]
mov eax, dword [eax + 0x334]
mov eax, dword [eax + 4]
mov esi, dword [eax + 0x33c]
add esi, 0x344
push esi
call dword [sym.imp.MSVCR100.dll_strlen]
pop ecx
test eax, eax
je 0x10039e09
or dword [esp + 0x38], 0xffffffff
push esi
lea esi, [esp + 0x18]
call fcn.1006dc23
pop ecx
cmp dword [esp + 0x38], ebx
jle 0x10039e09
fld dword [esp + 0x2c]
sub esp, 0x10
fstp dword [esp + 0xc]
fld dword [esp + 0x38]
fstp dword [esp + 8]
fld dword [0x1035fdc8]
fstp dword [esp + 4]
fld dword [0x1035fdc4]
fstp dword [esp]
call fcn.100063eb
fcomp dword [0x1009eef8]
add esp, 0x10
fnstsw ax
test ah, 0x41
jp 0x10039e09
push 1
push 0x1009877c
mov dword [0x1035fea8], ebx
call fcn.100061e0
pop ecx
pop ecx
push 0x100399f2
jmp 0x10039ed0
cmp eax, ebx
jne 0x10039e50
cmp dword [0x1035fef4], 1
jne 0x10039f01
cmp dword [0x103c3de0], 1
push ebx
push ebx
push ebx
push ebx
jne 0x10039e27
call fcn.10049e0e
push fcn.10049e0e
push 0x12c
jmp 0x10039e36
call fcn.10037d4c
push fcn.10037d4c
push 0x1f4
mov eax, dword [0x10114474]
add eax, 0x4d
push eax
push dword [0x100dfd8c]
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x10039ef1
cmp dword [0x1035fef4], 1
jne 0x10039f01
mov edx, dword [0x3059750]
mov dword [0x1035fea8], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
call fcn.100061b1
test eax, eax
je 0x10039eb7
lea esi, [edx + 0x53c]
mov eax, dword [esi]
cmp eax, ebx
je 0x10039e9b
add eax, 0x64
push 0x10097788
push eax
call dword [sym.imp.MSVCR100.dll_strstr]
pop ecx
pop ecx
test eax, eax
jne 0x10039eaf
inc dword [esp + 0xc]
add esi, 4
call fcn.100061b1
cmp dword [esp + 0xc], eax
jb 0x10039e80
jmp 0x10039eb7
mov eax, dword [esp + 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [0x103c88c0]
push dword [esp + 0x10]
add eax, 9
push eax
call fcn.1003ba5e
pop ecx
pop ecx
push 0x10039ac1
mov eax, dword [0x10114474]
push 0x12c
add eax, 0x4d
push eax
push dword [0x100dfd8c]
call dword [sym.imp.USER32.dll_SetTimer]
call edi
mov dword [0x10128454], eax
cmp dword [0x1035fef4], 1
jne 0x10039f01
push 0x10098928
jmp 0x10039f06
push 0x10098934
mov dword [0x1035ffb4], ebx
call fcn.100060db
pop ecx
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1008344f
mov esp, ebp
pop ebp
ret 0x10