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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45f168
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.0040b5c0
cmp dword [ebp + 0xc], 0
jne 0x40be4d
call fcn.004065a0
mov edi, eax
call ebx
test byte [edi + 0x174], 1
setg al
test al, al
je 0x40bfa9
lea eax, [ebp - 0x2c]
push eax
call fcn.00407490
push 0
push ecx
mov dword [ebp - 4], 0
call fcn.004065a0
add esp, 4
lea edx, [ebp - 0x2c]
mov ecx, eax
call fcn.0042d220
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
cmp edi, eax
jbe 0x40be84
call fcn.0044205d
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 0x40be9d
call fcn.0044205d
test ebx, ebx
je 0x40bea6
cmp ebx, dword [ebp - 0x2c]
je 0x40beab
call fcn.0044205d
cmp edi, dword [ebp - 0x14]
je 0x40bf2e
test ebx, ebx
jne 0x40bf22
call fcn.0044205d
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x40bec5
call fcn.0044205d
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 0x40bf26
call fcn.0044205d
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x40bef5
call fcn.0044205d
inc dword [ebp - 0x10]
inc esi
mov dword [edi + 0x58], esi
test ebx, ebx
jne 0x40bf2a
call fcn.0044205d
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x40bf11
call fcn.0044205d
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp + 8]
add edi, 0x94
jmp 0x40be90
mov eax, dword [ebx]
jmp 0x40bebb
mov eax, dword [ebx]
jmp 0x40beeb
mov eax, dword [ebx]
jmp 0x40bf07
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.00407c20
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.00408930
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00441afa
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.0040b4c0
cmp dword [ebp + 0xc], 0
jne 0x40bfd9
call fcn.004065a0
mov edi, eax
call ebx
test byte [edi + 0x174], 2
setg al
test al, al
je 0x40c137
lea eax, [ebp - 0x2c]
push eax
call fcn.00407490
push 1
push ecx
mov dword [ebp - 4], 1
call fcn.004065a0
add esp, 4
lea edx, [ebp - 0x2c]
mov ecx, eax
call fcn.0042d220
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
cmp edi, eax
jbe 0x40c010
call fcn.0044205d
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 0x40c02d
call fcn.0044205d
test ebx, ebx
je 0x40c036
cmp ebx, dword [ebp - 0x2c]
je 0x40c03b
call fcn.0044205d
cmp edi, dword [ebp - 0x14]
je 0x40c0bc
test ebx, ebx
jne 0x40c0b0
call fcn.0044205d
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x40c055
call fcn.0044205d
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 0x40c0b4
call fcn.0044205d
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x40c083
call fcn.0044205d
inc dword [ebp - 0x10]
inc esi
mov dword [edi + 0x58], esi
test ebx, ebx
jne 0x40c0b8
call fcn.0044205d
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x40c09f
call fcn.0044205d
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp + 8]
add edi, 0x94
jmp 0x40c020
mov eax, dword [ebx]
jmp 0x40c04b
mov eax, dword [ebx]
jmp 0x40c079
mov eax, dword [ebx]
jmp 0x40c095
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.00407c20
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.00408930
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00441afa
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.0040b4c0
cmp dword [ebp + 0xc], 0
jne 0x40c167
call fcn.004065a0
mov edi, eax
call ebx
test byte [edi + 0x174], 4
setg al
test al, al
je 0x40c2b2
lea eax, [ebp - 0x44]
push eax
call fcn.00407490
push 2
push ecx
mov dword [ebp - 4], 2
call fcn.004065a0
add esp, 4
lea edx, [ebp - 0x44]
mov ecx, eax
call fcn.0042d220
mov edi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
cmp edi, eax
jbe 0x40c19e
call fcn.0044205d
mov eax, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x44]
mov dword [ebp + 0xc], 1
mov esi, eax
cmp dword [ebp - 0x38], eax
jbe 0x40c1b4
call fcn.0044205d
test ebx, ebx
je 0x40c1bd
cmp ebx, dword [ebp - 0x44]
je 0x40c1c2
call fcn.0044205d
cmp edi, esi
je 0x40c22d
test ebx, ebx
jne 0x40c221
call fcn.0044205d
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x40c1db
call fcn.0044205d
mov dword [edi + 0x54], 1
test ebx, ebx
jne 0x40c225
call fcn.0044205d
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x40c1f7
call fcn.0044205d
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x58], eax
inc eax
mov dword [ebp + 0xc], eax
test ebx, ebx
jne 0x40c229
call fcn.0044205d
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x40c216
call fcn.0044205d
mov eax, dword [ebp - 0x34]
add edi, 0x94
jmp 0x40c1a8
mov eax, dword [ebx]
jmp 0x40c1d1
mov eax, dword [ebx]
jmp 0x40c1ed
mov eax, dword [ebx]
jmp 0x40c20c
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.00407c20
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.0040b0d0
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.00408930
mov eax, dword [ebp - 0x44]
push eax
call fcn.00441afa
add esp, 4
mov ecx, dword [esi + 0x18c]
lea eax, [esi + 0x78]
push eax
call fcn.0040b4c0
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