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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x671336
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
test ebx, ebx
je 0x671320
xor edx, edx
push ebp
push 0x6712eb
push dword fs:[edx]
mov dword fs:[edx], esp
movzx eax, word [ebx]
cmp eax, 0xc6
jg 0x670c8f
je 0x6712c9
add eax, 0xffffff5f
cmp eax, 9
ja case.0x670c60.163
jmp dword [eax*4 + 0x670c67]
cmp eax, 0xe5
jg 0x670cbc
je 0x670f6b
sub eax, 0xc8
je 0x671087
sub eax, 0x13
je 0x670df5
dec eax
je 0x670ec1
jmp case.0x670c60.163
sub eax, 0xe6
je 0x6712d2
sub eax, 7
je 0x6710a2
jmp case.0x670c60.163
cmp word [ebx], 0xa1
jne 0x670d13
cmp byte [esi + 0x22a], 0x32
jb 0x670d13
cmp byte [esi + 0x2a7], 0
jne 0x670d13
cmp word [esi + 0x34], 0x23
jae 0x670d13
mov eax, 0x3e8
call fcn.00403484
mov edx, dword [esi + 0x400]
add edx, 0x320
add eax, edx
mov dword [esi + 0x400], eax
mov ecx, dword [ebx + 4]
xor edx, edx
mov eax, esi
call fcn.0066853c
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x670dae
mov ecx, dword [ebx + 0x10]
lea edx, [ebp - 8]
mov eax, esi
call fcn.00668730
mov eax, esi
call fcn.0066b140
movzx eax, word [esi + 0x11e]
push eax
movzx eax, word [esi + 0x122]
push eax
mov eax, dword [ebx + 0x10]
push eax
push 0
push 0
movzx ecx, word [ebp - 8]
mov dx, 0xa3
mov eax, esi
call fcn.006633cc
cmp byte [esi + 0x22a], 0
je 0x670dae
cmp byte [esi + 0x2a3], 0
je 0x670d86
imul eax, dword [ebp - 8], 0x3e8
sub dword [esi + 0x2ac], eax
movzx eax, word [ebp - 8]
push eax
movzx eax, word [esi + 0x11e]
push eax
movzx eax, word [esi + 0x122]
push eax
mov eax, dword [ebx + 0x10]
push eax
push 0
mov cx, 0x9e
mov edx, esi
mov eax, esi
call fcn.00662c2c
cmp byte [esi + 0xb80], 0
je 0x670dc7
mov word [esi + 0x1be], 1
mov byte [esi + 0xb80], 0
cmp byte [esi + 0xb81], 0
jbe case.0x670c60.163
dec byte [esi + 0xb81]
cmp byte [esi + 0xb81], 0
jne case.0x670c60.163
mov word [esi + 0x1be], 1
jmp case.0x670c60.163
mov edx, dword [esi + 0xd0]
mov eax, dword [ebx + 4]
add edx, eax
cmp edx, 0x12c
jge 0x670e3b
cmp byte [esi + 0x22a], 0
jne 0x670e26
add dword [esi + 0xd0], eax
mov dword [esi + 0x24c], 5
jmp case.0x670c60.163
add dword [esi + 0xd0], eax
mov dword [esi + 0x24c], 5
jmp case.0x670c60.163
mov dword [esi + 0xd0], 0x12c
jmp case.0x670c60.163
mov eax, dword [ebx + 4]
push eax
mov eax, dword [ebx + 8]
push eax
mov eax, dword [ebx + 0xc]
push eax
mov eax, dword [ebx + 0x1c]
push eax
push 0
movzx ecx, word [ebx + 2]
movzx edx, word [ebx + 0x10]
mov eax, esi
call fcn.006633cc
cmp dword [ebx + 0x10], 0x9e
jne 0x670e9f
cmp byte [esi + 0x22a], 0
je 0x670e9f
movzx eax, word [ebx + 2]
push eax
mov eax, dword [ebx + 4]
push eax
mov eax, dword [ebx + 8]
push eax
mov eax, dword [ebx + 0xc]
push eax
mov eax, dword [ebx + 0x1c]
push eax
movzx ecx, word [ebx + 0x10]
mov edx, esi
mov eax, esi
call fcn.00662c2c
cmp byte [esi + 0xb80], 0
je case.0x670c60.163
mov word [esi + 0x1be], 1
mov byte [esi + 0xb80], 0
jmp case.0x670c60.163
movzx eax, word [ebx + 2]
mov dword [ebp - 0x14], eax
movzx eax, word [ebx + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 4]
shr eax, 0x10
movzx eax, ax
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x18], eax
mov edi, dword [ebx + 0xc]
test edi, edi
je case.0x670c60.163
mov ecx, dword [ebp - 0x14]
mov edx, esi
mov eax, edi
call fcn.0066853c
test eax, eax
jle case.0x670c60.163
mov edx, edi
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x70]
cmp byte [edi + 0x22a], 0x32
jb 0x670f25
fild dword [ebp - 0x14]
fld xword [0x671348]
fdivp st(1)
call fcn.00403560
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
sub eax, dword [edi + 0x24]
cdq
xor eax, edx
sub eax, edx
cmp eax, dword [ebp - 0x18]
jg case.0x670c60.163
mov eax, dword [ebp - 0x10]
sub eax, dword [edi + 0x28]
cdq
xor eax, edx
sub eax, edx
cmp eax, dword [ebp - 0x18]
jg case.0x670c60.163
push 0
mov eax, dword [ebp - 0x14]
push eax
push 0
push 0
push 0
mov cx, 0xa1
mov edx, esi
mov eax, edi
call fcn.00662c2c
jmp case.0x670c60.163
movzx eax, word [ebx + 2]
mov dword [ebp - 0x14], eax
movzx eax, word [ebx + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 4]
shr eax, 0x10
movzx eax, ax
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x18], eax
mov edi, dword [ebx + 0xc]
test edi, edi
je case.0x670c60.163
mov ecx, dword [ebp - 0x14]
mov edx, esi
mov eax, edi
call fcn.0066853c
test eax, eax
jle case.0x670c60.163
mov edx, edi
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x70]
cmp byte [edi + 0x22a], 0x32
jb 0x670fcf
fild dword [ebp - 0x14]
fld xword [0x671348]
fdivp st(1)
call fcn.00403560
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
sub eax, dword [edi + 0x24]
cdq
xor eax, edx
sub eax, edx
cmp eax, dword [ebp - 0x18]
jg case.0x670c60.163
mov eax, dword [ebp - 0x10]
sub eax, dword [edi + 0x28]
cdq
xor eax, edx
sub eax, edx
cmp eax, dword [ebp - 0x18]
jg case.0x670c60.163
push 0
mov eax, dword [ebp - 0x14]
push eax
push 0
push 0
push 0
mov cx, 0xa1
mov edx, esi
mov eax, edi
call fcn.00662c2c
push 0
mov eax, dword [ebp - 0x14]
push eax
push 0
push 0
push 0
mov cx, 0xdb
mov edx, esi
mov eax, esi
call fcn.00662c2c
push esi
mov eax, dword [esi + 0x24]
push eax
mov eax, dword [esi + 0x28]
push eax
push 0
push 0
mov cx, 0xb
mov dx, 0xd9
mov eax, esi
call fcn.006633cc
jmp case.0x670c60.163
movzx ecx, word [ebx + 2]
mov edx, dword [ebx + 0x1c]
mov eax, esi
call fcn.00671b20
jmp case.0x670c60.163
movzx eax, word [ebx + 2]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x18], eax
mov edi, dword [ebx + 0xc]
test edi, edi
je case.0x670c60.163
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov eax, edi
call fcn.0066bc58
jmp case.0x670c60.163
mov eax, dword [ebx + 0xc]
push eax
push 0
mov ecx, dword [ebx + 8]
mov edx, dword [esi + 0x2e0]
mov eax, esi
call fcn.00670890
jmp case.0x670c60.163
mov eax, dword [ebx + 8]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je case.0x670c60.163
mov eax, dword [ebp - 0x1c]
mov edi, dword [eax]
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax + 6]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
test edi, edi
je 0x6711cf
mov eax, dword [ebp - 0xc]
sub eax, dword [esi + 0x24]
cdq
xor eax, edx
sub eax, edx
cmp eax, dword [ebp - 0x18]
jg 0x6711cf
mov eax, dword [ebp - 0x10]
sub eax, dword [esi + 0x28]
cdq
xor eax, edx
sub eax, edx
cmp eax, dword [ebp - 0x18]
jg 0x6711cf
mov edx, edi
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x70]
cmp byte [esi + 0x22a], 0
jne 0x671128
cmp byte [edi + 0x22a], 0
jne 0x671128
mov edx, edi
mov eax, esi
call fcn.006671c0
mov edx, edi
mov eax, esi
call fcn.00667178
mov eax, dword [esi + 0x278]
test eax, eax
je 0x67118b
cmp eax, edi
je 0x67118b
cmp byte [edi + 0x22a], 0
jne 0x67118b
mov edx, edi
call fcn.006671c0
mov edx, dword [esi + 0x278]
mov eax, dword [0x6c10e4]
mov eax, dword [eax]
call fcn.004d071c
test eax, eax
je 0x67118b
mov eax, dword [esi + 0x278]
mov eax, dword [eax + 0x2fc]
cmp eax, dword [edi + 0x2fc]
je 0x67118b
mov byte [edi + 0x298], 1
call sub.kernel32.dll_GetTickCount_1
mov dword [edi + 0x29c], eax
cmp dword [esi + 0x294], 0
je 0x6711a6
mov byte [edi + 0x298], 1
call sub.kernel32.dll_GetTickCount_1
mov dword [edi + 0x29c], eax
mov eax, dword [ebx + 0xc]
push eax
mov ecx, dword [ebx + 4]
movzx edx, word [ebx + 2]
mov eax, esi
call fcn.00669318
cmp word [ebx + 2], 5
jne 0x6711cf
mov eax, dword [ebp - 0x1c]
cmp byte [eax + 0xc], 0
je 0x6711cf
mov byte [esi + 0xb81], 2
mov edx, 0xd
mov eax, dword [ebp - 0x1c]
call fcn.00402fb0
jmp case.0x670c60.163
mov edi, dword [ebx + 8]
test edi, edi
je 0x6712a2
mov edx, edi
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x70]
cmp byte [esi + 0x22a], 0
jne 0x671210
cmp byte [edi + 0x22a], 0
jne 0x671210
mov edx, edi
mov eax, esi
call fcn.006671c0
mov edx, edi
mov eax, esi
call fcn.00667178
mov eax, dword [esi + 0x278]
test eax, eax
je 0x671273
cmp eax, edi
je 0x671273
cmp byte [edi + 0x22a], 0
jne 0x671273
mov edx, edi
call fcn.006671c0
mov edx, dword [esi + 0x278]
mov eax, dword [0x6c10e4]
mov eax, dword [eax]
call fcn.004d071c
test eax, eax
je 0x671273
mov eax, dword [esi + 0x278]
mov eax, dword [eax + 0x2fc]
cmp eax, dword [edi + 0x2fc]
je 0x671273
mov byte [edi + 0x298], 1
call sub.kernel32.dll_GetTickCount_1
mov dword [edi + 0x29c], eax
cmp dword [esi + 0x294], 0
je 0x67128e
mov byte [edi + 0x298], 1
call sub.kernel32.dll_GetTickCount_1
mov dword [edi + 0x29c], eax
mov eax, dword [ebx + 0xc]
push eax
mov ecx, dword [ebx + 4]
movzx edx, word [ebx + 2]
mov eax, esi
call fcn.00669318
jmp case.0x670c60.163
mov eax, dword [ebx + 0xc]
push eax
mov ecx, dword [ebx + 4]
movzx edx, word [ebx + 2]
mov eax, esi
call fcn.00669318
jmp case.0x670c60.163
mov ecx, dword [ebx + 4]
mov eax, dword [0x6c05f8]
mov eax, dword [eax]
mov edx, esi
call fcn.004db934
jmp case.0x670c60.163
mov eax, esi
call fcn.0066eaf0
jmp case.0x670c60.163
mov edx, dword [esi + 0x2e0]
xor ecx, ecx
mov eax, esi
call fcn.00671ab8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x671320
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x67133d
lea eax, [ebp - 0x20]
call fcn.00405394
ret