Function at 0x799e38
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 0x79a33c
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x798308]
call fcn.00407ae8
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x40]
test edx, edx
je 0x799e90
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 0x799eb4
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 0x79a2eb
xor edx, edx
push ebp
push 0x799f3d
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.0064d430
test al, al
jne 0x799efd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x79a2eb
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x799f09
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x799f11
mov al, 1
jmp 0x799f22
mov eax, dword [0x7ed9f4]
cmp dword [eax + 4], 0
jne 0x799f1f
cmp dword [eax], 0
sete al
test al, al
je 0x799f33
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x79a2eb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x799f51
xor edx, edx
push ebp
push 0x79a223
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 8]
mov ecx, 0x79a35c
mov edx, dword [ebp - 4]
call fcn.0040a794
lea eax, [ebp - 0xc]
mov ecx, 0x79a380
mov edx, dword [ebp - 4]
call fcn.0040a794
push 0x40
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x6493f4]
call fcn.0064d8b4
mov dword [ebp - 0x24], eax
xor edx, edx
push ebp
push 0x79a206
push dword fs:[edx]
mov dword fs:[edx], esp
push 0xff00
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x6493f4]
call fcn.0064d8b4
mov dword [ebp - 0x28], eax
push 0
push 0xc
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
call fcn.0049b570
call fcn.004a7778
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x799fdb
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 0x799ff5
sub edx, 0xffffffe4
call fcn.004a7a4c
mov eax, dword [ebp - 0x40]
mov esi, dword [eax + 0xc]
test esi, esi
jl 0x79a09d
inc esi
xor ebx, ebx
call fcn.004a7778
mov edx, eax
sub edx, dword [ebp - 0x3c]
cmp edx, 0x1f4
jae 0x79a025
mov edx, dword [ebp - 0x40]
cmp ebx, dword [edx + 0xc]
jne 0x79a043
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 0x79a03e
sub edx, 0xffffffe8
call fcn.004a7a4c
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.0064dce4
mov eax, dword [ebp - 0x28]
call fcn.0064dab8
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 0x79a095
mov ecx, eax
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
call fcn.0064d818
inc ebx
dec esi
jne 0x79a00b
mov eax, dword [ebp - 0x28]
call fcn.0064dab8
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
lea eax, [ebp - 0x14]
mov edx, dword [0x6493ac]
call fcn.0040c134
lea eax, [ebp - 0x18]
mov edx, dword [0x6493ac]
call fcn.0040c134
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x79a0d3
sub eax, 4
mov eax, dword [eax]
mov esi, eax
dec esi
test esi, esi
jl 0x79a1b4
inc esi
xor ebx, ebx
push 1
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x28]
call fcn.0064db70
imul edi, ebx, 0x23
mov edx, dword [ebp - 0x10]
lea edx, [edx + edi*8]
lea ecx, [ebp - 0x2c]
call fcn.0064b960
mov eax, dword [ebp - 0x2c]
xor edx, edx
push edx
push eax
mov eax, dword [0x7ed4cc]
mov eax, dword [eax]
cdq
cmp edx, dword [esp + 4]
jne 0x79a11e
cmp eax, dword [esp]
pop edx
pop eax
jae 0x79a12c
jmp 0x79a122
pop edx
pop eax
jge 0x79a12c
mov eax, dword [0x7ed4cc]
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x7ed7dc]
mov eax, dword [eax]
xor eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
call fcn.0064b298
mov eax, dword [0x7ed864]
mov eax, dword [eax]
xor eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
call fcn.0064b298
mov eax, dword [ebp - 0x2c]
xor edx, edx
push edx
push eax
mov eax, dword [0x7ed4cc]
mov eax, dword [eax]
cdq
cmp edx, dword [esp + 4]
jne 0x79a16e
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x79a182
jmp 0x79a172
pop edx
pop eax
jle 0x79a182
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x28]
mov edi, dword [eax]
call dword [edi + 0x10]
jmp 0x79a1ac
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x28]
call fcn.0064db70
mov edx, dword [ebp - 0x10]
lea edx, [edx + edi*8]
lea ecx, [ebp - 0x2c]
call fcn.0064b960
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 0x79a0e1
lea eax, [ebp - 0x14]
mov edx, dword [0x6493ac]
call fcn.0040c134
lea eax, [ebp - 0x18]
mov edx, dword [0x6493ac]
call fcn.0040c134
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x79a1dc
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.0064b254
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x79a20d
mov eax, dword [ebp - 0x28]
call fcn.00407b18
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x79a343
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00409920
lea eax, [ebp - 0x1c]
call fcn.0040da18
lea eax, [ebp - 0x18]
mov edx, dword [0x6493ac]
mov ecx, 2
call fcn.0040afe8
lea eax, [ebp - 0x10]
mov edx, dword [0x64937c]
call fcn.0040c134
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00409920
ret