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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004099a4
xor eax, eax
push ebp
push 0x79a42c
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x798520]
call fcn.00407ae8
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x40]
test edx, edx
je 0x799f80
sub edx, 0xfffffff8
call fcn.0040da30
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 0x40]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0x40]
add eax, 0x14
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
test edx, edx
je 0x799fa4
sub edx, 0xfffffff8
call fcn.0040da30
mov byte [ebp - 0x1d], 0
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00422bb8
test al, al
je 0x79a3db
xor edx, edx
push ebp
push 0x79a02d
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
lea edx, [ebp - 0x10]
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.0064d378
test al, al
jne 0x799fed
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x79a3db
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x799ff9
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x79a001
mov al, 1
jmp 0x79a012
mov eax, dword [0x7ec9f0]
cmp dword [eax + 4], 0
jne 0x79a00f
cmp dword [eax], 0
sete al
test al, al
je 0x79a023
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x79a3db
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x79a041
xor edx, edx
push ebp
push 0x79a313
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 8]
mov ecx, 0x79a44c
mov edx, dword [ebp - 4]
call fcn.0040a794
lea eax, [ebp - 0xc]
mov ecx, 0x79a470
mov edx, dword [ebp - 4]
call fcn.0040a794
push 0x40
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x64933c]
call fcn.0064d7fc
mov dword [ebp - 0x24], eax
xor edx, edx
push ebp
push 0x79a2f6
push dword fs:[edx]
mov dword fs:[edx], esp
push 0xff00
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x64933c]
call fcn.0064d7fc
mov dword [ebp - 0x28], eax
push 0
push 0xc
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
call fcn.0049b4b8
call fcn.004a76c0
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x79a0cb
sub eax, 4
mov eax, dword [eax]
dec eax
mov edx, dword [ebp - 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x40]
mov edx, dword [ebp - 0x40]
test edx, edx
je 0x79a0e5
sub edx, 0xffffffe4
call fcn.004a7994
mov eax, dword [ebp - 0x40]
mov esi, dword [eax + 0xc]
test esi, esi
jl 0x79a18d
inc esi
xor ebx, ebx
call fcn.004a76c0
mov edx, eax
sub edx, dword [ebp - 0x3c]
cmp edx, 0x1f4
jae 0x79a115
mov edx, dword [ebp - 0x40]
cmp ebx, dword [edx + 0xc]
jne 0x79a133
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x40]
mov dword [eax + 0x38], ebx
mov edx, dword [ebp - 0x40]
test edx, edx
je 0x79a12e
sub edx, 0xffffffe8
call fcn.004a7994
imul edi, ebx, 0x23
mov eax, dword [ebp - 0x10]
push dword [eax + edi*8 + 0x108]
push dword [eax + edi*8 + 0x104]
mov eax, dword [ebp - 0x24]
call fcn.0064dc2c
mov eax, dword [ebp - 0x28]
call fcn.0064da00
push edx
push eax
mov eax, dword [ebp - 0x10]
pop dword [eax + edi*8 + 0x104]
pop dword [eax + edi*8 + 0x108]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + edi*8 + 0x110]
test eax, eax
jbe 0x79a185
mov ecx, eax
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
call fcn.0064d760
inc ebx
dec esi
jne 0x79a0fb
mov eax, dword [ebp - 0x28]
call fcn.0064da00
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
lea eax, [ebp - 0x14]
mov edx, dword [0x6492f4]
call fcn.0040c134
lea eax, [ebp - 0x18]
mov edx, dword [0x6492f4]
call fcn.0040c134
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x79a1c3
sub eax, 4
mov eax, dword [eax]
mov esi, eax
dec esi
test esi, esi
jl 0x79a2a4
inc esi
xor ebx, ebx
push 1
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x28]
call fcn.0064dab8
imul edi, ebx, 0x23
mov edx, dword [ebp - 0x10]
lea edx, [edx + edi*8]
lea ecx, [ebp - 0x2c]
call fcn.0064b8a8
mov eax, dword [ebp - 0x2c]
xor edx, edx
push edx
push eax
mov eax, dword [0x7ec4c8]
mov eax, dword [eax]
cdq
cmp edx, dword [esp + 4]
jne 0x79a20e
cmp eax, dword [esp]
pop edx
pop eax
jae 0x79a21c
jmp 0x79a212
pop edx
pop eax
jge 0x79a21c
mov eax, dword [0x7ec4c8]
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x7ec7d8]
mov eax, dword [eax]
xor eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
call fcn.0064b1e0
mov eax, dword [0x7ec860]
mov eax, dword [eax]
xor eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
call fcn.0064b1e0
mov eax, dword [ebp - 0x2c]
xor edx, edx
push edx
push eax
mov eax, dword [0x7ec4c8]
mov eax, dword [eax]
cdq
cmp edx, dword [esp + 4]
jne 0x79a25e
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x79a272
jmp 0x79a262
pop edx
pop eax
jle 0x79a272
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x28]
mov edi, dword [eax]
call dword [edi + 0x10]
jmp 0x79a29c
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x28]
call fcn.0064dab8
mov edx, dword [ebp - 0x10]
lea edx, [edx + edi*8]
lea ecx, [ebp - 0x2c]
call fcn.0064b8a8
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
mov edi, dword [eax]
call dword [edi + 0x10]
inc ebx
dec esi
jne 0x79a1d1
lea eax, [ebp - 0x14]
mov edx, dword [0x6492f4]
call fcn.0040c134
lea eax, [ebp - 0x18]
mov edx, dword [0x6492f4]
call fcn.0040c134
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x79a2cc
sub eax, 4
mov eax, dword [eax]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push 0
xor ecx, ecx
mov edx, eax
mov eax, dword [ebp - 0x28]
call fcn.0064b19c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x79a2fd
mov eax, dword [ebp - 0x28]
call fcn.00407b18
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x79a433
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00409920
lea eax, [ebp - 0x1c]
call fcn.0040da18
lea eax, [ebp - 0x18]
mov edx, dword [0x6492f4]
mov ecx, 2
call fcn.0040afe8
lea eax, [ebp - 0x10]
mov edx, dword [0x6492c4]
call fcn.0040c134
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00409920
ret