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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x523acf
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x56617c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0xf8], esi
mov ecx, dword [esi + 0xb4]
mov edi, ecx
and edi, 0x800000ff
jns 0x4867bd
dec edi
or edi, 0xffffff00
inc edi
mov eax, ecx
mov dword [ebp - 0xf4], edi
cdq
and edx, 0xff
add eax, edx
sar eax, 8
cmp ecx, 0xffffffff
je 0x4873ae
test eax, eax
jne 0x4868c6
cmp dword [0x592ad4], 1
jne 0x4867f3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x4867f9
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, eax
mov eax, dword [esi + 0x130]
add eax, 0x3e8
cmp eax, ecx
ja 0x4873ae
cmp dword [esi + 0x12c], 1
je 0x4873ae
mov eax, dword [esi]
mov ecx, esi
push 4
call dword [eax + 0x88]
push 1
push 2
push dword [esi + 0xb4]
mov ecx, esi
call fcn.00487a80
push dword [esi + 0xb8]
mov ecx, esi
push edi
call fcn.00487f90
cmp dword [esi + 0x12c], 0
jne 0x48688f
mov eax, dword [esi + 0x68]
xor edi, edi
sub eax, dword [esi + 0x64]
sar eax, 2
test eax, eax
je 0x48687e
nop
mov eax, dword [esi + 0x64]
mov ecx, esi
mov edx, dword [esi]
push dword [eax + edi*4]
call dword [edx + 0xc8]
mov eax, dword [esi + 0x68]
inc edi
sub eax, dword [esi + 0x64]
sar eax, 2
cmp edi, eax
jb 0x486860
push 1
push 0
push dword [esi + 0xb4]
mov ecx, esi
call fcn.00487a80
cmp dword [0x592ad4], 1
jne 0x4868a0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x4868a6
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [esi + 0x130], eax
mov dword [esi + 0x138], eax
call fcn.0042a8c0
push ecx
push 1
mov ecx, eax
call fcn.0042d240
jmp 0x4873ae
cmp eax, 1
jne 0x486970
cmp edi, 3
jne 0x4868db
push 0xbc2
jmp 0x4868e5
cmp edi, 4
jne 0x4868f9
push 0xbc7
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0xbc]
call eax
test al, al
je 0x4873ae
cmp edi, dword [esi + 0xb8]
je 0x48737f
mov eax, dword [esi]
mov ecx, esi
push 4
call dword [eax + 0x88]
push 1
push 2
push dword [esi + 0xb4]
mov ecx, esi
call fcn.00487a80
mov eax, dword [esi + 0x68]
sub eax, dword [esi + 0x64]
sar eax, 2
test eax, eax
je 0x486955
xor edi, edi
mov eax, dword [esi + 0x64]
mov ecx, esi
mov edx, dword [esi]
push dword [eax + edi*4]
call dword [edx + 0xc8]
mov eax, dword [esi + 0x68]
inc edi
sub eax, dword [esi + 0x64]
sar eax, 2
cmp edi, eax
jb 0x486931
mov edi, dword [ebp - 0xf4]
mov eax, dword [esi + 0xb8]
push 1
push 0
or eax, 0x100
mov dword [esi + 0xb8], edi
push eax
jmp 0x487378
cmp eax, 2
jne 0x486c1c
test edi, edi
jne 0x486985
cmp dword [esi + 0xd4], edi
jmp 0x486990
cmp edi, 1
jne 0x486996
cmp dword [esi + 0xd4], edi
je 0x4873ae
mov eax, dword [esi]
mov ecx, esi
push 4
call dword [eax + 0x88]
push 1
push 2
push dword [esi + 0xb4]
mov ecx, esi
call fcn.00487a80
mov eax, dword [esi + 0x68]
sub eax, dword [esi + 0x64]
sar eax, 2
test eax, eax
je 0x4869e6
xor edi, edi
mov eax, dword [esi + 0x64]
mov ecx, esi
mov edx, dword [esi]
push dword [eax + edi*4]
call dword [edx + 0xc8]
mov eax, dword [esi + 0x68]
inc edi
sub eax, dword [esi + 0x64]
sar eax, 2
cmp edi, eax
jb 0x4869c2
mov edi, dword [ebp - 0xf4]
test edi, edi
jne 0x486a7c
push 1
push edi
push dword [esi + 0xb4]
mov ecx, esi
mov dword [esi + 0xd4], edi
call fcn.00487a80
push 1
push edi
push 0x201
mov ecx, esi
call fcn.00487a80
mov ecx, dword [esi + 0x1b4]
xor eax, eax
cmp dword [esi + 0xc0], eax
setne al
mov dword [ebp - 0xf4], eax
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0xf0], eax
cmp eax, ecx
je 0x48737f
nop dword [eax]
mov edx, dword [eax]
cmp dword [edx + 0x264], 0
je 0x486a58
add eax, 4
inc edi
cmp eax, ecx
jne 0x486a40
jmp 0x48737f
cmp edi, 0xffffffff
je 0x48737f
mov ecx, dword [ebp - 0xf0]
push dword [ebp - 0xf4]
push 0x13
mov ecx, dword [ecx + edi*4]
call fcn.0045bbb0
jmp 0x48737f
cmp edi, 1
jne 0x486b1c
push edi
push 0
push dword [esi + 0xb4]
mov ecx, esi
mov dword [esi + 0xd4], edi
call fcn.00487a80
push edi
push 0
push 0x200
mov ecx, esi
call fcn.00487a80
mov ecx, dword [esi + 0x1b4]
xor eax, eax
cmp dword [esi + 0xc0], eax
setne al
xor edi, edi
mov dword [ebp - 0xf0], eax
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0xf4], eax
cmp eax, ecx
je 0x48737f
nop word [eax + eax]
mov edx, dword [eax]
cmp dword [edx + 0x264], 0
je 0x486af8
add eax, 4
inc edi
cmp eax, ecx
jne 0x486ae0
jmp 0x48737f
cmp edi, 0xffffffff
je 0x48737f
mov ecx, dword [ebp - 0xf4]
push dword [ebp - 0xf0]
push 0x12
mov ecx, dword [ecx + edi*4]
call fcn.0045bbb0
jmp 0x48737f
cmp edi, 2
jne 0x48737f
xor eax, eax
mov ecx, esi
cmp dword [esi + 0xd8], eax
push 1
push 0
push dword [esi + 0xb4]
sete al
mov dword [esi + 0xd8], eax
call fcn.00487a80
mov edx, dword [esi + 0xc0]
xor eax, eax
cmp dword [esi + 0xd8], 1
mov ecx, dword [esi + 0x1b4]
jne 0x486bbc
test edx, edx
setne al
xor edi, edi
mov dword [ebp - 0xf0], eax
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0xf4], eax
cmp eax, ecx
je 0x48737f
nop
mov edx, dword [eax]
cmp dword [edx + 0x264], 0
je 0x486b98
add eax, 4
inc edi
cmp eax, ecx
jne 0x486b80
jmp 0x48737f
cmp edi, 0xffffffff
je 0x48737f
mov ecx, dword [ebp - 0xf4]
push dword [ebp - 0xf0]
push 0xf
mov ecx, dword [ecx + edi*4]
call fcn.0045bbb0
jmp 0x48737f
test edx, edx
setne al
xor edi, edi
mov dword [ebp - 0xf0], eax
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0xf4], eax
cmp eax, ecx
je 0x48737f
nop dword [eax]
mov edx, dword [eax]
cmp dword [edx + 0x264], 0
je 0x486bf8
add eax, 4
inc edi
cmp eax, ecx
jne 0x486be0
jmp 0x48737f
cmp edi, 0xffffffff
je 0x48737f
mov ecx, dword [ebp - 0xf4]
push dword [ebp - 0xf0]
push 0xe
mov ecx, dword [ecx + edi*4]
call fcn.0045bbb0
jmp 0x48737f
cmp eax, 3
jne 0x486ee5
mov eax, dword [esi]
mov ecx, esi
push 4
call dword [eax + 0x88]
push 1
push 2
push dword [esi + 0xb4]
mov ecx, esi
call fcn.00487a80
mov eax, dword [esi + 0x68]
xor edi, edi
sub eax, dword [esi + 0x64]
sar eax, 2
test eax, eax
je 0x486c6f
mov eax, dword [esi + 0x64]
mov ecx, esi
mov edx, dword [esi]
push dword [eax + edi*4]
call dword [edx + 0xc8]
mov eax, dword [esi + 0x68]
inc edi
sub eax, dword [esi + 0x64]
sar eax, 2
cmp edi, eax
jb 0x486c51
movzx eax, byte [esi + 0xf0]
mov ecx, esi
mov edx, dword [esi]
push eax
push 0x12e
call dword [edx + 0xc0]
movzx eax, byte [esi + 0xcc]
mov ecx, esi
mov edx, dword [esi]
push eax
push 0x12d
call dword [edx + 0xc0]
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x24], xmm0
call fcn.004cc620
mov edi, eax
mov dword [ebp - 0x20], edi
call fcn.004296f0
mov ecx, dword [edi + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0x60]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], 0x540300
mov dword [ebp - 4], 0
mov edx, dword [esi + 0xcc]
test edx, edx
jne 0x486d5f
cmp dword [esi + 0xf0], edx
jne 0x486de0
mov ecx, dword [esi + 0x1b4]
push ecx
cmp dword [esi + 0xc0], edx
jne 0x486d00
push 1
jmp 0x486d02
push 8
call fcn.00459a80
push 3
call fcn.0048ab50
mov ecx, eax
sub esp, 0x44
shl ecx, 4
mov edi, esp
add ecx, eax
mov dword [ebp - 0xf8], edi
lea eax, [ecx*4 + 0x58fce8]
mov ecx, edi
mov dword [ebp - 0xf0], eax
call fcn.0041ad80
cmp dword [edi + 0x38], 0
mov dword [edi], vtable.CStringUTF8.0
je 0x486d48
lea ecx, [edi + 0x34]
call fcn.0041a760
mov dword [edi + 0x3c], 0xffffffff
mov dword [edi + 0x40], 0xffffffff
mov byte [ebp - 4], 1
jmp 0x486eba
cmp edx, 3
jl 0x486de0
cmp dword [esi + 0xf0], 3
jl 0x486de0
cmp dword [esi + 0xc0], 0
mov ecx, dword [esi + 0x1b4]
push ecx
jne 0x486d81
push 5
jmp 0x486d83
push 0xd
call fcn.00459a80
push 3
call fcn.0048ab50
mov ecx, eax
sub esp, 0x44
shl ecx, 4
mov edi, esp
add ecx, eax
mov dword [ebp - 0xf8], edi
lea eax, [ecx*4 + 0x58fdb4]
mov ecx, edi
mov dword [ebp - 0xf0], eax
call fcn.0041ad80
cmp dword [edi + 0x38], 0
mov dword [edi], vtable.CStringUTF8.0
je 0x486dc9
lea ecx, [edi + 0x34]
call fcn.0041a760
mov dword [edi + 0x3c], 0xffffffff
mov dword [edi + 0x40], 0xffffffff
mov byte [ebp - 4], 2
jmp 0x486eba
mov ecx, dword [esi + 0x1b4]
mov eax, dword [esi + 0xc0]
push ecx
cmp edx, dword [esi + 0xf0]
jl 0x486e58
test eax, eax
jne 0x486dfc
push eax
jmp 0x486dfe
push 7
call fcn.00459a80
push 3
call fcn.0048ab50
mov ecx, eax
sub esp, 0x44
shl ecx, 4
mov edi, esp
add ecx, eax
mov dword [ebp - 0xf8], edi
lea eax, [ecx*4 + 0x58fe80]
mov ecx, edi
mov dword [ebp - 0xf0], eax
call fcn.0041ad80
cmp dword [edi + 0x38], 0
mov dword [edi], vtable.CStringUTF8.0
je 0x486e44
lea ecx, [edi + 0x34]
call fcn.0041a760
mov dword [edi + 0x3c], 0xffffffff
mov dword [edi + 0x40], 0xffffffff
mov byte [ebp - 4], 3
jmp 0x486eba
test eax, eax
jne 0x486e60
push 5
jmp 0x486e62
push 0xb
call fcn.00459a80
push 3
call fcn.0048ab50
mov ecx, eax
sub esp, 0x44
shl ecx, 4
mov edi, esp
add ecx, eax
mov dword [ebp - 0xf8], edi
lea eax, [ecx*4 + 0x58ff4c]
mov ecx, edi
mov dword [ebp - 0xf0], eax
call fcn.0041ad80
cmp dword [edi + 0x38], 0
mov dword [edi], vtable.CStringUTF8.0
je 0x486ea8
lea ecx, [edi + 0x34]
call fcn.0041a760
mov dword [edi + 0x3c], 0xffffffff
mov dword [edi + 0x40], 0xffffffff
mov byte [ebp - 4], 4
push dword [ebp - 0xf0]
mov ecx, edi
call fcn.0041a900
mov ecx, esi
mov byte [ebp - 4], 0
call fcn.0048cd60
mov dword [esi + 4], 0
mov dword [ebp - 4], 0xffffffff
jmp 0x48737f
cmp eax, 4
jne 0x487168
mov eax, dword [esi]
mov ecx, esi
push 0xbc6
mov eax, dword [eax + 0xbc]
call eax
test al, al
je 0x4873ae
mov eax, dword [esi]
mov ecx, esi
push 4
call dword [eax + 0x88]
push 1
push 2
push dword [esi + 0xb4]
mov ecx, esi
call fcn.00487a80
mov eax, dword [esi + 0x68]
xor edi, edi
sub eax, dword [esi + 0x64]
sar eax, 2
test eax, eax
je 0x486f51
mov eax, dword [esi + 0x64]
mov ecx, esi
mov edx, dword [esi]
push dword [eax + edi*4]
call dword [edx + 0xc8]
mov eax, dword [esi + 0x68]
inc edi
sub eax, dword [esi + 0x64]
sar eax, 2
cmp edi, eax
jb 0x486f33
xor eax, eax
mov ecx, esi
cmp dword [esi + 0xc0], eax
push 1
push 0
push dword [esi + 0xb4]
sete al
mov dword [esi + 0xc0], eax
call fcn.00487a80
cmp dword [esi + 0xc0], 1
mov ecx, dword [esi + 0x1a0]
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
jne 0x4870ab
push 1
call eax
mov ecx, dword [esi + 0x1c8]
mov eax, dword [ecx]
call dword [eax + 8]
push 0xa00
lea ecx, [ebp - 0xec]
call fcn.004dbb30
mov dword [ebp - 4], 5
mov eax, dword [esi + 0x1c8]
mov ecx, dword [esi + 0x1a0]
or dword [ebp - 0xec], 0x2000000
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0xec]
push eax
call fcn.004daee0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xa8]
test ecx, ecx
je 0x487017
mov edx, dword [ebp - 0xa0]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x48700d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4873c9
push edx
push ecx
call fcn.004fe28b
add esp, 8
push 1
lea ecx, [ebp - 0xec]
call fcn.004dbb30
mov dword [ebp - 4], 6
lea eax, [ebp - 0xec]
mov ecx, dword [esi + 0x1a0]
or dword [ebp - 0xec], 0x10000000
push eax
mov dword [ebp - 0x2c], 0xffffffff
mov dword [ebp - 0x28], 0
call fcn.004daee0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xa8]
test ecx, ecx
je 0x487096
mov edx, dword [ebp - 0xa0]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x48708c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4873c9
push edx
push ecx
call fcn.004fe28b
add esp, 8
mov ecx, dword [esi + 0x1b0]
push 0
push 0x1f
push 0
push 0
call fcn.004dc140
jmp 0x4870ef
push 0
call eax
mov ecx, dword [esi + 0x1b0]
xor edi, edi
mov dword [ecx + 0x2c], 0
mov eax, dword [ecx + 0x34]
sub eax, dword [ecx + 0x30]
sar eax, 2
test eax, eax
je 0x4870ef
mov esi, ecx
nop dword [eax]
mov ecx, dword [esi + 0x30]
mov ecx, dword [ecx + edi*4]
call fcn.004dafb0
mov eax, dword [esi + 0x34]
inc edi
sub eax, dword [esi + 0x30]
sar eax, 2
cmp edi, eax
jb 0x4870d0
mov esi, dword [ebp - 0xf8]
mov ecx, dword [esi + 0x1b4]
xor edi, edi
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0xf8], eax
cmp eax, ecx
je 0x487123
nop word [eax + eax]
mov edx, dword [eax]
cmp dword [edx + 0x264], 0
je 0x48713a
add eax, 4
inc edi
cmp eax, ecx
jne 0x487110
xor eax, eax
push ecx
mov ecx, dword [esi + 0x1b4]
add eax, 7
push eax
call fcn.00459a80
jmp 0x48737f
cmp edi, 0xffffffff
je 0x487123
mov eax, dword [ebp - 0xf8]
mov eax, dword [eax + edi*4]
mov eax, dword [eax + 0x278]
cmp eax, 7
jl 0x487125
push ecx
mov ecx, dword [esi + 0x1b4]
add eax, 0xfffffff9
push eax
call fcn.00459a80
jmp 0x48737f
cmp eax, 5
jne 0x4871ed
mov eax, dword [esi]
mov ecx, esi
push 4
call dword [eax + 0x88]
push 1
push 2
push dword [esi + 0xb4]
mov ecx, esi
call fcn.00487a80
mov eax, dword [esi + 0x68]
xor edi, edi
sub eax, dword [esi + 0x64]
sar eax, 2
test eax, eax
je 0x4871be
nop dword [eax]
mov eax, dword [esi + 0x64]
mov ecx, esi
mov edx, dword [esi]
push dword [eax + edi*4]
call dword [edx + 0xc8]
mov eax, dword [esi + 0x68]
inc edi
sub eax, dword [esi + 0x64]
sar eax, 2
cmp edi, eax
jb 0x4871a0
xor eax, eax
mov ecx, esi
cmp dword [esi + 0xd0], eax
push 0
push 0
sete al
push 0x500
mov dword [esi + 0xd0], eax
call fcn.00487a80
push 1
push 0
push 0x501
jmp 0x487378
cmp eax, 6
jne 0x487274
mov eax, dword [esi]
mov ecx, esi
push 4
call dword [eax + 0x88]
push 1
push 2
push dword [esi + 0xb4]
mov ecx, esi
call fcn.00487a80
mov eax, dword [esi + 0x68]
xor edi, edi
sub eax, dword [esi + 0x64]
sar eax, 2
test eax, eax
je 0x487240
mov eax, dword [esi + 0x64]
mov ecx, esi
mov edx, dword [esi]
push dword [eax + edi*4]
call dword [edx + 0xc8]
mov eax, dword [esi + 0x68]
inc edi
sub eax, dword [esi + 0x64]
sar eax, 2
cmp edi, eax
jb 0x487222
xor eax, eax
mov dword [esi + 0x168], 0xffffffff
cmp dword [esi + 0x164], eax
push 0
sete al
mov dword [esi + 0xbc], 0xffffffff
push 0
push dword [esi + 0xb4]
mov dword [esi + 0x164], eax
jmp 0x487378
cmp eax, 7
jne 0x4872e2
mov eax, dword [esi]
mov ecx, esi
push 4
call dword [eax + 0x88]
push 1
push 2
push dword [esi + 0xb4]
mov ecx, esi
call fcn.00487a80
mov eax, dword [esi + 0x68]
xor edi, edi
sub eax, dword [esi + 0x64]
sar eax, 2
test eax, eax
je 0x4872c3
mov eax, dword [esi + 0x64]
mov ecx, esi
mov edx, dword [esi]
push dword [eax + edi*4]
call dword [edx + 0xc8]
mov eax, dword [esi + 0x68]
inc edi
sub eax, dword [esi + 0x64]
sar eax, 2
cmp edi, eax
jb 0x4872a5
xor eax, eax
cmp dword [esi + 0x178], eax
push 0
sete al
push 0
mov dword [esi + 0x178], eax
push 0x700
jmp 0x487378
cmp eax, 8
jne 0x48737f
mov eax, dword [esi]
mov ecx, esi
push 4
call dword [eax + 0x88]
push 1
push 2
push dword [esi + 0xb4]
mov ecx, esi
call fcn.00487a80
mov eax, dword [esi + 0x68]
xor edi, edi
sub eax, dword [esi + 0x64]
sar eax, 2
test eax, eax
je 0x487335
mov eax, dword [esi + 0x64]
mov ecx, esi
mov edx, dword [esi]
push dword [eax + edi*4]
call dword [edx + 0xc8]
mov eax, dword [esi + 0x68]
inc edi
sub eax, dword [esi + 0x64]
sar eax, 2
cmp edi, eax
jb 0x487317
mov eax, dword [ebp - 0xf4]
test eax, eax
jne 0x487359
cmp dword [esi + 0x170], eax
push 0
sete al
push 0
mov dword [esi + 0x170], eax
push 0x800
jmp 0x487378
cmp eax, 1
jne 0x48737f
xor eax, eax
cmp dword [esi + 0x174], eax
push 0
sete al
push 0
mov dword [esi + 0x174], eax
push 0x801
mov ecx, esi
call fcn.00487a80
mov eax, dword [esi + 0x68]
xor edi, edi
sub eax, dword [esi + 0x64]
sar eax, 2
test eax, eax
je 0x4873ae
nop
mov eax, dword [esi + 0x64]
mov ecx, esi
mov edx, dword [esi]
push dword [eax + edi*4]
call dword [edx + 0xc8]
mov eax, dword [esi + 0x68]
inc edi
sub eax, dword [esi + 0x64]
sar eax, 2
cmp edi, eax
jb 0x487390
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fe27d
mov esp, ebp
pop ebp
ret
call fcn.00501acf
int3