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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x100a509c]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
mov ebx, dword [0x2fb7ac4]
push esi
xor esi, esi
push edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], esi
cmp ebx, esi
je 0x100492a9
call fcn.10072f3e
mov edx, dword [ebx + 0x1d20]
mov ecx, 0xd71444
mov eax, edx
mov dword [esp + 0x30], edx
call fcn.10006671
mov edi, eax
cmp edi, esi
je 0x10048c15
cmp dword [edi + 0x3b0], 0x270f
jg 0x10048bd0
push 0xffff
call fcn.10039b8d
pop ecx
jmp 0x100492a9
push edi
call fcn.10047260
mov eax, dword [edi]
mov esi, dword [edi + 0x10a4]
fld dword [esi + 0x280]
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0x3c0]
pop ecx
mov dword [esp + 0x20], eax
call fcn.10082ff0
fld dword [esi + 0x288]
mov dword [esp + 0x10], eax
call fcn.10082ff0
mov dword [esp + 0x14], eax
movzx eax, word [edi + 0x14]
mov dword [esp + 0x18], eax
jmp 0x10048c42
cmp dword [0x103d0f48], esi
je 0x10048c42
cmp byte [0x1035ef2a], 1
jne 0x10048c42
cmp dword [0x103d2844], esi
jne 0x10048c42
mov ecx, 0xd740a0
mov eax, edx
call fcn.10006671
test eax, eax
jne 0x100492a9
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x103d780c]
cmp eax, 0x7530
jb 0x10048d25
cmp dword [0x103c7830], 1
jne 0x10048d25
call esi
push dword [0x103c7834]
mov dword [0x103d780c], eax
call fcn.100387a5
pop ecx
mov dword [0x103c140c], eax
test eax, eax
je 0x10048d25
mov eax, dword [0x10113488]
add eax, 0x45
push eax
push dword [0x100ded8c]
call dword [sym.imp.USER32.dll_KillTimer]
mov esi, dword [0x103c140c]
fld dword [esi]
call fcn.10082ff0
fld dword [esi + 8]
mov dword [0x103c1410], eax
call fcn.10082ff0
mov dword [0x103c1414], eax
mov eax, dword [esi + 0x20]
mov dword [0x103c1418], eax
mov eax, dword [0x10113488]
push fcn.100393e0
push 0x12c
add eax, 0x46
push eax
push dword [0x100ded8c]
call dword [sym.imp.USER32.dll_SetTimer]
xor eax, eax
push eax
push eax
push eax
push eax
mov dword [0x10111c0c], eax
mov dword [0x10111788], 1
mov byte [0x1035ef23], al
mov byte [0x1035ef24], al
mov byte [0x1035ef25], al
mov dword [0x101117c4], 4
call fcn.100393e0
push 0x100982ec
call fcn.100060fb
jmp 0x10048bca
or dword [0x1035eee0], 0xffffffff
cmp dword [0x103c2e1c], 1
jne 0x10048df0
fld dword [0x1035edc8]
sub esp, 0x10
fstp dword [esp + 0xc]
fld dword [0x1035edc4]
fstp dword [esp + 8]
fld dword [ebx + 0x1f68]
fstp dword [esp + 4]
fld dword [ebx + 0x1f60]
fstp dword [esp]
call fcn.1000640b
fcomp qword [0x1009db28]
add esp, 0x10
fnstsw ax
test ah, 0x41
jne 0x10048df0
mov eax, dword [0x10113488]
add eax, 0x45
push eax
push dword [0x100ded8c]
mov dword [ebx + 0x1d20], 0xffff
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [0x10113488]
push fcn.10049457
push 0x12c
add eax, 0x4d
push eax
push dword [0x100ded8c]
call dword [sym.imp.USER32.dll_SetTimer]
fld dword [0x1035edc8]
and dword [0x10111c0c], 0
sub esp, 0xc
fstp dword [esp + 8]
mov dword [0x10111788], 1
fldz
fstp dword [esp + 4]
fld dword [0x1035edc4]
fstp dword [esp]
call fcn.10039ece
add esp, 0xc
jmp 0x100492a9
call fcn.10048abf
call fcn.10049557
mov ecx, dword [0x103c2e18]
inc ecx
cmp eax, ecx
jge 0x10048e36
mov eax, dword [0x10113488]
add eax, 0x45
push eax
push dword [0x100ded8c]
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [0x10113488]
push 0x100493f5
push 0xa
add eax, 0x46
push eax
push dword [0x100ded8c]
call dword [sym.imp.USER32.dll_SetTimer]
fild dword [esp + 0x14]
sub esp, 0x10
fstp dword [esp + 0xc]
fild dword [esp + 0x20]
fstp dword [esp + 8]
fld dword [ebx + 0x1f68]
fstp dword [esp + 4]
fld dword [ebx + 0x1f60]
fstp dword [esp]
call fcn.1000640b
add esp, 0x10
call fcn.10082ff0
cmp dword [0x103c43a0], 1
mov dword [esp + 0x24], eax
jne 0x10048f99
xor eax, eax
mov dword [esp + 0x10], 0x270f
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
cmp dword [0x103cbc1c], eax
jle 0x10048f56
mov ecx, dword [esp + 0x18]
mov esi, eax
mov eax, dword [0x103cc3b4]
mov eax, dword [eax + esi*4]
cmp dword [eax], ecx
je 0x10048f4e
mov eax, dword [0x103cbc14]
mov eax, dword [eax + esi*4]
cmp dword [eax], 0x2c
jne 0x10048f37
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x103ccdac]
mov ecx, dword [ecx + esi*4]
sub eax, dword [ecx]
cmp eax, 0x1388
ja 0x10048f37
mov eax, dword [0x103cc3b4]
push dword [esp + 0x10]
mov eax, dword [eax + esi*4]
push dword [eax]
call fcn.10048a59
pop ecx
pop ecx
mov esi, eax
xor ecx, ecx
mov eax, 0x1035edf8
cmp dword [eax], esi
je 0x10048f01
add eax, 4
cmp eax, 0x1035ee70
jl 0x10048ef1
jmp 0x10048f04
xor ecx, ecx
inc ecx
test esi, esi
jle 0x10048f37
cmp ecx, 1
jne 0x10048f37
mov ecx, 0xd71444
mov eax, esi
call fcn.10006671
mov edi, eax
test edi, edi
je 0x10048f37
fld dword [edi + 0x35c]
call fcn.10082ff0
cmp eax, 0x1e
jg 0x10048f37
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [0x103cbc1c]
jl 0x10048e98
jmp 0x10048f56
mov dword [esp + 0x10], 0x270f
mov eax, dword [esp + 0x10]
cmp eax, dword [0x1035ede8]
jg 0x10048f99
mov edx, dword [esp + 0x14]
call fcn.1003a53a
mov ecx, dword [0x103c4458]
push 0
dec ecx
call fcn.1003a1be
pop ecx
push dword [esp + 0x14]
mov esi, 0x10111128
push 0x10097c40
push esi
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
push esi
call fcn.100060fb
pop ecx
cmp dword [esp + 0x20], 1
je 0x100491e7
cmp dword [esp + 0x30], 0xffff
je 0x100491e7
cmp dword [esp + 0x24], 0x1e
jg 0x100491e7
test edi, edi
je 0x100491e7
mov ebx, dword [ebx + 0x2a50]
cmp ebx, 8
je 0x10048fe3
cmp ebx, 9
je 0x10048fe3
cmp ebx, 0xb
je 0x10048fe3
cmp ebx, 0xd
jne 0x100490c3
and dword [esp + 0x10], 0
cmp dword [0x103d600c], 0
jle 0x100490c3
mov ebx, dword [sym.imp.MSVCR100.dll_strcmp]
xor edi, edi
mov dword [esp + 0x1c], edi
lea esi, [esp + 0x34]
mov ecx, edi
call fcn.10006368
mov eax, dword [0x103d6004]
mov ecx, dword [esp + 0x10]
push dword [eax + ecx*4]
mov eax, esi
push eax
call ebx
pop ecx
pop ecx
test eax, eax
jne 0x100490a1
xor esi, esi
cmp dword [esp + 0x4c], esi
jne 0x100490a1
lea eax, [esp + 0x34]
push 0x10097c5c
push eax
call ebx
pop ecx
pop ecx
test eax, eax
je 0x100490dd
lea eax, [esp + 0x34]
push 0x10097c54
push eax
call ebx
pop ecx
pop ecx
test eax, eax
jne 0x100491d3
cmp dword [0x103cbc1c], esi
jle 0x100490a1
mov eax, dword [0x103cc3b4]
mov eax, dword [eax + esi*4]
mov ecx, dword [esp + 0x18]
cmp dword [eax], ecx
jne 0x10049098
mov eax, dword [0x103cbc14]
mov eax, dword [eax + esi*4]
cmp dword [eax], 0x2c
jne 0x10049098
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x103ccdac]
mov ecx, dword [ecx + esi*4]
sub eax, dword [ecx]
cmp eax, 0x1388
jbe 0x100491d3
inc esi
cmp esi, dword [0x103cbc1c]
jl 0x1004905f
inc edi
mov dword [esp + 0x1c], edi
cmp edi, 0x14
jl 0x10049001
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, dword [0x103d600c]
jl 0x10048ffb
mov ecx, dword [0x103c4458]
push 0
dec ecx
call fcn.1003a1be
or dword [0x100a52a0], 0xffffffff
jmp 0x10049283
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], esi
mov ebx, 0x1035edf8
mov eax, dword [ebx]
test eax, eax
jle 0x100491a8
mov ecx, 0xd71444
call fcn.10006671
mov esi, eax
test esi, esi
je 0x100491a8
mov edi, dword [esi + 0x10a4]
fld dword [edi + 0x280]
call fcn.10082ff0
fld dword [edi + 0x288]
mov dword [esp + 0x10], eax
call fcn.10082ff0
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
sub esp, 0x10
fstp dword [esp + 0xc]
fild dword [esp + 0x20]
fstp dword [esp + 8]
fld dword [eax + 0x1f68]
fstp dword [esp + 4]
fld dword [eax + 0x1f60]
fstp dword [esp]
call fcn.1000640b
fcomp dword [0x1009db20]
add esp, 0x10
fnstsw ax
test ah, 5
jp 0x100491a4
mov ecx, dword [esi + 0x5f4]
mov dword [esp + 0x24], ecx
cmp ecx, dword [esp + 0x20]
jle 0x100491a4
fild dword [esp + 0x24]
fidiv dword [esi + 0x610]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fcomp qword [0x1009db18]
fnstsw ax
test ah, 1
jne 0x100491a4
mov eax, dword [ebx]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], eax
mov edi, dword [esp + 0x1c]
add ebx, 4
cmp ebx, 0x1035ee70
jl 0x100490ea
mov edx, dword [esp + 0x18]
test edx, edx
je 0x100491d3
call fcn.1003a53a
mov ecx, dword [0x103c4458]
push 0
dec ecx
call fcn.1003a1be
pop ecx
push 0xb
mov ecx, edi
call fcn.1003a1be
mov dword [0x100a52a0], edi
jmp 0x10049283
xor edi, edi
mov eax, dword [edi*4 + 0x1035edf8]
test eax, eax
jle 0x10049261
mov ecx, 0xd71444
call fcn.10006671
test eax, eax
je 0x10049261
mov esi, dword [eax + 0x10a4]
fld dword [esi + 0x280]
call fcn.10082ff0
fld dword [esi + 0x288]
mov dword [esp + 0x10], eax
call fcn.10082ff0
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
sub esp, 0x10
fstp dword [esp + 0xc]
fild dword [esp + 0x20]
fstp dword [esp + 8]
fld dword [ebx + 0x1f68]
fstp dword [esp + 4]
fld dword [ebx + 0x1f60]
fstp dword [esp]
call fcn.1000640b
fcomp qword [0x1009da40]
add esp, 0x10
fnstsw ax
test ah, 5
jnp 0x10049269
inc edi
cmp edi, 0x1e
jl 0x100491e9
jmp 0x10049284
mov edx, dword [edi*4 + 0x1035edf8]
call fcn.1003a53a
mov ecx, dword [0x103c4458]
push 0
dec ecx
call fcn.1003a1be
pop ecx
cmp dword [0x103c2c90], 1
jne 0x100492a9
cmp dword [esp + 0x28], 0xd71444
jne 0x100492a9
mov byte [0x1035ef17], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1035ed8c], eax
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10082395
mov esp, ebp
pop ebp
ret 0x10