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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
test dl, dl
je 0x5070a6
add esp, 0xfffffff0
call fcn.00403c58
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [0x52ba54]
mov eax, dword [eax]
mov eax, dword [eax + 0x36c]
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], eax
xor eax, eax
mov al, byte [ebp + 0x10]
cmp eax, 0xb
ja case.0x5070d0.0
jmp dword [eax*4 + 0x5070d7]
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x80], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x88], 6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
mov edx, dword [ebp - 4]
mov dword [edx + 0x84], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x69], 0
mov eax, dword [ebp - 4]
mov dl, byte [ebp + 0xc]
mov byte [eax + 0x68], dl
mov eax, dword [ebp - 4]
mov dword [eax + 0x74], 0xa
jmp case.0x5070d0.0
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x80], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x88], 0xffffffff
mov eax, dword [ebp - 4]
mov dword [eax + 0x74], 0xa
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
mov edx, dword [ebp - 4]
mov dword [edx + 0x84], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x69], 1
mov eax, dword [ebp - 4]
mov byte [eax + 0x68], 0
jmp case.0x5070d0.0
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x80], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x88], 3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
mov edx, dword [ebp - 4]
mov dword [edx + 0x84], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x69], 0
mov eax, dword [ebp - 4]
mov dl, byte [ebp + 0xc]
mov byte [eax + 0x68], dl
mov eax, dword [ebp - 4]
mov dword [eax + 0x74], 3
jmp case.0x5070d0.0
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x80], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x88], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
mov edx, dword [ebp - 4]
mov dword [edx + 0x84], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x69], 0
mov eax, dword [ebp - 4]
mov dl, byte [ebp + 0xc]
mov byte [eax + 0x68], dl
mov eax, dword [ebp - 4]
mov dword [eax + 0x74], 1
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov dword [eax + 8], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x24]
mov dword [eax + 0x18], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x18]
mov dword [eax + 0x34], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
mov dword [eax + 0x38], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x20]
mov dword [eax + 0x9c], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x1c]
mov dword [eax + 0xa0], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x20]
mov dword [eax + 0x44], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x1c]
mov dword [eax + 0x48], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x20]
mov dword [eax + 0x4c], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x1c]
mov dword [eax + 0x50], edx
fild dword [ebp + 0x20]
mov eax, dword [ebp - 4]
fstp qword [eax + 0x58]
wait
fild dword [ebp + 0x1c]
mov eax, dword [ebp - 4]
fstp qword [eax + 0x60]
wait
mov eax, dword [0x52b860]
mov eax, dword [eax]
mov eax, dword [eax + 0x118]
shl eax, 4
lea eax, [eax + eax*2]
mov edx, dword [0x52b860]
mov edx, dword [edx]
add eax, dword [edx + 0xe8]
mov edx, dword [ebp - 4]
mov dword [edx + 0xb4], eax
mov eax, dword [0x52b860]
mov eax, dword [eax]
mov eax, dword [eax + 0x11c]
shl eax, 5
mov edx, dword [0x52b860]
mov edx, dword [edx]
add eax, dword [edx + 0xec]
mov edx, dword [ebp - 4]
mov dword [edx + 0xb8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
add eax, 0xaa
mov edx, dword [ebp - 4]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x7c], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9c]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x34]
je 0x507330
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x9c]
cdq
xor eax, edx
sub eax, edx
mov dword [ebp - 0x10], eax
jmp 0x507337
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa0]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x38]
je 0x507361
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0xa0]
cdq
xor eax, edx
sub eax, edx
mov dword [ebp - 0x14], eax
jmp 0x507368
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9c]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x34]
cdq
xor eax, edx
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa0]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x38]
cdq
xor eax, edx
sub eax, edx
cmp ecx, eax
jle 0x5073f4
fild dword [ebp - 0x10]
fdivr dword [0x507500]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x9c]
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fmulp st(1)
call fcn.00402bf8
mov edx, dword [ebp - 4]
mov dword [edx + 0xa4], eax
fild dword [ebp - 0x10]
fdivr dword [0x507500]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0xa0]
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fmulp st(1)
call fcn.00402bf8
mov edx, dword [ebp - 4]
mov dword [edx + 0xa8], eax
jmp 0x507450
fild dword [ebp - 0x14]
fdivr dword [0x507500]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x9c]
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fmulp st(1)
call fcn.00402bf8
mov edx, dword [ebp - 4]
mov dword [edx + 0xa4], eax
fild dword [ebp - 0x14]
fdivr dword [0x507500]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0xa0]
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fmulp st(1)
call fcn.00402bf8
mov edx, dword [ebp - 4]
mov dword [edx + 0xa8], eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x78], 0x32
call fcn.00406bb0
mov edx, dword [ebp - 4]
mov dword [edx + 0x8c], eax
call fcn.00406bb0
mov edx, dword [ebp - 4]
mov dword [edx + 0x90], eax
call fcn.00406bb0
mov edx, dword [ebp - 4]
mov dword [edx + 0x98], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [eax + 0x94], edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x20]
call fcn.0050ba04
mov edx, dword [ebp - 4]
mov byte [edx + 0x30], al
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x30]
mov edx, dword [ebp - 4]
mov byte [edx + 0x31], al
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x70], edx
mov eax, dword [ebp - 4]
mov byte [eax + 4], 1
mov eax, dword [ebp - 4]
mov dword [eax + 0xbc], 0x1869f
mov eax, dword [ebp - 4]
mov dword [eax + 0xc0], 0x1869f
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0x5074f5
call fcn.00403cb0
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0x20