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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x100a609c]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
mov ebx, dword [0x307809c]
push esi
push edi
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], edi
cmp ebx, edi
je 0x10041f25
call fcn.10073c2d
mov edx, dword [ebx + 0x1d20]
or dword [0x1035fee0], 0xffffffff
mov ecx, 0xe23bd4
mov eax, edx
call fcn.10006651
mov esi, eax
test esi, esi
je 0x100419f4
movzx ecx, word [esi + 0x14]
mov edi, dword [esi + 0x5f4]
mov eax, dword [esi + 0x614]
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 0x3b0]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
cmp ecx, 0x270f
jg 0x100419a3
push 0xffff
call fcn.1003a32b
jmp 0x10041f24
test edi, edi
jne 0x100419c6
cmp dword [0x3052d08], 0xa7f9
jne 0x100419c6
cmp eax, 0xee6b280
jle 0x100419c6
push 0
call fcn.100384dc
jmp 0x10041f24
fild dword [esp + 0x1c]
fidiv dword [esp + 0x14]
fcomp qword [0x1009ef78]
fnstsw ax
test ah, 5
jp 0x10041a21
cmp ecx, 0x2af9
jl 0x100419eb
cmp ecx, 0x2b35
jle 0x10041a21
push esi
call fcn.10047c0d
pop ecx
jmp 0x10041a21
cmp dword [0x103d20c0], edi
je 0x10041a21
cmp dword [0x1035ff94], 1
jne 0x10041a21
cmp dword [0x103d3a24], edi
jne 0x10041a21
mov ecx, 0xe26ae0
mov eax, edx
call fcn.10006651
test eax, eax
jne 0x10041f25
cmp dword [0x103c3d0c], 1
jne 0x10041f25
test esi, esi
je 0x10041a91
fld dword [0x1035fdc8]
sub esp, 0x10
fstp dword [esp + 0xc]
fld dword [0x1035fdc4]
fstp dword [esp + 8]
fld dword [ebx + 0x1f74]
fstp dword [esp + 4]
fld dword [ebx + 0x1f6c]
fstp dword [esp]
call fcn.100063eb
add esp, 0x10
call fcn.100840a0
cmp eax, dword [0x103c3dd4]
jge 0x10041ab0
xor eax, eax
inc eax
mov dword [0x1035ff18], eax
cmp dword [0x103c52c4], eax
jne 0x10041aba
cmp edi, dword [0x10128450]
jge 0x10041aba
cmp edi, dword [0x103c52c8]
jge 0x10041aba
call fcn.10041f48
and dword [0x1035ff18], 0
cmp dword [0x103c3d14], 1
jne 0x10041ab0
call fcn.100416e4
jmp 0x10041f25
call fcn.10041624
jmp 0x10041f25
cmp dword [0x103c3d0c], 1
jne 0x10041c49
cmp dword [0x103c3d10], 1
jne 0x10041c49
fld dword [esi + 0x1078]
call fcn.100840a0
fld dword [esi + 0x1080]
mov dword [esp + 0x10], eax
call fcn.100840a0
mov esi, dword [esi + 0x10a8]
fld dword [esi + 0x280]
mov dword [esp + 0x18], eax
call fcn.100840a0
fld dword [esi + 0x288]
mov dword [esp + 0x24], eax
call fcn.100840a0
fld dword [0x1035fdc8]
sub esp, 0x10
fstp dword [esp + 0xc]
mov dword [esp + 0x38], eax
fld dword [0x1035fdc4]
fstp dword [esp + 8]
fld dword [ebx + 0x1f74]
fstp dword [esp + 4]
fld dword [ebx + 0x1f6c]
fstp dword [esp]
call fcn.100063eb
fcomp dword [0x1009eefc]
add esp, 0x10
fnstsw ax
test ah, 1
jne 0x10041bcb
mov eax, dword [0x10114474]
and dword [0x10112c04], 0
and dword [0x10112bfc], 0
push fcn.10037d4c
push 0x1f4
add eax, 0x4d
push eax
push dword [0x100dfd8c]
call dword [sym.imp.USER32.dll_SetTimer]
fld dword [0x1035fdc8]
sub esp, 0xc
fstp dword [esp + 8]
fldz
fstp dword [esp + 4]
fld dword [0x1035fdc4]
fstp dword [esp]
call fcn.1003a670
add esp, 0xc
push 0xffff
call fcn.1003a32b
mov dword [0x10112788], 1
mov dword [esp], 0x10098f68
call fcn.100060db
jmp 0x10041f24
fld dword [ebx + 0x1f74]
sub esp, 0x10
fstp dword [esp + 0xc]
fld dword [ebx + 0x1f6c]
fstp dword [esp + 8]
fild dword [esp + 0x28]
fstp dword [esp + 4]
fild dword [esp + 0x20]
fstp dword [esp]
call fcn.100063eb
fild dword [0x1035fde8]
add esp, 0x10
fcompp
fnstsw ax
test ah, 5
jp 0x10041c49
fld dword [ebx + 0x1f74]
sub esp, 0x10
fstp dword [esp + 0xc]
fld dword [ebx + 0x1f6c]
fstp dword [esp + 8]
fild dword [esp + 0x38]
fstp dword [esp + 4]
fild dword [esp + 0x34]
fstp dword [esp]
call fcn.100063eb
fild dword [0x1035fde8]
add esp, 0x10
fcompp
fnstsw ax
test ah, 5
jnp 0x100419ba
cmp dword [0x103c54d0], 1
jne 0x10041ceb
xor edi, edi
lea esi, [esp + 0x2c]
mov ecx, edi
call fcn.10006348
mov eax, esi
mov esi, dword [sym.imp.MSVCR100.dll_strcmp]
push 0x100988f8
push eax
call esi
pop ecx
pop ecx
test eax, eax
je 0x10041c93
lea eax, [esp + 0x2c]
push 0x10098904
push eax
call esi
pop ecx
pop ecx
test eax, eax
je 0x10041c93
inc edi
cmp edi, 0x14
jl 0x10041c58
jmp 0x10041ceb
xor esi, esi
cmp dword [esp + 0x44], esi
je 0x10041cb0
cmp dword [esp + 0x44], 0x1770
jbe 0x10041ce1
mov dword [0x1035ff18], esi
jmp 0x10041f25
fild dword [esp + 0x1c]
fidiv dword [esp + 0x14]
fild dword [0x103c54d4]
fdiv qword [0x1009edf0]
fcompp
fnstsw ax
test ah, 0x41
jp 0x10041ce1
push 0xb
mov ecx, edi
call fcn.1003a960
mov dword [0x1035ff18], esi
jmp 0x10041f24
mov dword [0x1035ff18], 1
cmp dword [0x103c4084], 1
jne 0x10041d12
cmp dword [0x1035ff20], 0
jne 0x10041d12
cmp dword [0x103c5424], 0
jg 0x10041d12
push 2
call fcn.100384dc
jmp 0x10041dff
cmp dword [0x103c5428], 1
jne 0x10041e00
xor eax, eax
mov edi, 0x270f
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
cmp dword [0x103ccd94], eax
jle 0x10041dc0
mov ecx, dword [esp + 0x20]
mov esi, eax
mov eax, dword [0x103cd52c]
mov eax, dword [eax + esi*4]
cmp dword [eax], ecx
je 0x10041dbb
mov eax, dword [0x103ccd8c]
mov eax, dword [eax + esi*4]
cmp dword [eax], 0x2c
jne 0x10041da8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x103cdf24]
mov ecx, dword [ecx + esi*4]
sub eax, dword [ecx]
cmp eax, 0x1388
ja 0x10041da8
mov eax, dword [0x103cd52c]
mov eax, dword [eax + esi*4]
push edi
push dword [eax]
call fcn.10049410
mov esi, eax
pop ecx
pop ecx
test esi, esi
jle 0x10041da8
mov ecx, 0xe23bd4
call fcn.10006651
test eax, eax
je 0x10041da8
fld dword [eax + 0x35c]
call fcn.100840a0
mov edi, eax
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [0x103ccd94]
jl 0x10041d3a
jmp 0x10041dc0
mov edi, 0x270f
cmp edi, dword [0x1035fde8]
jg 0x10041e00
push dword [esp + 0x10]
mov esi, 0x10112128
push 0x10098f7c
push esi
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
push esi
call fcn.100060db
pop ecx
push dword [esp + 0x10]
call fcn.1003a32b
pop ecx
mov ecx, dword [0x103c54d8]
push 0
dec ecx
call fcn.1003a960
pop ecx
mov eax, dword [ebx + 0x2a60]
cmp eax, 8
je 0x10041e1e
cmp eax, 9
je 0x10041e1e
cmp eax, 0xb
je 0x10041e1e
cmp eax, 0xd
jne 0x10041f06
xor ebx, ebx
cmp dword [0x103d7288], ebx
jle 0x10041f06
xor edi, edi
lea esi, [esp + 0x2c]
mov ecx, edi
call fcn.10006348
mov eax, dword [0x103d7280]
push dword [eax + ebx*4]
mov eax, esi
mov esi, dword [sym.imp.MSVCR100.dll_strcmp]
push eax
call esi
pop ecx
pop ecx
test eax, eax
jne 0x10041eef
cmp dword [esp + 0x44], eax
jne 0x10041eef
lea eax, [esp + 0x2c]
push 0x10098f90
push eax
call esi
pop ecx
pop ecx
test eax, eax
jne 0x10041ec0
xor esi, esi
cmp dword [0x103ccd94], esi
jle 0x10041eef
mov eax, dword [0x103cd52c]
mov eax, dword [eax + esi*4]
mov ecx, dword [esp + 0x20]
cmp dword [eax], ecx
jne 0x10041eb5
mov eax, dword [0x103ccd8c]
mov eax, dword [eax + esi*4]
cmp dword [eax], 0x2c
jne 0x10041eb5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x103cdf24]
mov ecx, dword [ecx + esi*4]
sub eax, dword [ecx]
cmp eax, 0x1388
jbe 0x10041f37
inc esi
cmp esi, dword [0x103ccd94]
jl 0x10041e7c
jmp 0x10041eef
lea eax, [esp + 0x2c]
push 0x10098f98
push eax
call esi
pop ecx
pop ecx
test eax, eax
jne 0x10041f37
fild dword [esp + 0x1c]
fidiv dword [esp + 0x14]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fcomp qword [0x1009ef20]
fnstsw ax
test ah, 1
je 0x10041f37
inc edi
cmp edi, 0x14
jl 0x10041e2e
inc ebx
cmp ebx, dword [0x103d7288]
jl 0x10041e2c
call fcn.10041810
cmp al, 1
je 0x10041f25
mov ecx, dword [0x103c54d8]
push 0
dec ecx
call fcn.1003a960
or dword [0x100a62a0], 0xffffffff
pop ecx
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1008344f
mov esp, ebp
pop ebp
ret
push 0xb
mov ecx, edi
call fcn.1003a960
mov dword [0x100a62a0], edi
jmp 0x10041f24