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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45f158
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x46e320]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov esi, dword [ebp + 8]
lea eax, [esi + 0x78]
push eax
call fcn.0040b580
cmp dword [ebp + 0xc], 0
jne 0x40bd3d
call fcn.00406590
mov edi, eax
call ebx
test byte [edi + 0x174], 1
setg al
test al, al
je 0x40be99
lea eax, [ebp - 0x2c]
push eax
call fcn.00434ab0
push 0
push ecx
mov dword [ebp - 4], 0
call fcn.00406590
add esp, 4
lea edx, [ebp - 0x2c]
mov ecx, eax
call fcn.0042d230
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
cmp edi, eax
jbe 0x40bd74
call fcn.0044204d
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x10], 0
mov edi, edi
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x20], eax
jbe 0x40bd8d
call fcn.0044204d
test ebx, ebx
je 0x40bd96
cmp ebx, dword [ebp - 0x2c]
je 0x40bd9b
call fcn.0044204d
cmp edi, dword [ebp - 0x14]
je 0x40be1e
test ebx, ebx
jne 0x40be12
call fcn.0044204d
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x40bdb5
call fcn.0044204d
mov eax, 0xcccccccd
mul dword [ebp - 0x10]
mov esi, edx
mov edx, dword [ebp - 0x10]
shr esi, 3
lea ecx, [esi + esi*4]
add ecx, ecx
sub edx, ecx
inc edx
mov dword [edi + 0x54], edx
test ebx, ebx
jne 0x40be16
call fcn.0044204d
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x40bde5
call fcn.0044204d
inc dword [ebp - 0x10]
inc esi
mov dword [edi + 0x58], esi
test ebx, ebx
jne 0x40be1a
call fcn.0044204d
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x40be01
call fcn.0044204d
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp + 8]
add edi, 0x94
jmp 0x40bd80
mov eax, dword [ebx]
jmp 0x40bdab
mov eax, dword [ebx]
jmp 0x40bddb
mov eax, dword [ebx]
jmp 0x40bdf7
mov edi, dword [esi + 0x17c]
mov eax, dword [edi + 0x104]
mov ecx, dword [eax + 4]
lea esi, [edi + 0xec]
push ecx
mov ecx, esi
call fcn.00407ba0
mov eax, dword [esi + 0x18]
mov edx, dword [ebp + 8]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0x1c], 0
mov dword [eax], eax
mov esi, dword [esi + 0x18]
mov dword [esi + 8], esi
or esi, 0xffffffff
mov dword [edi + 0x110], esi
mov dword [edi + 0x10c], esi
mov eax, dword [edx + 0x17c]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00403990
add esp, 8
lea ecx, [ebp - 0x2c]
push ecx
mov dword [ebp - 4], esi
call fcn.004088b0
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00441aea
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [ebp + 8]
add esp, 4
mov ecx, dword [esi + 0x17c]
lea eax, [esi + 0x78]
push eax
call fcn.0040b480
cmp dword [ebp + 0xc], 0
jne 0x40bec9
call fcn.00406590
mov edi, eax
call ebx
test byte [edi + 0x174], 2
setg al
test al, al
je 0x40c027
lea eax, [ebp - 0x2c]
push eax
call fcn.00434ab0
push 1
push ecx
mov dword [ebp - 4], 1
call fcn.00406590
add esp, 4
lea edx, [ebp - 0x2c]
mov ecx, eax
call fcn.0042d230
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
cmp edi, eax
jbe 0x40bf00
call fcn.0044204d
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x10], 0
lea ebx, [ebx]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x20], eax
jbe 0x40bf1d
call fcn.0044204d
test ebx, ebx
je 0x40bf26
cmp ebx, dword [ebp - 0x2c]
je 0x40bf2b
call fcn.0044204d
cmp edi, dword [ebp - 0x14]
je 0x40bfac
test ebx, ebx
jne 0x40bfa0
call fcn.0044204d
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x40bf45
call fcn.0044204d
mov eax, 0xcccccccd
mul dword [ebp - 0x10]
mov esi, edx
mov edx, dword [ebp - 0x10]
shr esi, 2
lea ecx, [esi + esi*4]
sub edx, ecx
inc edx
mov dword [edi + 0x54], edx
test ebx, ebx
jne 0x40bfa4
call fcn.0044204d
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x40bf73
call fcn.0044204d
inc dword [ebp - 0x10]
inc esi
mov dword [edi + 0x58], esi
test ebx, ebx
jne 0x40bfa8
call fcn.0044204d
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x40bf8f
call fcn.0044204d
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp + 8]
add edi, 0x94
jmp 0x40bf10
mov eax, dword [ebx]
jmp 0x40bf3b
mov eax, dword [ebx]
jmp 0x40bf69
mov eax, dword [ebx]
jmp 0x40bf85
mov edi, dword [esi + 0x184]
mov eax, dword [edi + 0x104]
mov ecx, dword [eax + 4]
lea esi, [edi + 0xec]
push ecx
mov ecx, esi
call fcn.00407ba0
mov eax, dword [esi + 0x18]
mov edx, dword [ebp + 8]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0x1c], 0
mov dword [eax], eax
mov esi, dword [esi + 0x18]
mov dword [esi + 8], esi
or esi, 0xffffffff
mov dword [edi + 0x110], esi
mov dword [edi + 0x10c], esi
mov eax, dword [edx + 0x184]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00403990
add esp, 8
lea ecx, [ebp - 0x2c]
push ecx
mov dword [ebp - 4], esi
call fcn.004088b0
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00441aea
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [ebp + 8]
add esp, 4
mov ecx, dword [esi + 0x184]
lea eax, [esi + 0x78]
push eax
call fcn.0040b480
cmp dword [ebp + 0xc], 0
jne 0x40c057
call fcn.00406590
mov edi, eax
call ebx
test byte [edi + 0x174], 4
setg al
test al, al
je 0x40c1a2
lea eax, [ebp - 0x44]
push eax
call fcn.00434ab0
push 2
push ecx
mov dword [ebp - 4], 2
call fcn.00406590
add esp, 4
lea edx, [ebp - 0x44]
mov ecx, eax
call fcn.0042d230
mov edi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
cmp edi, eax
jbe 0x40c08e
call fcn.0044204d
mov eax, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x44]
mov dword [ebp + 0xc], 1
mov esi, eax
cmp dword [ebp - 0x38], eax
jbe 0x40c0a4
call fcn.0044204d
test ebx, ebx
je 0x40c0ad
cmp ebx, dword [ebp - 0x44]
je 0x40c0b2
call fcn.0044204d
cmp edi, esi
je 0x40c11d
test ebx, ebx
jne 0x40c111
call fcn.0044204d
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x40c0cb
call fcn.0044204d
mov dword [edi + 0x54], 1
test ebx, ebx
jne 0x40c115
call fcn.0044204d
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x40c0e7
call fcn.0044204d
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x58], eax
inc eax
mov dword [ebp + 0xc], eax
test ebx, ebx
jne 0x40c119
call fcn.0044204d
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x40c106
call fcn.0044204d
mov eax, dword [ebp - 0x34]
add edi, 0x94
jmp 0x40c098
mov eax, dword [ebx]
jmp 0x40c0c1
mov eax, dword [ebx]
jmp 0x40c0dd
mov eax, dword [ebx]
jmp 0x40c0fc
mov ecx, dword [ebp + 8]
mov edi, dword [ecx + 0x18c]
mov edx, dword [edi + 0x104]
mov eax, dword [edx + 4]
lea esi, [edi + 0xec]
push eax
mov ecx, esi
call fcn.00407ba0
mov eax, dword [esi + 0x18]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0x1c], 0
mov dword [eax], eax
mov esi, dword [esi + 0x18]
mov dword [esi + 8], esi
mov esi, dword [ebp + 8]
or ebx, 0xffffffff
mov dword [edi + 0x110], ebx
mov dword [edi + 0x10c], ebx
mov eax, dword [esi + 0x18c]
push eax
lea ecx, [ebp - 0x44]
push ecx
call fcn.0040b090
mov eax, dword [esi + 0x18c]
add esp, 8
lea edx, [ebp - 0x44]
push edx
mov dword [eax + 0x15c], 1
mov dword [ebp - 4], ebx
call fcn.004088b0
mov eax, dword [ebp - 0x44]
push eax
call fcn.00441aea
add esp, 4
mov ecx, dword [esi + 0x18c]
lea eax, [esi + 0x78]
push eax
call fcn.0040b480
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8